-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generic dataset module and specific s3_datasets module - part 5 (Move DatasetServiceInterface to datasets_base, add property, create first list API for datasets_base) #1281
Conversation
… creation renamed table s3_dataset
…eric-dataset-model-refactoring-2
…t-model-refactoring-2' into feat/generic-dataset-model-refactoring-3
…eric-dataset-model-refactoring-3 # Conflicts: # backend/dataall/modules/dataset_sharing/services/dataset_sharing_service.py # backend/dataall/modules/s3_datasets/api/dataset/resolvers.py # backend/dataall/modules/s3_datasets/db/dataset_models.py # backend/dataall/modules/s3_datasets/services/dataset_service.py # backend/dataall/modules/s3_datasets/services/dataset_table_service.py
…irst list API for datasets_base
…to feat/generic-dataset-model-refactoring-4
…to feat/generic-dataset-model-refactoring-5
Testing locally:
|
…oring-5 # Conflicts: # backend/dataall/modules/dataset_sharing/db/share_object_repositories.py # backend/dataall/modules/dataset_sharing/services/dataset_sharing_service.py # backend/dataall/modules/datasets_base/db/dataset_repositories.py # backend/dataall/modules/s3_datasets/db/dataset_repositories.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approving but I'd appreciate if you could add some type hints on the non-trivial arguments
cls._interfaces.append(interface) | ||
|
||
@classmethod | ||
def _list_all_user_interface_datasets(cls, session, username, groups) -> List: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this return List[Query]
?
).to_dict() | ||
|
||
@staticmethod | ||
def _query_all_user_datasets(session, username, groups, all_subqueries, filter) -> Query: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume all_subqueries
is of type List[Query]
?
Feature or Bugfix
Detail
As explained in the design for #1123 we are trying to implement a generic
datasets_base
module that can be used by any type of datasets in a generic way.In this PR we:
Relates
Security
Please answer the questions below briefly where applicable, or write
N/A
. Based onOWASP 10.
fetching data from storage outside the application (e.g. a database, an S3 bucket)?
eval
or similar functions are used?By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.