Skip to content

Commit

Permalink
refactor: remove pagination from stat and analyze queries
Browse files Browse the repository at this point in the history
Signed-off-by: Jongmin Kim <[email protected]>
  • Loading branch information
whdalsrnt committed Oct 20, 2024
1 parent ae820cf commit 9d97c32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/spaceone/inventory/service/cloud_service_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ def export(self, params: dict) -> dict:
@check_required(["query", "query.fields", "domain_id"])
@append_query_filter(["workspace_id", "domain_id", "user_projects"])
@append_keyword_filter(_KEYWORD_FILTER)
@set_query_page_limit(1000)
# @set_query_page_limit(1000)
def analyze(self, params: dict) -> dict:
"""
Args:
Expand Down
4 changes: 2 additions & 2 deletions src/spaceone/inventory/service/metric_data_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def list(
)
@append_query_filter(["metric_id", "workspace_id", "domain_id", "user_projects"])
@append_keyword_filter(["metric_id", "name"])
@set_query_page_limit(1000)
# @set_query_page_limit(1000)
@convert_model
def analyze(self, params: MetricDataAnalyzeQueryRequest) -> dict:
"""Analyze metric data
Expand Down Expand Up @@ -109,7 +109,7 @@ def analyze(self, params: MetricDataAnalyzeQueryRequest) -> dict:
)
@append_query_filter(["metric_id", "workspace_id", "domain_id", "user_projects"])
@append_keyword_filter(["metric_id", "name"])
@set_query_page_limit(1000)
# @set_query_page_limit(1000)
@convert_model
def stat(self, params: MetricDataStatQueryRequest) -> dict:
"""
Expand Down

0 comments on commit 9d97c32

Please sign in to comment.