-
Notifications
You must be signed in to change notification settings - Fork 937
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OSCI][Fix] ScopedHistory out of navigation scope #5498
base: main
Are you sure you want to change the base?
[OSCI][Fix] ScopedHistory out of navigation scope #5498
Conversation
Signed-off-by: Thanh Le <lechithanh2003@gmail.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5498 +/- ##
==========================================
- Coverage 66.98% 66.98% -0.01%
==========================================
Files 3293 3293
Lines 63281 63297 +16
Branches 10061 10061
==========================================
+ Hits 42389 42398 +9
- Misses 18451 18459 +8
+ Partials 2441 2440 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Thanh Le <lechithanh2003@gmail.com>
Hi @thanhinhchtom, thanks for the PR! However, i think this issue needs a little more diving deep on it. For example, if we type something in the query bar on the data explorer page, the Screen.Recording.2023-12-01.at.11.33.57.AM.movDo you want to dive a little deeper on this bug and document your findings? Thank you! |
@abbyhu2000 I already looked up a little bit, and I think this error comes from the Elastic Search code. From what I understand, it is caused by the window reloading faster than the scoped history added, resulting in an error. And because of that, when I did the try-catch one, I already tried to make some changes to many other places to ensure that the history would work fine. However, I failed to do so, and I think the easiest way is to add a try-catch statement here to handle the error with history. |
@thanhinhchtom Hi, I do not think this is coming from the elastic search code since this error only occurs after we replace from the legacy discover to the current data explorer. Before the change, the scoped history for discover pages works fine and will not output errors like this to the console. I think the error prob originated somewhere in the code of de-angular discover to data explorer. Thanks for taking your time on this issue, and please comment more of your findings if you are still interested in digging deeper. Meanwhile I will convert this PR to draft for now. |
Description
Catch the error due to race conditions when the window reloads before the history comes. Name of error is ScopedHistory fell out of navigation scope.
Issues Resolved
Fix #5476
Screenshot
Screen.Recording.2023-12-01.at.2.53.33.PM.mov
Testing the changes
Check List
yarn test:jest
yarn test:jest_integration