redash/tests
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
..
extensions Add ability to ship periodic RQ jobs as part of extensions again. (#4822) 2020-04-28 18:39:30 +02:00
handlers Dashboard URL does not show new name when dashboard name is updated (#1009) 2020-07-16 23:03:59 +03:00
metrics Add additional statsd metrics for worker/scheduler (#4884) 2020-05-20 14:35:55 -07:00
models allow comparison with strings containing numbers as alert values (#4705) 2020-03-04 12:40:23 +02:00
query_runner Update requests usages not to allow redirects (#4924) 2020-05-31 12:49:39 +03:00
serializers Support download as TSV File (#4445) 2019-12-26 16:16:48 +02:00
tasks Delete locks for cancelled queries (#5006) 2020-06-29 13:09:01 +03:00
utils Nest query ACL to dropdowns (#3544) 2019-03-20 09:16:10 +02:00
__init__.py Nuke Celery (#4521) 2020-01-12 22:36:48 +02:00
factories.py Use lambda on options for destinations factory (#4912) 2020-05-24 22:22:01 +03:00
test_authentication.py Get rid of six and fix str/unicode types regression that became active on Python 3. (#4533) 2020-01-14 12:51:36 +02:00
test_cli.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00
test_configuration.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00
test_handlers.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00
test_models.py refresh_queries shouldn't break because of a single query having a bad schedule object (#4163) 2020-03-01 11:02:46 +02:00
test_permissions.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00
test_utils.py Black support for the Python codebase (#4297) 2019-12-11 13:54:29 +02:00