Skip to content
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

[CRUD] disable user change slices from dashboardmodelview #5217

Conversation

graceguo-supercat
Copy link

@graceguo-supercat graceguo-supercat commented Jun 15, 2018

similar to #5136, disable charts dropdown list (and filter function call) from dashboardmodelview, to improve the page load time for dashboard metadata edit page. Also for dashboard v2, we want to see user add/remove charts from dashboard builder as much as possible.

@michellethomas @mistercrunch @john-bodley

@@ -554,11 +554,6 @@ class DashboardModelView(SupersetModelView, DeleteMixin): # noqa
'want to alter specific parameters.'),
'owners': _('Owners is a list of users who can alter the dashboard.'),
}
base_filters = [['slice', DashboardFilter, lambda: []]]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is the way we make sure people see only the dashboards they have access to.

@graceguo-supercat graceguo-supercat force-pushed the gg-DisableChartsFromDashboardModelView branch from 6fa059d to 61540b6 Compare June 18, 2018 18:42
@graceguo-supercat
Copy link
Author

sorry for the mistake, i just want to remove select2 related filters. thank you!

@mistercrunch
Copy link
Member

LGTM

@graceguo-supercat graceguo-supercat merged commit 480ddfc into apache:master Jun 18, 2018
@graceguo-supercat graceguo-supercat deleted the gg-DisableChartsFromDashboardModelView branch June 18, 2018 23:11
john-bodley pushed a commit to john-bodley/superset that referenced this pull request Jun 18, 2018
timifasubaa pushed a commit to airbnb/superset-fork that referenced this pull request Jul 25, 2018
wenchma pushed a commit to wenchma/incubator-superset that referenced this pull request Nov 16, 2018
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.26.0 labels Feb 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.26.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants