opensearch-project / OpenSearch-Dashboards

📊 Open source visualization dashboards for OpenSearch.
https://opensearch.org/docs/latest/dashboards/index/
Apache License 2.0
1.65k stars 857 forks source link

[BUG] ScopedHistory instance has fell out of scope for basePath: `/app/data-explorer` #5476

Open abbyhu2000 opened 10 months ago

abbyhu2000 commented 10 months ago

Describe the bug

When we switch the query language in discover page, the console outputs the below error. On top of that, the action of navigating from discover page to another page will output a series of the following error as well.

It seems like the scope history in data explorer needs to be better handled.

scoped_history.ts:252 Uncaught (in promise) Error: ScopedHistory instance has fell out of navigation scope for basePath: /app/data-explorer
    at ScopedHistory.verifyActive (scoped_history.ts:252:1)
    at get location [as location] (scoped_history.ts:207:1)
    at getCurrentUrl (parse.ts:37:1)
    at getPendingUrl (osd_url_storage.ts:146:1)
    at flush (osd_url_storage.ts:135:1)
    at osd_url_storage.ts:163:1

To Reproduce Steps to reproduce the behavior:

  1. Go to discover page
  2. Click on the toggle on query language selector on the top navigation bar.
  3. See error
thanhinhchtom commented 10 months ago

@joshuarrrr Can I try this one?

abbyhu2000 commented 9 months ago

@ashwin-pc here is the screenshot recording, i started the dashboard in Incognito:

https://github.com/opensearch-project/OpenSearch-Dashboards/assets/43937633/7e7486f2-5980-488c-9c1f-c6b4a82fe570

lynara commented 1 week ago

Hi, is this related to my issue that the browser back button is not working like it did prior to 2.10 when the new discover tool got introduced?