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

Cherry-pick #23183 to 7.x: Add nested field yml support in elasticsearch template rendering #23187

Merged
merged 3 commits into from
Dec 17, 2020

Conversation

andrewstucki
Copy link

@andrewstucki andrewstucki commented Dec 16, 2020

Cherry-pick of PR #23183 to 7.x branch. Original message:

What does this PR do?

It looks like we don't handle subfields specified in nested fields properly. Here's the relevant Elasticsearch documentation:

https://www.elastic.co/guide/en/elasticsearch/reference/current/nested.html

Currently it doesn't look like we use any non-dynamically mapped nested fields in our fields.yml specifications, so I'm fine doing this for the 7.12 release rather than 7.11.

Checklist

  • My code follows the style guidelines of this project
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have made corresponding change to the default configuration files
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

Related Issues

CC: @dcode

…stic#23183)

* Add nested field yml support in elasticsearch template rendering

* Handle empty properties

* Update changelog

(cherry picked from commit ba7dbb6)
@elasticmachine
Copy link
Collaborator

Pinging @elastic/security-external-integrations (Team:Security-External Integrations)

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Dec 16, 2020
@andrewstucki andrewstucki requested a review from a team December 16, 2020 20:30
@andrewstucki
Copy link
Author

Anyone know what's up with the cross-document linkage failure in CI? Looks like it's related to the ECS 1.8 release? Not entirely sure how to fix it.

@elasticmachine
Copy link
Collaborator

elasticmachine commented Dec 17, 2020

💚 Build Succeeded

the below badges are clickable and redirect to their specific view in the CI or DOCS
Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: Started by user Andrew Stucki

  • Start Time: 2020-12-17T14:42:43.286+0000

  • Duration: 51 min 31 sec

Test stats 🧪

Test Results
Failed 0
Passed 17462
Skipped 1408
Total 18870

Steps errors 2

Expand to view the steps failures

Terraform Apply on x-pack/metricbeat/module/aws
  • Took 0 min 14 sec . View more details on here
  • Description: terraform apply -auto-approve
Terraform Apply on x-pack/metricbeat/module/aws
  • Took 0 min 15 sec . View more details on here
  • Description: terraform apply -auto-approve

💚 Flaky test report

Tests succeeded.

Expand to view the summary

Test stats 🧪

Test Results
Failed 0
Passed 17462
Skipped 1408
Total 18870

@andrewstucki andrewstucki merged commit e6d405c into elastic:7.x Dec 17, 2020
@andrewstucki andrewstucki deleted the backport_23183_7.x branch December 17, 2020 15:58
@zube zube bot removed the [zube]: Done label Mar 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants