Skip to content

[WIP] Replacing EuiPopover with EuiComboBox#112026

Closed
1Copenut wants to merge 7 commits intomasterfrom
tp-inspector-combobox
Closed

[WIP] Replacing EuiPopover with EuiComboBox#112026
1Copenut wants to merge 7 commits intomasterfrom
tp-inspector-combobox

Conversation

@1Copenut
Copy link
Copy Markdown
Contributor

@1Copenut 1Copenut commented Sep 13, 2021

  • The combobox will help alleviate issues when the list of options is very long

Summary

Summarize your PR. If it involves visual changes include a screenshot or gif.

Checklist

Delete any items that are not applicable to this PR.

Risk Matrix

Delete this section if it is not applicable to this PR.

Before closing this PR, invite QA, stakeholders, and other developers to identify risks that should be tested prior to the change/feature release.

When forming the risk matrix, consider some of the following examples and how they may potentially impact the change:

Risk Probability Severity Mitigation/Notes
Multiple Spaces—unexpected behavior in non-default Kibana Space. Low High Integration tests will verify that all features are still supported in non-default Kibana Space and when user switches between spaces.
Multiple nodes—Elasticsearch polling might have race conditions when multiple Kibana nodes are polling for the same tasks. High Low Tasks are idempotent, so executing them multiple times will not result in logical error, but will degrade performance. To test for this case we add plenty of unit tests around this logic and document manual testing procedure.
Code should gracefully handle cases when feature X or plugin Y are disabled. Medium High Unit tests will verify that any feature flag or plugin combination still results in our service operational.
See more potential risk examples

For maintainers

* The combobox will help alleviate issues when the list of options is very long
@1Copenut 1Copenut self-assigned this Sep 13, 2021
@1Copenut 1Copenut added Team:AppServices v8.0.0 v7.16.0 auto-backport Deprecated - use backport:version if exact versions are needed release_note:enhancement and removed backport-v7.16.0 labels Sep 14, 2021
1Copenut added 3 commits September 15, 2021 12:37
* Added an onChange handler
* Renamed the method to render the combobox
* Commented out additional blocks of code before final refactor
* Removed three helper methods for the EUIPopover.
  * `togglePopover()`
  * `closePopover()`
  * `renderRequestDropdownItem()`
* Removed the local state object and interface (no longer needed)
* Renamed the const `options` to `selectedOptions` in `handleSelectd()`
  method to better reflect where the options array was coming from.
* Fixed the inspector functional test to use comboBox service
* Removed two unused translations
1Copenut added 3 commits September 28, 2021 15:02
* Updated the test expectations to the default string
* Both tests were looking for a named string instead of a default
  message
@kibanamachine
Copy link
Copy Markdown
Contributor

💚 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
inspector 16.0KB 14.7KB -1.2KB

History

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

cc @1Copenut

@1Copenut
Copy link
Copy Markdown
Contributor Author

Closing this draft PR in favor of #113566 that has additional improvements

@1Copenut 1Copenut closed this Sep 30, 2021
@1Copenut 1Copenut deleted the tp-inspector-combobox branch October 14, 2021 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Deprecated - use backport:version if exact versions are needed release_note:enhancement v7.16.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants