Skip to content
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] Do not add field with index:false to query default value #145410

Merged

Conversation

nchaulet
Copy link
Member

@nchaulet nchaulet commented Nov 16, 2022

Summary

Resolve #143936

We should not add field with index.false or doc_values:false to the default query settings. That PR fix that.

Added some unit test to the settings generation.

@nchaulet nchaulet added bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v8.6.0 labels Nov 16, 2022
@nchaulet nchaulet self-assigned this Nov 16, 2022
@nchaulet nchaulet requested a review from a team as a code owner November 16, 2022 16:28
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@nchaulet
Copy link
Member Author

@elasticmachine merge upstream

@nchaulet
Copy link
Member Author

@elasticmachine merge upstream

Copy link
Contributor

@juliaElastic juliaElastic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nchaulet
Copy link
Member Author

@elasticmachine merge upstream

@nchaulet nchaulet enabled auto-merge (squash) November 17, 2022 14:17
@nchaulet
Copy link
Member Author

@elasticmachine merge upstream

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

ESLint disabled in files

id before after diff
osquery 1 2 +1

ESLint disabled line counts

id before after diff
enterpriseSearch 19 21 +2
fleet 59 65 +6
osquery 108 113 +5
securitySolution 441 447 +6
total +19

Total ESLint disabled count

id before after diff
enterpriseSearch 20 22 +2
fleet 67 73 +6
osquery 109 115 +6
securitySolution 518 524 +6
total +20

History

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

cc @nchaulet

@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.6

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Nov 17, 2022
#145410) (#145601)

# Backport

This will backport the following commits from `main` to `8.6`:
- [[Fleet] Do not add field with index:false to query default value
(#145410)](#145410)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Nicolas
Chaulet","email":"[email protected]"},"sourceCommit":{"committedDate":"2022-11-17T17:14:44Z","message":"[Fleet]
Do not add field with index:false to query default value
(#145410)","sha":"ca68c0f9a6c5ef981de59355cc444556e329cff6","branchLabelMapping":{"^v8.7.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Team:Fleet","v8.6.0","v8.7.0"],"number":145410,"url":"https://github.com/elastic/kibana/pull/145410","mergeCommit":{"message":"[Fleet]
Do not add field with index:false to query default value
(#145410)","sha":"ca68c0f9a6c5ef981de59355cc444556e329cff6"}},"sourceBranch":"main","suggestedTargetBranches":["8.6"],"targetPullRequestStates":[{"branch":"8.6","label":"v8.6.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.7.0","labelRegex":"^v8.7.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/145410","number":145410,"mergeCommit":{"message":"[Fleet]
Do not add field with index:false to query default value
(#145410)","sha":"ca68c0f9a6c5ef981de59355cc444556e329cff6"}}]}]
BACKPORT-->

Co-authored-by: Nicolas Chaulet <[email protected]>
@kowalczyk-p
Copy link

@kpollich @nchaulet is there any chance for backport to version 8.5?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team v8.6.0 v8.7.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Fleet] Remove all fields with index:false and doc_values:false from default_fields
6 participants