redash/tests/handlers
Omer Lachish cb97364771
Dashboard URL does not show new name when dashboard name is updated (#1009)
* on dashboard api calls - take the id from the beginning of the slug, unless there is no number in it - in that case, take the entire slug as id

* add dashboard id when showing links to dashboards

* change path to include new name when renaming dashboards

* move slug generation to backend

* redirect to new name after changing (this time with a proper promise)

* oh right, we already have a slug function

* add spec that makes sure that renamed dashboards are redirected to the
url which contains their new name

* use id-slug in all Cypress specs

* move dashboards from /dashboard/:slug to /dashboards/:id-:name_as_slug

* Update dashboard url as its name changes

* Update separator to be "/"

* Update missing dashboard urls

* Update api not to depend on int id

* Use '-' instead of '/' as separator and update Dashboard.get calls

* slug -> name_as_slug

* Keep slug urls on cypress

* Update route path

* Use legacy attr for GET

* Use getter for urlForDashboard

* Update dashboard url when loaded by slug

* Update Dashboard routes to use id instead of slug

* Update Dashboard handler tests

* Update Cypress tests

* Fix create new dashboard spec

* Use axios { params }

* Drop Ternary operator

* Send updated slug directly in 'slug' attr

* Update multiple urls Dashboard test name

* Update route names

Co-authored-by: Levko Kravets <levko.ne@gmail.com>

Co-authored-by: Gabriel Dutra <nesk.frz@gmail.com>
Co-authored-by: Levko Kravets <levko.ne@gmail.com>
2020-07-16 23:03:59 +03:00
..
__init__.py Remove unused code 2016-12-07 02:13:20 -06:00
test_alerts.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00
test_authentication.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00
test_dashboards.py Dashboard URL does not show new name when dashboard name is updated (#1009) 2020-07-16 23:03:59 +03:00
test_data_sources.py Allow GET from non-admins on data source resource (#4992) 2020-07-01 10:10:24 -03:00
test_destinations.py Move data source/destination deprecated handling to frontend (#4753) 2020-03-24 10:09:03 +02:00
test_embed.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00
test_favorites.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00
test_groups.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00
test_paginate.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00
test_permissions.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00
test_queries.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00
test_query_results.py Fix: properly encode UTF-8 filenames in query results request (#4498) 2019-12-30 11:52:18 +02:00
test_query_snippets.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00
test_settings.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00
test_users.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00
test_visualizations.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00
test_widgets.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00