-
Notifications
You must be signed in to change notification settings - Fork 916
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
Fix Discover not respecting searchOnPageLoad Advanced Setting #7252
Conversation
Signed-off-by: Suchit Sahoo <[email protected]>
❌ Empty Changelog SectionThe Changelog section in your PR description is empty. Please add a valid changelog entry or entries. If you did add a changelog entry, check to make sure that it was not accidentally included inside the comment block in the Changelog section. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7252 +/- ##
==========================================
+ Coverage 67.56% 67.62% +0.06%
==========================================
Files 3469 3471 +2
Lines 68479 68613 +134
Branches 11130 11165 +35
==========================================
+ Hits 46266 46399 +133
+ Misses 19511 19510 -1
- Partials 2702 2704 +2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@@ -22,9 +22,6 @@ export default function DiscoverContext({ children }: React.PropsWithChildren<Vi | |||
...deServices, | |||
...services, | |||
}); | |||
searchParams.data$.next({ |
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.
is this new bug?
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.
Yup. This was introduced after 2.15.
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.
LGTM. Tested the changes locally
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.
Thanks for correcting this.
Local tests look good.
* Fixed Discover Canvas Status stuck in Loading state Signed-off-by: Suchit Sahoo <[email protected]> * Changeset file for PR #7252 created/updated --------- Signed-off-by: Suchit Sahoo <[email protected]> Co-authored-by: opensearch-changeset-bot[bot] <154024398+opensearch-changeset-bot[bot]@users.noreply.github.com> (cherry picked from commit 60ecd36) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…#7262) * Fixed Discover Canvas Status stuck in Loading state * Changeset file for PR #7252 created/updated --------- (cherry picked from commit 60ecd36) Signed-off-by: Suchit Sahoo <[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>
Description
When we set the searchOnPageLoad Advanced Setting as false , Upon navigating to Discover home page, we can see the page being stuck in a loading state. Refer the image below for reference.
Issues Resolved
Screenshot
Testing the changes
Adding a sample image for reference
Changelog
Check List
yarn test:jest
yarn test:jest_integration