Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #240 from RedHatProductSecurity/add-more-status
Browse files Browse the repository at this point in the history
GRIF-172: enable community searching of latest components.
  • Loading branch information
JimFuller-RedHat authored Aug 16, 2023
2 parents d211fb8 + 5bb78db commit 01b26a3
Show file tree
Hide file tree
Showing 5 changed files with 294 additions and 197 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased
### Changed
* enhanced http debug logging
* enhanced status bar
* ensure we search latest community components

## [0.2.20] - 2023-08-11
### Changed
Expand Down
11 changes: 9 additions & 2 deletions griffon/commands/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,14 +361,19 @@ def get_product_contain_component(
params.pop("flaw_mode")
params.pop("affect_mode")
if component_name:
q = query_service.invoke(core_queries.products_containing_component_query, params)
q = query_service.invoke(
core_queries.products_containing_component_query, params, status=operation_status
)
if purl:
q = query_service.invoke(
core_queries.products_containing_specific_component_query, params
core_queries.products_containing_specific_component_query,
params,
status=operation_status,
)

# TODO: interim hack for middleware
if component_name and MIDDLEWARE_CLI and not no_middleware:
operation_status.update("griffoning: searching deptopia.", spinner="line")
mw_command = [MIDDLEWARE_CLI, component_name, "-e", "maven", "--json"]
if strict_name_search:
mw_command.append("-s")
Expand Down Expand Up @@ -419,6 +424,8 @@ def get_product_contain_component(

# TODO: in the short term affect handling will be mediated via sfm2 here in the operation itself # noqa
if ctx.params["sfm2_flaw_id"]:
operation_status.update("griffoning: invoking sfm2.", spinner="line")

console.no_color = True
console.highlighter = None
operation_status.stop()
Expand Down
Loading

0 comments on commit 01b26a3

Please sign in to comment.