Skip to content

Commit

Permalink
PR changes
Browse files Browse the repository at this point in the history
  • Loading branch information
dlpzx committed Nov 28, 2024
1 parent 2ed5b83 commit aa6ff46
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,6 @@ def get_profiling_run(session, profiling_run_uri=None, glue_job_run_id=None, glu
)
return run

@staticmethod
def list_profiling_runs(session, dataset_uri):
# TODO filter is always default
filter = {}
q = (
session.query(DatasetProfilingRun)
.filter(DatasetProfilingRun.datasetUri == dataset_uri)
.order_by(DatasetProfilingRun.created.desc())
)
return paginate(q, page=filter.get('page', 1), page_size=filter.get('pageSize', 20)).to_dict()

@staticmethod
def list_table_profiling_runs(session, table_uri):
# TODO filter is always default
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def list_shared_databases_tables_with_env_group(uri: str, group_uri: str):
if group_uri not in context.groups:
raise exceptions.UnauthorizedOperation(
action='LIST_ENVIRONMENT_GROUP_DATASETS',
message=f'User: {context.username} is not a member of the team {group_uri}',
message=f'User: {context.username} is not a member of the owner team',
)
with context.db_engine.scoped_session() as session:
return S3ShareObjectRepository.query_shared_glue_databases(
Expand Down

0 comments on commit aa6ff46

Please sign in to comment.