From 9d97c322655e35603d1fa0babc36fdf69c4ed4be Mon Sep 17 00:00:00 2001 From: Jongmin Kim Date: Sun, 20 Oct 2024 16:05:45 +0900 Subject: [PATCH] refactor: remove pagination from stat and analyze queries Signed-off-by: Jongmin Kim --- src/spaceone/inventory/service/cloud_service_service.py | 2 +- src/spaceone/inventory/service/metric_data_service.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/spaceone/inventory/service/cloud_service_service.py b/src/spaceone/inventory/service/cloud_service_service.py index f8d6c19..7aa2369 100644 --- a/src/spaceone/inventory/service/cloud_service_service.py +++ b/src/spaceone/inventory/service/cloud_service_service.py @@ -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: diff --git a/src/spaceone/inventory/service/metric_data_service.py b/src/spaceone/inventory/service/metric_data_service.py index f2b975b..d711a8d 100644 --- a/src/spaceone/inventory/service/metric_data_service.py +++ b/src/spaceone/inventory/service/metric_data_service.py @@ -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 @@ -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: """