diff --git a/backend/dataall/modules/dashboards/api/queries.py b/backend/dataall/modules/dashboards/api/queries.py index 9912375b8..a4b005adc 100644 --- a/backend/dataall/modules/dashboards/api/queries.py +++ b/backend/dataall/modules/dashboards/api/queries.py @@ -3,7 +3,6 @@ get_dashboard, get_monitoring_dashboard_id, get_monitoring_vpc_connection_id, - get_quicksight_author_session, get_quicksight_designer_url, get_quicksight_reader_session, get_quicksight_reader_url, @@ -37,14 +36,6 @@ resolver=get_monitoring_vpc_connection_id, ) -getPlatformAuthorSession = gql.QueryField( - name='getPlatformAuthorSession', - args=[ - gql.Argument(name='awsAccount', type=gql.NonNullableType(gql.String)), - ], - type=gql.String, - resolver=get_quicksight_author_session, -) getPlatformReaderSession = gql.QueryField( name='getPlatformReaderSession', diff --git a/backend/dataall/modules/dashboards/api/resolvers.py b/backend/dataall/modules/dashboards/api/resolvers.py index 67ae59169..7a9bbe133 100644 --- a/backend/dataall/modules/dashboards/api/resolvers.py +++ b/backend/dataall/modules/dashboards/api/resolvers.py @@ -115,10 +115,6 @@ def create_quicksight_data_source_set(context, source, vpcConnectionId: str = No return DashboardQuicksightService.create_quicksight_data_source_set(vpcConnectionId) -def get_quicksight_author_session(context, source, awsAccount: str = None): - return DashboardQuicksightService.get_quicksight_author_session(awsAccount) - - def get_quicksight_reader_session(context, source, dashboardId: str = None): return DashboardQuicksightService.get_quicksight_reader_session(dashboardId) diff --git a/backend/dataall/modules/dashboards/services/dashboard_quicksight_service.py b/backend/dataall/modules/dashboards/services/dashboard_quicksight_service.py index 1b60b2122..7cbda9cc1 100644 --- a/backend/dataall/modules/dashboards/services/dashboard_quicksight_service.py +++ b/backend/dataall/modules/dashboards/services/dashboard_quicksight_service.py @@ -116,11 +116,6 @@ def create_quicksight_data_source_set(cls, vpc_connection_id): return datasource_id - @classmethod - def get_quicksight_author_session(cls, aws_account): - DashboardQuicksightService._check_user_must_be_admin() - return cls._client(aws_account).get_author_session() - @classmethod def get_quicksight_reader_session(cls, dashboard_uri): cls._check_user_must_be_admin() diff --git a/frontend/src/modules/Administration/services/getPlatformAuthorSession.js b/frontend/src/modules/Administration/services/getPlatformAuthorSession.js deleted file mode 100644 index 391dd9e99..000000000 --- a/frontend/src/modules/Administration/services/getPlatformAuthorSession.js +++ /dev/null @@ -1,12 +0,0 @@ -import { gql } from 'apollo-boost'; - -export const getPlatformAuthorSession = (awsAccount) => ({ - variables: { - awsAccount - }, - query: gql` - query getPlatformAuthorSession($awsAccount: String!) { - getPlatformAuthorSession(awsAccount: $awsAccount) - } - ` -}); diff --git a/frontend/src/modules/Administration/services/index.js b/frontend/src/modules/Administration/services/index.js index a07cd1853..c74d17891 100644 --- a/frontend/src/modules/Administration/services/index.js +++ b/frontend/src/modules/Administration/services/index.js @@ -1,7 +1,6 @@ export * from './createQuicksightDataSourceSet'; export * from './getMonitoringDashboardId'; export * from './getMonitoringVPCConnectionId'; -export * from './getPlatformAuthorSession'; export * from './getPlatformReaderSession'; export * from './listTenantGroups'; export * from './listTenantPermissions'; diff --git a/tests_new/integration_tests/modules/dashboards/queries.py b/tests_new/integration_tests/modules/dashboards/queries.py index c012b68ce..047fb7de3 100644 --- a/tests_new/integration_tests/modules/dashboards/queries.py +++ b/tests_new/integration_tests/modules/dashboards/queries.py @@ -4,7 +4,6 @@ # # IF MONITORING ON (TODO) # getMonitoringDashboardId # getMonitoringVpcConnectionId -# getPlatformAuthorSession # getPlatformReaderSession