Skip to content

Commit

Permalink
fix getSharedDatasetTables
Browse files Browse the repository at this point in the history
  • Loading branch information
petrkalos committed Dec 5, 2024
1 parent 4704a2d commit 4b20d41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 1 addition & 2 deletions backend/dataall/modules/s3_datasets_shares/api/resolvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from dataall.base.feature_toggle_checker import is_feature_enabled
from dataall.modules.s3_datasets_shares.services.s3_share_service import S3ShareService


log = logging.getLogger(__name__)


Expand Down Expand Up @@ -41,7 +40,7 @@ def validate_dataset_share_selector_input(data):


def list_shared_tables_by_env_dataset(context: Context, source, datasetUri: str, envUri: str):
return S3ShareService.list_shared_tables_by_env_dataset(datasetUri, envUri)
return S3ShareService.list_shared_tables_by_env_dataset(uri=envUri, dataset_uri=datasetUri)


@is_feature_enabled('modules.s3_datasets.features.aws_actions')
Expand Down
4 changes: 2 additions & 2 deletions tests/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,8 +836,8 @@ def __post_init__(self):
resource_ignore=IgnoreReason.USERLIMITED, tenant_ignore=IgnoreReason.USERLIMITED
),
field_id('Query', 'getSharedDatasetTables'): TestData(
resource_ignore=IgnoreReason.NOTREQUIRED, tenant_ignore=IgnoreReason.NOTREQUIRED
), # TODO Review
resource_perm=LIST_ENVIRONMENT_DATASETS, tenant_ignore=IgnoreReason.USERLIMITED
),
field_id('Query', 'getStack'): TestData(resource_perm=TARGET_TYPE_PERM, tenant_ignore=IgnoreReason.NOTREQUIRED),
field_id('Query', 'getStackLogs'): TestData(resource_perm=TARGET_TYPE_PERM, tenant_ignore=IgnoreReason.NOTREQUIRED),
field_id('Query', 'getTrustAccount'): TestData(
Expand Down

0 comments on commit 4b20d41

Please sign in to comment.