mirror of
https://github.com/apache/superset.git
synced 2026-04-20 08:34:37 +00:00
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:
committed by
GitHub
parent
1e155663a7
commit
51bd17d6f6
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user