Improve URLs for Chart and Dashboard ModelViews (#5544)

* Improve URLs for Chart and Dashboard ModelViews

Prior to this, the ModelView for Chart and Dashboard would be
at `/slicemodelview/list/` and `/dashboardmodelview/list/`.

Now we have cleaner URLs at `/chart/list/` and `/dashboard/list/`

* Fix unrelated js lint

* addressing comments
This commit is contained in:
Maxime Beauchemin
2018-08-03 12:46:48 -07:00
committed by GitHub
parent 1e155663a7
commit 51bd17d6f6
15 changed files with 43 additions and 186 deletions

View File

@@ -206,7 +206,7 @@ class ImportExportTests(SupersetTestCase):
def test_export_1_dashboard(self):
birth_dash = self.get_dash_by_slug('births')
export_dash_url = (
'/dashboardmodelview/export_dashboards_form?id={}&action=go'
'/dashboard/export_dashboards_form?id={}&action=go'
.format(birth_dash.id)
)
resp = self.client.get(export_dash_url)
@@ -235,7 +235,7 @@ class ImportExportTests(SupersetTestCase):
birth_dash = self.get_dash_by_slug('births')
world_health_dash = self.get_dash_by_slug('world_health')
export_dash_url = (
'/dashboardmodelview/export_dashboards_form?id={}&id={}&action=go'
'/dashboard/export_dashboards_form?id={}&id={}&action=go'
.format(birth_dash.id, world_health_dash.id))
resp = self.client.get(export_dash_url)
exported_dashboards = sorted(