-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Fleet] Installation of hidden field #85703
Conversation
Pinging @elastic/ingest-management (Team:Ingest Management) |
This PR does not prefix hidden data streams with a |
@kevinlog I got confused at first by the title of the PR as it is about hidden data streams and not fields. I understand that it is a field in the manifest ;-) |
@elasticmachine merge upstream |
}: { | ||
type: string; | ||
templateName: string; | ||
mappings: IndexTemplateMappings; | ||
pipelineName?: string | undefined; | ||
packageName: string; | ||
composedOfTemplates: string[]; | ||
hidden?: boolean | false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Doesn't boolean | false
make the field non-optional for TS?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the field can still be optionally passed - take a look at this unit test case:
https://github.com/elastic/kibana/pull/85703/files#diff-f1bfa3ccb84f6e245a1f2a762eceeb3f2372bd454578568ce84a43c9c2c47fffR85
I'm thinking that we can drop the | false
part or update it to | undefined
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd prefer dropping the | false
then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated in both places
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one question about types. LGTM 👍
💚 Build SucceededMetrics [docs]Distributable file count
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Just a note, once you merge one of these you might cause conflicts in your other PR because I think we're touching a couple of the same functions. So merge them slowly and see if conflicts need to be resolved, otherwise we might break master.
Co-authored-by: nnamdifrankie <franklin.ejoh@elastic.co> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: nnamdifrankie <franklin.ejoh@elastic.co> Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Summary
This PR adds the
hidden
field to package installation which can be used to indicate that adata_stream
should be hidden.Example package PR that will use this field: elastic/endpoint-package#118
See screenshot after installing a package with

hidden
set totrue
Checklist
Delete any items that are not applicable to this PR.