-
Notifications
You must be signed in to change notification settings - Fork 14k
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
Adding dashboard add view #4344
Adding dashboard add view #4344
Conversation
superset/views/core.py
Outdated
@@ -507,6 +507,7 @@ class SliceAddView(SliceModelView): # noqa | |||
list_columns = [ | |||
'id', 'slice_name', 'slice_link', 'viz_type', | |||
'datasource_link', 'owners', 'modified', 'changed_on'] | |||
show_columns = SliceModelView.edit_columns + list_columns |
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.
This seems prone to have duplicated columns, is this not an issue?
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 didn't cause an issue for me, but I agree it would be a good idea to dedupe. Fixed.
* Adding DashboardAddView and setting show_columns on SLiceAddView * Adding tests for sliceaddview read api * Dedupe show_columns
* Adding DashboardAddView and setting show_columns on SLiceAddView * Adding tests for sliceaddview read api * Dedupe show_columns
* Adding DashboardAddView and setting show_columns on SLiceAddView * Adding tests for sliceaddview read api * Dedupe show_columns
I've been using the flask app builder apis to programmatically create slices and dashboards, but when posting to
sliceaddview/api/create
ordashboardmodelview/api/create
the result doesn't include fields that are useful. They both don't include theid
of the dashboard or slice created (which makes it difficult to keep track of).show_columns is the field that determines what data gets returned after a request, so I'm adding additional fields to show_columns.
SliceAddView already exists and is being used to get all slices for a user, so because I don't want to introduce any future issues I'm adding tests for sliceaddview.
@john-bodley