-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ml-validation-cardinality-no-results
- Loading branch information
Showing
168 changed files
with
5,548 additions
and
1,031 deletions.
There are no files selected for viewing
This file contains 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
Validating CODEOWNERS rules …
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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,75 @@ | ||
[role="xpack"] | ||
[[managing-tags]] | ||
== Tags | ||
|
||
Tags enable you to categorize your saved objects. You can then easily filter for related objects based on shared tags. | ||
|
||
To begin, open the main menu, click *Stack Management*, then click *Tags*. | ||
|
||
[role="screenshot"] | ||
image::images/tags/tag-management-section.png[Tags management section] | ||
|
||
[float] | ||
=== Required permissions | ||
|
||
Access to *Tags* requires the `Tag Management` {kib} privilege. To add the privilege, open the menu, | ||
click *Stack Management*, then click *Roles*. | ||
|
||
In addition: | ||
|
||
* The `read` privilege allows you to assign tags to the saved objects for which you have write permission. | ||
* The `write` privilege enables you to create, edit, and delete tags. | ||
|
||
|
||
NOTE: Having the `Tag Management` {kib} privilege is not required to | ||
view tags assigned on objects the user has `read` access to, or to filter objects by tags | ||
in {kib} applications or from the navigational search. | ||
|
||
[float] | ||
[[settings-create-tag]] | ||
=== Create a tag | ||
|
||
Create a tag to assign to your saved objects. | ||
|
||
. Click *Create tag*. | ||
+ | ||
[role="screenshot"] | ||
image::images/tags/create-tag.png[Tag creation popin] | ||
. Enter a name and select a color for the new tag. | ||
+ | ||
The name can include alphanumeric characters (English letters and digits), `:`, `-`, `_` and the space character, | ||
and cannot be longer than 50 characters. | ||
. Click *Create tag*. | ||
|
||
[float] | ||
[[settings-assign-tag]] | ||
=== Assign a tag to saved objects | ||
|
||
Assign or remove tags to one or more saved objects. You must have `write` permission | ||
on the objects to which you assign the tags. | ||
|
||
. Click the action (...) icon in the tag row, and then select the *Manage assignments* action. | ||
+ | ||
[role="screenshot"] | ||
image::images/tags/manage-assignments-flyout.png[Assign flyout] | ||
. Select the objects to which you want to assign or remove tags. | ||
. Click on *Save tag assignments*. | ||
|
||
TIP: To assign multiple tags to objects at once, select their checkboxes | ||
and then select *Manage tag assignments* from the *selected tags* menu. | ||
|
||
[role="screenshot"] | ||
image::images/tags/bulk-assign-selection.png[Bulk assign tags] | ||
|
||
[float] | ||
[[settings-delete-tag]] | ||
=== Delete a tag | ||
|
||
Delete a tag and remove it from any saved objects. | ||
|
||
. Click the action (...) icon in the tag row, and then select the *Delete* action. | ||
|
||
. Click *Delete tag*. | ||
|
||
TIP: To delete multiple tags at once, select their checkboxes in the list view, | ||
and then select *Delete* action from the *selected tags* menu. |
This file contains 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 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 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 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 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 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 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 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
38 changes: 38 additions & 0 deletions
38
src/plugins/data/common/es_query/kuery/node_types/node_builder.ts
This file contains 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,38 @@ | ||
/* | ||
* Licensed to Elasticsearch B.V. under one or more contributor | ||
* license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright | ||
* ownership. Elasticsearch B.V. licenses this file to you under | ||
* the Apache License, Version 2.0 (the "License"); you may | ||
* not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
*/ | ||
|
||
import { KueryNode, nodeTypes } from '../types'; | ||
|
||
export const nodeBuilder = { | ||
is: (fieldName: string, value: string | KueryNode) => { | ||
return nodeTypes.function.buildNodeWithArgumentNodes('is', [ | ||
nodeTypes.literal.buildNode(fieldName), | ||
typeof value === 'string' ? nodeTypes.literal.buildNode(value) : value, | ||
nodeTypes.literal.buildNode(false), | ||
]); | ||
}, | ||
or: ([first, ...args]: KueryNode[]): KueryNode => { | ||
return args.length ? nodeTypes.function.buildNode('or', [first, nodeBuilder.or(args)]) : first; | ||
}, | ||
and: ([first, ...args]: KueryNode[]): KueryNode => { | ||
return args.length | ||
? nodeTypes.function.buildNode('and', [first, nodeBuilder.and(args)]) | ||
: first; | ||
}, | ||
}; |
This file contains 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 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 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 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 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 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 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 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.