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 #272 from RedHatProductSecurity/minor
Browse files Browse the repository at this point in the history
Minor: enable count on search-provides
  • Loading branch information
JimFuller-RedHat authored Dec 5, 2023
2 parents f7abf04 + 95d4c5c commit 92de70d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion griffon/commands/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def get_product_contain_component(
and not search_provides
and not search_upstreams
):
ctx.params["search_latest"] = True
ctx.params["search_provides"] = True

params = copy.deepcopy(ctx.params)
params.pop("verbose")
Expand Down
3 changes: 1 addition & 2 deletions griffon/services/core_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,7 @@ def execute(self, status=None) -> List[Dict[str, Any]]:
search_provides_params["active_streams"] = "True"
search_provides_params["latest_components_by_streams"] = "True"
status.update("searching latest provided child component(s).")
# latest_components_cnt = self.corgi_session.components.count(**search_provides_params)
latest_components_cnt = 0
latest_components_cnt = self.corgi_session.components.count(**search_provides_params)
status.update(f"found {latest_components_cnt} latest provides component(s).")
latest_components = self.corgi_session.components.retrieve_list_iterator_async(
**search_provides_params
Expand Down

0 comments on commit 92de70d

Please sign in to comment.