-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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 autocomplete suggestions for lowercase methods and other related bug #121033
Fix autocomplete suggestions for lowercase methods and other related bug #121033
Conversation
Pinging @elastic/kibana-stack-management (Team:Stack Management) |
e2f5074
to
96622e3
Compare
lastEvaluatedToken.position.column !== currentToken.position.column || | ||
lastEvaluatedToken.position.lineNumber !== currentToken.position.lineNumber || | ||
(lastEvaluatedToken.position.column !== currentToken.position.column || | ||
lastEvaluatedToken.position.lineNumber !== currentToken.position.lineNumber) && |
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.
nit: Could you please add a comment here to explain what the boolean expressions do, just to make the code a little easier to understand?
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.
Thank you so much for fixing both bugs, @mibragimov!
Tested locally and all works as expected 👍
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: cc @mibragimov |
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
…bug (elastic#121033) * Fix autocomplete suggestions for lowercase methods and another related bug Co-authored-by: Muhammad Ibragimov <[email protected]>
## Summary This PR,,, 1. fixes #156254 2. fixes #120606 differently from #121033 3. fixes #19961 differently from #121033 #### [1] left=PR / right=8.9.0 ![fix-156254](https://github.com/elastic/kibana/assets/721858/d3340ed9-44a1-4862-a48c-4548d69090dc) #### [2] left=PR / right=8.9.0 ![fix-120606](https://github.com/elastic/kibana/assets/721858/2d282392-e280-44d8-aa5c-2cb042f32e14) #### [3] left=PR / right=8.9.0 ![fix-19961](https://github.com/elastic/kibana/assets/721858/9d9808d6-727d-4637-a48f-6dda520b38b0) <details> <summary>Original description</summary> 1. fixes #156254 2. refixes #120606 - which should stay closed 3. unfixes #19961 - which must be reopened or duplicated after merging this PR #### [1] left=PR / right=8.9.0 ![fix-156254](https://github.com/elastic/kibana/assets/721858/5ec5162e-7942-4068-ace3-65592f3fe8da) #### [2] left=PR / right=8.9.0 ![refix-120606](https://github.com/elastic/kibana/assets/721858/fddd3212-5c57-4c6a-af01-f70e9f7ec644) _Autocomplete starts if the method is all uppercase or all lowercase; it doesn't with mixed cases such as `Get`, `gET`, etc. anymore._ #### [3] left=PR / right=8.9.0 ![unfix-19961](https://github.com/elastic/kibana/assets/721858/32562ca4-bfc0-4803-9a38-009d8dc6bc45) _Autocomplete no longer starts on first typing `_` after `url.slash`. No simple solution makes me leave this issue unfixed._ </details> ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios - [x] Any UI touched in this PR is usable by keyboard only (learn more about [keyboard accessibility](https://webaim.org/techniques/keyboard/)) - [x] Any UI touched in this PR does not create any new axe failures (run axe in browser: [FF](https://addons.mozilla.org/en-US/firefox/addon/axe-devtools/), [Chrome](https://chrome.google.com/webstore/detail/axe-web-accessibility-tes/lhdoppojpmngadmnindnejefpokejbdd?hl=en-US)) ### For maintainers - [x] This was checked for breaking API changes and was [labeled appropriately](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process) ### Other notes - `backport:skip` because #156254 is not applicable to 7.x. - ~~The release note doesn't need to mention the unfix of #19961 because #121033 mentioned it as `other related bug` only.~~ ### Release note Fixes unnecessary autocompletes on HTTP methods --------- Co-authored-by: Kibana Machine <[email protected]>
Closes: #120606, Closes: #19961