-
Notifications
You must be signed in to change notification settings - Fork 16.6k
feat(api): Added uuid filed support to dataset, chart, dashboard API #29573
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -117,8 +117,10 @@ class DatasetRestApi(BaseSupersetModelRestApi): | |
| } | ||
| list_columns = [ | ||
| "id", | ||
| "uuid", | ||
| "database.id", | ||
| "database.database_name", | ||
| "database.uuid", | ||
| "changed_by_name", | ||
| "changed_by.first_name", | ||
| "changed_by.last_name", | ||
|
|
@@ -153,6 +155,7 @@ class DatasetRestApi(BaseSupersetModelRestApi): | |
| "id", | ||
| "database.database_name", | ||
| "database.id", | ||
| "database.uuid", | ||
| "table_name", | ||
| "sql", | ||
| "filter_select_enabled", | ||
|
|
@@ -222,6 +225,7 @@ class DatasetRestApi(BaseSupersetModelRestApi): | |
| "columns.advanced_data_type", | ||
| "is_managed_externally", | ||
| "uid", | ||
| "uuid", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What's the difference between the
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. uid is something else: https://github.com/apache/superset/blob/master/superset/models/sql_lab.py#L287 I expected you to know. :) |
||
| "datasource_name", | ||
| "name", | ||
| "column_formats", | ||
|
|
@@ -273,6 +277,7 @@ class DatasetRestApi(BaseSupersetModelRestApi): | |
| } | ||
| search_columns = [ | ||
| "id", | ||
| "uuid", | ||
| "database", | ||
| "owners", | ||
| "catalog", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,7 +37,7 @@ | |
| @celery_app.task(name="cache_chart_thumbnail", soft_time_limit=300) | ||
| def cache_chart_thumbnail( | ||
| current_user: Optional[str], | ||
| chart_id: int, | ||
| chart_id: str, | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this required? I don't see the call to
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| force: bool, | ||
| window_size: Optional[WindowSize] = None, | ||
| thumb_size: Optional[WindowSize] = None, | ||
|
|
||
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 believe this removal was not intended as it's still used by list methods?
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.
It's useless since we specified them in ChartGetResponseSchema. I reused similar approach to the dashboard API PR.
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.
oh, I checked to make sure the related objects have the same fields/schema, LGTM