-
Notifications
You must be signed in to change notification settings - Fork 8.4k
[Controls] Bulk select for options list control #221010
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
Open
cqliu1
wants to merge
6
commits into
elastic:main
Choose a base branch
from
cqliu1:controls/options-list/select-deselect-all
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[Controls] Bulk select for options list control #221010
cqliu1
wants to merge
6
commits into
elastic:main
from
cqliu1:controls/options-list/select-deselect-all
+246
−3
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d036377
to
812c7ee
Compare
Cloud deployments require a Github label, please add |
Fix select and deselect logic Fix types Fetch more options on select/deselect all Add loadMoreOptions callback Add const for bulk selection limit Add i18n Remove unused import
d0646ff
to
263c283
Compare
Pinging @elastic/kibana-presentation (Team:Presentation) |
💔 Build Failed
Failed CI StepsHistory
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
backport:version
Backport to applied version labels
Feature:Dashboard
Dashboard related features
impact:high
Addressing this issue will have a high level of impact on the quality/strength of our product.
loe:medium
Medium Level of Effort
Project:Controls
release_note:enhancement
Team:Presentation
Presentation Team for Dashboard, Input Controls, and Canvas
v8.19.0
v9.1.0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Closes #181694.
This adds
Select all
andDeselect all
buttons to the options list popover to allow users to make bulk selections. Bulk selections will only be available when there are 100 or fewer available options.Disabled bulk select
Bulk selection is disabled when there are no available options.

Bulk selection is also disabled when total cardinality is over 100.
When
showOnlySelected
is enabledEven if the total cardinality is greater than the bulk selection limit, bulk selection is enabled when
showOnlySelected
is enabled, and the number of selection options is fewer than the bulk selection limit (e.g. fewer than 100 selections).Checklist
Check the PR satisfies following conditions.
Reviewers should verify this PR satisfies this list as well.
release_note:breaking
label should be applied in these situations.release_note:*
label is applied per the guidelinesIdentify risks
Does this PR introduce any risks? For example, consider risks like hard to test bugs, performance regression, potential of data loss.
Describe the risk, its severity, and mitigation for each identified risk. Invite stakeholders and evaluate how to proceed before merging.