-
Notifications
You must be signed in to change notification settings - Fork 159
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
Skipping searchbar preview on reload #10232
Conversation
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your 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.
LGTM and works as expected 👍 Could you please add a changelog item for the bugfix?
Edit: e2e tests are failing though. You can run them locally via:
pnpm test:e2e:cucumber tests/e2e/cucumber/features/smoke/fullTextSearch.feature:6
pnpm test:e2e:cucumber tests/e2e/cucumber/features/smoke/search.feature:6
Maybe there is still a bug, or the tests need to be adjusted to the new behaviour.
@@ -129,6 +129,7 @@ export default defineComponent({ | |||
const optionsDropRef = ref(null) | |||
const activePreviewIndex = ref(null) | |||
const term = ref('') | |||
const loadFromRoute = ref(false) |
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.
Small nitpick about the variable naming: I'd like to name this something like restoreSearchFromRoute
to make it more descriptive.
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.
Fixed
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 and works as expected AFAICT 👍 Could you please add a changelog item?
Quality Gate failedFailed conditions 0.0% Condition Coverage on New Code (required ≥ 50%) |
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.
👍
* skipping searchbar preview on reload
* skipping searchbar preview on reload
Description
Setting "search term" from route would trigger search, which would create request on page load.
Added additional bool value to check if this change is triggered by route or user input
Related Issue
Types of changes
Checklist: