-
Notifications
You must be signed in to change notification settings - Fork 8.6k
[RAM] Add shareable rule tag filter #130710
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
Merged
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
561b99b
rule tag filter
JiaweiWu 1c4b4b3
lower case test subj
JiaweiWu 28a8ba6
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine 17374b3
Merge branch 'main' into issue-130158-tag-filter
kibanamachine d4efe95
Tag filter and aggregation APIs
JiaweiWu 85ec236
[CI] Auto-commit changed files from 'node scripts/eslint --no-cache -…
kibanamachine 04a5f8f
Fix and add more tests
JiaweiWu 93c1358
Merge branch 'main' into issue-130158-tag-filter
kibanamachine 3ca21d7
Fix test
JiaweiWu df698fc
Fix merge conflicts
JiaweiWu f0b2615
Fix test and add new function test
JiaweiWu 197b792
Addressed comments
JiaweiWu 74fd8ab
Merge branch 'main' into issue-130158-tag-filter
kibanamachine 0a6d7e1
Fix merge conflicts
JiaweiWu 7e2d6df
Lint
JiaweiWu c35c626
Create new load tags function
JiaweiWu 5428990
Fix merge conflicts
JiaweiWu 64364c8
Merge branch 'main' into issue-130158-tag-filter
kibanamachine 869545a
bump bundle size
JiaweiWu 010bec3
Merge branch 'main' into issue-130158-tag-filter
kibanamachine File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
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
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
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
25 changes: 25 additions & 0 deletions
25
...s_ui/public/application/internal/shareable_components_sandbox/rule_tag_filter_sandbox.tsx
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| /* | ||
| * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
| * or more contributor license agreements. Licensed under the Elastic License | ||
| * 2.0; you may not use this file except in compliance with the Elastic License | ||
| * 2.0. | ||
| */ | ||
| import React, { useState } from 'react'; | ||
| import { EuiSpacer } from '@elastic/eui'; | ||
| import { getRuleTagFilterLazy } from '../../../common/get_rule_tag_filter'; | ||
|
|
||
| export const RuleTagFilterSandbox = () => { | ||
| const [selectedTags, setSelectedTags] = useState<string[]>([]); | ||
|
|
||
| return ( | ||
| <div style={{ flex: 1 }}> | ||
| {getRuleTagFilterLazy({ | ||
| tags: ['tag1', 'tag2', 'tag3', 'tag4'], | ||
| selectedTags, | ||
| onChange: setSelectedTags, | ||
| })} | ||
| <EuiSpacer /> | ||
| <div>selected tags: {JSON.stringify(selectedTags)}</div> | ||
| </div> | ||
| ); | ||
| }; |
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
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.