Skip to content

Commit

Permalink
Remove getPlatformAuthorSession API call
Browse files Browse the repository at this point in the history
  • Loading branch information
dlpzx committed Nov 28, 2024
1 parent 1e0d54f commit 827f263
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 32 deletions.
9 changes: 0 additions & 9 deletions backend/dataall/modules/dashboards/api/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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',
Expand Down
4 changes: 0 additions & 4 deletions backend/dataall/modules/dashboards/api/resolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

This file was deleted.

1 change: 0 additions & 1 deletion frontend/src/modules/Administration/services/index.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
1 change: 0 additions & 1 deletion tests_new/integration_tests/modules/dashboards/queries.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# # IF MONITORING ON (TODO)
# getMonitoringDashboardId
# getMonitoringVpcConnectionId
# getPlatformAuthorSession
# getPlatformReaderSession


Expand Down

0 comments on commit 827f263

Please sign in to comment.