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

Minor: enable count on search-provides #272

Merged
merged 1 commit into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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