Skip to content
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
9 changes: 1 addition & 8 deletions cirro/services/dashboard.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from typing import List

from cirro_api_client.v1 import errors
from cirro_api_client.v1.api.dashboards import get_dashboards, get_dashboard, create_dashboard, \
update_dashboard, delete_dashboard, get_dashboard_templates, get_dashboard_template
from cirro_api_client.v1.models import Dashboard, DashboardInput, CreateResponse
Expand Down Expand Up @@ -78,13 +77,7 @@ def delete(self, project_id: str, dashboard_id: str) -> None:
project_id (str): ID of the Project
dashboard_id (str): ID of the Dashboard
"""
# The generated route parses the empty 204 body as a Dashboard and raises, in
# sync_detailed too, so the request is sent here and only its status is read.
response = self._api_client.get_httpx_client().request(
auth=self._api_client.get_auth(),
**delete_dashboard._get_kwargs(project_id=project_id, dashboard_id=dashboard_id))
if response.status_code >= 400:
errors.handle_error_response(response, True)
delete_dashboard.sync_detailed(project_id=project_id, dashboard_id=dashboard_id, client=self._api_client)

def list_templates(self) -> List[Dashboard]:
"""
Expand Down
4 changes: 2 additions & 2 deletions cirro/services/sheet.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import List

from cirro_api_client.v1.api.sheets import get_sheets, get_sheet, create_sheet, update_sheet, delete_sheet, \
get_sheet_data, query_sheet_data, query_namespace_data, insert_sheet_data, update_sheet_data, delete_sheet_data, \
get_sheet_data, query_sheet_data, query_data, insert_sheet_data, update_sheet_data, delete_sheet_data, \
refresh_view, trigger_ingest, get_jobs
from cirro_api_client.v1.models import Sheet, SheetDetail, TableSheetInput, ViewSheetInput, CreateResponse, \
SheetUpdateResponse, SheetDataRequest, SheetQueryRequest, SheetQueryResponse, SheetDataUpdateResponse, \
Expand Down Expand Up @@ -157,7 +157,7 @@ def raw_query(self,
limit=limit,
page=page
)
return query_namespace_data.sync(project_id=project_id, body=request, client=self._api_client)
return query_data.sync(project_id=project_id, body=request, client=self._api_client)

def insert_rows(self, project_id: str, sheet_id: str, rows: List[RowInsert]) -> SheetDataUpdateResponse:
"""
Expand Down
8 changes: 4 additions & 4 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cirro"
version = "1.15.0"
version = "1.15.1"
description = "CLI tool and SDK for interacting with the Cirro platform"
authors = ["Cirro Bio <support@cirro.bio>"]
license = "MIT"
Expand All @@ -11,7 +11,7 @@ packages = [{include = "cirro"}]
[tool.poetry.dependencies]
python = ">3.11.0,<4.0"
attrs = ">=21.3.0"
cirro_api_client = "~1.7.1"
cirro_api_client = "~1.7.2"
click = "^8.5.0"
boto3 = "~=1.43"
questionary = "^2.0.1"
Expand Down
Loading