Skip to content

Commit

Permalink
Merge pull request #596 from hkad98/fix-incorrect-import
Browse files Browse the repository at this point in the history
TRIVIAL: Fix inconsistent imports in services and models

Reviewed-by: Jan Kadlec
             https://github.com/hkad98
  • Loading branch information
gdgate authored Mar 13, 2024
2 parents f08f7ef + 3463c7b commit 399f35b
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 17 deletions.
8 changes: 4 additions & 4 deletions gooddata-sdk/gooddata_sdk/catalog/export/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
from gooddata_api_client.exceptions import NotFoundException
from gooddata_api_client.model.pdf_export_request import PdfExportRequest
from gooddata_api_client.model.tabular_export_request import TabularExportRequest
from gooddata_sdk import (
from gooddata_sdk.catalog.catalog_service_base import CatalogServiceBase
from gooddata_sdk.catalog.export.request import (
ExportCustomLabel,
ExportCustomMetric,
ExportCustomOverride,
ExportRequest,
ExportSettings,
GoodDataApiClient,
SimpleMetric,
)
from gooddata_sdk.catalog.catalog_service_base import CatalogServiceBase
from gooddata_sdk.client import GoodDataApiClient
from gooddata_sdk.compute.model.metric import SimpleMetric
from gooddata_sdk.table import ExecutionTable, TableService
from gooddata_sdk.visualization import VisualizationService

Expand Down
16 changes: 9 additions & 7 deletions gooddata-sdk/gooddata_sdk/catalog/permission/service.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
# (C) 2022 GoodData Corporation
from typing import List, Union

from gooddata_sdk import (
CatalogAvailableAssignees,
CatalogDashboardPermissions,
from gooddata_sdk.catalog.catalog_service_base import CatalogServiceBase
from gooddata_sdk.catalog.permission.declarative_model.dashboard_assignees import CatalogAvailableAssignees
from gooddata_sdk.catalog.permission.declarative_model.dashboard_permissions import CatalogDashboardPermissions
from gooddata_sdk.catalog.permission.declarative_model.manage_dashboard_permissions import (
CatalogPermissionsForAssigneeIdentifier,
CatalogPermissionsForAssigneeRule,
)
from gooddata_sdk.catalog.permission.declarative_model.permission import (
CatalogDeclarativeOrganizationPermission,
CatalogDeclarativeWorkspacePermissions,
CatalogOrganizationPermissionAssignment,
CatalogPermissionsForAssigneeIdentifier,
CatalogPermissionsForAssigneeRule,
GoodDataApiClient,
)
from gooddata_sdk.catalog.catalog_service_base import CatalogServiceBase
from gooddata_sdk.client import GoodDataApiClient


class CatalogPermissionService(CatalogServiceBase):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
from gooddata_api_client.model.user_management_workspace_permission_assignment import (
UserManagementWorkspacePermissionAssignment,
)
from gooddata_sdk import CatalogAssigneeIdentifier
from gooddata_sdk.catalog.base import Base
from gooddata_sdk.catalog.identifier import CatalogAssigneeIdentifier


@attrs.define(auto_attribs=True, kw_only=True)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@
from gooddata_api_client.model.declarative_filter_context import DeclarativeFilterContext
from gooddata_api_client.model.declarative_metric import DeclarativeMetric
from gooddata_api_client.model.declarative_visualization_object import DeclarativeVisualizationObject
from gooddata_sdk import (
from gooddata_sdk.catalog.base import Base
from gooddata_sdk.catalog.identifier import CatalogUserIdentifier
from gooddata_sdk.catalog.permission.declarative_model.permission import (
CatalogDeclarativeDashboardPermissionsForAssignee,
CatalogDeclarativeDashboardPermissionsForAssigneeRule,
)
from gooddata_sdk.catalog.base import Base
from gooddata_sdk.catalog.identifier import CatalogUserIdentifier
from gooddata_sdk.utils import create_directory, get_sorted_yaml_files, read_layout_from_file, write_layout_to_file

T = TypeVar("T", bound="CatalogAnalyticsObjectBase")
Expand Down
6 changes: 4 additions & 2 deletions gooddata-sdk/gooddata_sdk/catalog/workspace/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import attrs

from gooddata_api_client.exceptions import NotFoundException
from gooddata_sdk import CatalogUserDataFilter
from gooddata_sdk.catalog.catalog_service_base import CatalogServiceBase
from gooddata_sdk.catalog.permission.service import CatalogPermissionService
from gooddata_sdk.catalog.workspace.declarative_model.workspace.workspace import (
Expand All @@ -25,7 +24,10 @@
get_workspace_folder,
)
from gooddata_sdk.catalog.workspace.entity_model.content_objects.workspace_setting import CatalogWorkspaceSetting
from gooddata_sdk.catalog.workspace.entity_model.user_data_filter import CatalogUserDataFilterDocument
from gooddata_sdk.catalog.workspace.entity_model.user_data_filter import (
CatalogUserDataFilter,
CatalogUserDataFilterDocument,
)
from gooddata_sdk.catalog.workspace.entity_model.workspace import CatalogWorkspace
from gooddata_sdk.client import GoodDataApiClient
from gooddata_sdk.utils import (
Expand Down

0 comments on commit 399f35b

Please sign in to comment.