Skip to content

Fix entity generation#2548

Merged
mjwolf merged 3 commits intoelastic:mainfrom
mjwolf:fix-entity-generation
Oct 9, 2025
Merged

Fix entity generation#2548
mjwolf merged 3 commits intoelastic:mainfrom
mjwolf:fix-entity-generation

Conversation

@mjwolf
Copy link
Contributor

@mjwolf mjwolf commented Oct 1, 2025

1. What does this PR do?

Correctly add entity to generated files. entity fields were previously not being added to the generated files in all the correct places.

This problem was partially hidden because the generated docs files weren't being removed with the make clean command. This also fixes that problem.

2. Which ECS fields are affected/introduced?

Top-level entity fields are now added to the generated files.

3. Why is this change necessary?

4. Have you added/updated documentation?

YES

5. Have you built ECS and committed any newly generated files?

YES

6. Have you run the ECS validation tests locally?

YES

7. Anything else for the reviewers?


Commit Message

Correctly add top-level entity fields to the generated files.
This also updates the make clean command to clean generated doc files.

mjwolf added 2 commits October 1, 2025 14:19
Properly generate entity fields in all generated files. The top-level
entity files were previously not being included in the generated files.

This problem was partially hidden because the `make clean`
command didn't remove generated files in `docs/reference/`, so some
older entity files were kept. This updates the command to clean all
generated files in `docs/reference`.
@mjwolf mjwolf requested a review from a team as a code owner October 1, 2025 21:45
@github-actions
Copy link

github-actions bot commented Oct 1, 2025

Documentation changes preview: https://docs-v3-preview.elastic.dev/elastic/ecs/pull/2548/reference/

@github-actions
Copy link

github-actions bot commented Oct 1, 2025

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@github-actions
Copy link

github-actions bot commented Oct 1, 2025

Copy link
Contributor

@kgeller kgeller left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@mjwolf mjwolf merged commit bba184f into elastic:main Oct 9, 2025
7 checks passed
mjwolf added a commit to mjwolf/ecs that referenced this pull request Oct 17, 2025
Correctly add top-level entity fields to the generated files.
This also updates the make clean command to clean generated doc files.
mjwolf added a commit that referenced this pull request Oct 20, 2025
* Change entity multi_field text type to match_only_text (#2547)

Change the field type for multi_field values in entity from text to
match_only_text.

This change will match the multi_field type used for other similar fields in
other schema files, and will match the expected dynamic value in ecs@mappings.

* Fix entity generation (#2548)

Correctly add top-level entity fields to the generated files.
This also updates the make clean command to clean generated doc files.

* Update embedded semconv version to v1.37.0 (#2550)

Update the semconv version used with ECS to generate documentation to
semantic-conventions v1.37.0.

This will ensure that documentation is built with the latest semconv
version, and prepare ECS to work with more related fields.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants