[Lens] Debounce axis name inputs mob programming #100108
[Lens] Debounce axis name inputs mob programming #100108mbondyra merged 9 commits intoelastic:masterfrom
Conversation
36db12c to
4b5aef8
Compare
08161fa to
1733711
Compare
c125a9e to
c7de6d2
Compare
|
Pinging @elastic/kibana-app (Team:KibanaApp) |
x-pack/plugins/lens/public/indexpattern_datasource/query_input.tsx
Outdated
Show resolved
Hide resolved
|
I'm looking into this failure. Seems like this is solution is somehow incompatible with using jest fake timers. |
|
In the ranges tests I was manually directing the jest fake times. Maybe we can build some utility to test these kind of inputs if we want to use them across whole Lens. |
|
This is really strange - I don't get why the tests start failing for a debounce component which isn't even using the new code, but something completely separate. |
|
I can't find the root cause - We could fix it for this PR by reverting the change for the label input (https://github.com/elastic/kibana/pull/100108/files#diff-ea7b153f33d556c9480f5c09e5ff7ca1a6a892b3c2d008a1dfed8368ea0763cb) - this will make the tests pass. |
|
The advanced editor is using the |
…bondyra/kibana into lens/debounce_axis_name_inputs
|
@elasticmachine merge upstream |
|
Hey @dej611 you were right that the problem is mixing useDebounce with our debounce. I fixed it by mocking the useDebounce function on the test, let me know your thoughts! |
|
Mocking it is a good start. It would be nice to address it completely without the mock, but we could delay it as tech debt I guess for now. |
💚 Build SucceededMetrics [docs]Module Count
Async chunks
Unknown metric groupsReferences to deprecated APIs
To update your PR or re-run it, just comment with: |
💚 Backport successful
This backport PR will be merged automatically after passing CI. |
Summary
Fixes #98719
Checklist
Delete any items that are not applicable to this PR.
For maintainers