Skip to content

Fix autocomplete suggestions for lowercase methods and other related bug#121033

Merged
mibragimov merged 3 commits intoelastic:mainfrom
mibragimov:autocomplete-lowercase-methods
Dec 14, 2021
Merged

Fix autocomplete suggestions for lowercase methods and other related bug#121033
mibragimov merged 3 commits intoelastic:mainfrom
mibragimov:autocomplete-lowercase-methods

Conversation

@mibragimov
Copy link
Copy Markdown
Contributor

@mibragimov mibragimov commented Dec 10, 2021

Closes: #120606, Closes: #19961

@mibragimov mibragimov added Feature:Console Dev Tools Console Feature Feature:Dev Tools Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// backport:skip This PR does not require backporting v8.1.0 labels Dec 10, 2021
@mibragimov mibragimov requested a review from a team as a code owner December 10, 2021 12:08
@mibragimov mibragimov self-assigned this Dec 10, 2021
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/kibana-stack-management (Team:Stack Management)

@mibragimov mibragimov force-pushed the autocomplete-lowercase-methods branch from e2f5074 to 96622e3 Compare December 13, 2021 10:54
@mibragimov mibragimov requested a review from vladpro25 December 13, 2021 10:54
lastEvaluatedToken.position.column !== currentToken.position.column ||
lastEvaluatedToken.position.lineNumber !== currentToken.position.lineNumber ||
(lastEvaluatedToken.position.column !== currentToken.position.column ||
lastEvaluatedToken.position.lineNumber !== currentToken.position.lineNumber) &&
Copy link
Copy Markdown
Contributor

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?

Copy link
Copy Markdown
Contributor

@yuliacech yuliacech left a 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 👍

@kibana-ci
Copy link
Copy Markdown

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
console 373.4KB 373.5KB +52.0B

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @mibragimov

Copy link
Copy Markdown
Contributor

@alexwizp alexwizp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@mibragimov mibragimov merged commit bd01469 into elastic:main Dec 14, 2021
@mibragimov mibragimov deleted the autocomplete-lowercase-methods branch December 14, 2021 09:48
TinLe pushed a commit to TinLe/kibana that referenced this pull request Dec 22, 2021
…bug (elastic#121033)

* Fix autocomplete suggestions for lowercase methods and another related bug

Co-authored-by: Muhammad Ibragimov <muhammad.ibragimov@elastic.co>
sakurai-youhei added a commit that referenced this pull request Aug 23, 2023
## 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 <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport:skip This PR does not require backporting Feature:Console Dev Tools Console Feature Feature:Dev Tools release_note:fix Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more t// v8.1.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Console] No autocomplete suggestions when using lowercase methods Console doesn't display suggestions when you first type _

5 participants