Redash: “New Query” doesn’t work when you’re already on a query page

Created on 15 Jan 2020  Â·  4Comments  Â·  Source: getredash/redash

  1. Open some query.
  2. Click on “New Query”.

The URL will update to /queries/new but the page stays the same with the previous query loaded.

Bug Frontend

Most helpful comment

@arikfr I think I just found that what triggers this issue is when you create more than one query:

  1. Create a new query and save it (it will redirect you and just update the url);
  2. Click on "New Query" to create another one;

I think it's caused because of the navigateTo without reloading the angular controller. In any case, it seems #4525 fixes it with the new router.

All 4 comments

:thinking:, I could not reproduce it directly (tried in SaaS too), perhaps it happens in an specific context?

new-query

@gabrieldutra it doesn’t happen on SaaS, because SaaS doesn’t use the latest React version fo these pages.

It happened to me with the preview instance — but not sure if the main one (as you have in the screenshot above). Maybe it was your branch with the results view? I will check again and report.

@arikfr I think I just found that what triggers this issue is when you create more than one query:

  1. Create a new query and save it (it will redirect you and just update the url);
  2. Click on "New Query" to create another one;

I think it's caused because of the navigateTo without reloading the angular controller. In any case, it seems #4525 fixes it with the new router.

Was fixed in #4525, so I think it could be closed now

Was this page helpful?
0 / 5 - 0 ratings