Skip to content

Make template conflict warning deterministic#67066

Merged
tvernum merged 1 commit intoelastic:masterfrom
tvernum:make-template-warning-deterministic
Jan 7, 2021
Merged

Make template conflict warning deterministic#67066
tvernum merged 1 commit intoelastic:masterfrom
tvernum:make-template-warning-deterministic

Conversation

@tvernum
Copy link
Copy Markdown
Contributor

@tvernum tvernum commented Jan 6, 2021

This changes the conflict (overlap) template warning so that the
message is built deterministically. It does this by collecting the
composable templates into a map sorted by template name.

Relates: #66820

This changes the conflict (overlap) template warning deterministic by
collecting the composable templates into a map sorted by template
name.

Relates: elastic#66820
@tvernum tvernum added >enhancement :Data Management/Indices APIs DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead. v8.0.0 v7.12.0 labels Jan 6, 2021
@tvernum tvernum requested a review from dakrone January 6, 2021 02:39
@elasticmachine elasticmachine added the Team:Data Management (obsolete) DO NOT USE. This team no longer exists. label Jan 6, 2021
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-features (Team:Core/Features)

tvernum added a commit to tvernum/elasticsearch that referenced this pull request Jan 6, 2021
This changes the expected error message (on FIPS) so that the
order of the templates (and their associated patterns) matches
the (newly updated) order generated by the server.

Relates: elastic#67066
Resolves: elastic#66820
Copy link
Copy Markdown
Member

@dakrone dakrone left a comment

Choose a reason for hiding this comment

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

LGTM, thanks Tim!

@tvernum tvernum merged commit 7d3edd1 into elastic:master Jan 7, 2021
tvernum added a commit that referenced this pull request Jan 7, 2021
This changes the expected error message (on FIPS) so that the
order of the templates (and their associated patterns) matches
the (newly updated) order generated by the server.

Relates: #67066
Resolves: #66820
tvernum added a commit to tvernum/elasticsearch that referenced this pull request Jan 11, 2021
This changes the conflict (overlap) template warning so that the
message is built deterministically. It does this by collecting the
composable templates into a map sorted by template name.

Relates: elastic#66820
Backport of: elastic#67066
tvernum added a commit that referenced this pull request Jan 11, 2021
This changes the conflict (overlap) template warning so that the
message is built deterministically. It does this by collecting the
composable templates into a map sorted by template name.

Backport of: #67066
tvernum added a commit to tvernum/elasticsearch that referenced this pull request Jan 11, 2021
This changes the expected error message (on FIPS) so that the
order of the templates (and their associated patterns) matches
the (newly updated) order generated by the server.

Relates: elastic#67066
Resolves: elastic#66820

Backport of: elastic#67067
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Data Management/Indices APIs DO NOT USE. Use ":Distributed/Indices APIs" or ":StorageEngine/Templates" instead. >enhancement Team:Data Management (obsolete) DO NOT USE. This team no longer exists. v7.12.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants