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

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
JimFuller-RedHat committed Oct 25, 2023
1 parent d7308db commit b6a460b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions griffon/services/core_queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,7 @@ def execute(self, status=None) -> List[Dict[str, Any]]:
search_related_url_params["type"] = self.component_type
if not (self.include_inactive_product_streams):
search_related_url_params["active_streams"] = "True"
search_related_url_params["released_components"] = "True"
related_url_components_cnt = self.corgi_session.components.count(
**search_related_url_params
)
Expand Down Expand Up @@ -520,6 +521,7 @@ def execute(self, status=None) -> List[Dict[str, Any]]:
search_all_params["namespace"] = self.ns
if not (self.include_inactive_product_streams):
search_all_params["active_streams"] = "True"
search_all_params["released_components"] = "True"
all_components_cnt = self.corgi_session.components.count(**search_all_params)
status.update(f"griffoning: found {all_components_cnt} all component(s).")
# TODO: remove max_results
Expand Down Expand Up @@ -570,6 +572,7 @@ def execute(self, status=None) -> List[Dict[str, Any]]:
search_all_roots_params["namespace"] = self.ns
if not (self.include_inactive_product_streams):
search_all_roots_params["active_streams"] = "True"
search_all_roots_params["released_components"] = "True"
all_src_components_cnt = self.corgi_session.components.count(**search_all_roots_params)
status.update(f"griffoning: found {all_src_components_cnt} all root component(s).")
all_src_components = self.corgi_session.components.retrieve_list_iterator_async(
Expand Down Expand Up @@ -603,6 +606,7 @@ def execute(self, status=None) -> List[Dict[str, Any]]:
search_all_upstreams_params["type"] = self.component_type
if not (self.include_inactive_product_streams):
search_all_upstreams_params["active_streams"] = "True"
search_all_upstreams_params["released_components"] = "True"
upstream_components_cnt = self.corgi_session.components.count(
**search_all_upstreams_params
)
Expand Down

0 comments on commit b6a460b

Please sign in to comment.