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

Revert "[Fleet] Expand subfields of nested objects when generating template (#191730)" #191897

Merged
merged 1 commit into from
Sep 2, 2024

Conversation

jsoriano
Copy link
Member

@jsoriano jsoriano commented Sep 2, 2024

This reverts commit cdb1eb8.

It is a bugfix but was not intended to be released in a patch version.

@jsoriano jsoriano added the Team:Fleet Team label for Observability Data Collection Fleet team label Sep 2, 2024
@jsoriano jsoriano self-assigned this Sep 2, 2024
@elasticmachine
Copy link
Contributor

Pinging @elastic/fleet (Team:Fleet)

@obltmachine
Copy link

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@jsoriano jsoriano added the release_note:skip Skip the PR/issue when compiling release notes label Sep 2, 2024
@jsoriano jsoriano requested a review from a team September 2, 2024 09:33
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

✅ unchanged

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

cc @jsoriano

@jsoriano jsoriano merged commit 7cf77b3 into elastic:8.15 Sep 2, 2024
25 checks passed
@jsoriano jsoriano deleted the revert-191879 branch September 2, 2024 14:05
jsoriano added a commit to jsoriano/kibana that referenced this pull request Sep 6, 2024
jsoriano added a commit that referenced this pull request Sep 6, 2024
…emplate (#191730)" (#191897) (#192246)

This change was released at the end in 8.15.1, so let's keep it the
branch.
    
There are definitions of nested objects whose fields are defined as
subfields, like this:
```
  - name: a
    type: nested
    fields:
    - name: b
      type: keyword
```
This should generate a template with the subfields as subproperties:
```
      "properties": {
        ...
        "a": {
          "type": "nested",
          "properties": {
            "b": {
              "ignore_above": 1024,
              "type": "keyword",
            },
          },
        },
      },
```
This change adds support for this. Without it the nested object is
empty, without subfields, what is unexpected.

See elastic/package-spec#784 for more context.

This change was originally reverted in 8.15 in  #191897

Release notes were manually added in elastic/ingest-docs#1292
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:skip Skip the PR/issue when compiling release notes Team:Fleet Team label for Observability Data Collection Fleet team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants