-
Notifications
You must be signed in to change notification settings - Fork 893
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
[BUG][Discover] Ensure save query loaded properly from asset #8707
[BUG][Discover] Ensure save query loaded properly from asset #8707
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #8707 +/- ##
==========================================
+ Coverage 60.71% 60.73% +0.01%
==========================================
Files 3798 3798
Lines 90662 90665 +3
Branches 14260 14262 +2
==========================================
+ Hits 55047 55066 +19
+ Misses 32163 32100 -63
- Partials 3452 3499 +47
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ananzh Lets add tests for this hook. Its critical to how the app works and reviewing a PR that modifies it without tests makes me nervous. You dont need to test every flow right now, but lets start to add tests so that the main expected behaviour of the hook is tested and the changes you are making are also tested
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a relative safe change bc it only modify the behavior when there is a saved query id. I will update a test for the changes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
While the change looks fine to me, the fact that its changing how useSearch works makes me nervous. Lets add tests here, both unit tests and functional
yarn.lock
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we skip this from the PR?
6f9ad4a
to
a172dd7
Compare
Signed-off-by: Anan Zhuang <[email protected]>
ebb7431
to
0a85e1a
Compare
* [BUG][Discover] Ensure save query loaded properly from asset Signed-off-by: Anan Zhuang <[email protected]> * Changeset file for PR #8707 created/updated --------- Signed-off-by: Anan Zhuang <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit c66b698) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…8740) * [BUG][Discover] Ensure save query loaded properly from asset * Changeset file for PR #8707 created/updated --------- (cherry picked from commit c66b698) Signed-off-by: Anan Zhuang <[email protected]> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
…rch-project#8707) * [BUG][Discover] Ensure save query loaded properly from asset Signed-off-by: Anan Zhuang <[email protected]> * Changeset file for PR opensearch-project#8707 created/updated --------- Signed-off-by: Anan Zhuang <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com>
Description
Saved query workflow
Then they are clean out in use_search
After change:
2024-10-25_15-53-55.mp4
2024-10-25_15-57-36.mp4
Issues Resolved
NA
Screenshot
NA
Testing the changes
Changelog
Check List
yarn test:jest
yarn test:jest_integration