-
Notifications
You must be signed in to change notification settings - Fork 25.6k
[Transform] switch to a composable template for the audit index #79032
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
[Transform] switch to a composable template for the audit index #79032
Conversation
b1364ab to
322bf5a
Compare
322bf5a to
74d42a3
Compare
|
Pinging @elastic/ml-core (Team:ML) |
|
|
||
| /** | ||
| * Waits for Machine Learning and Transform templates to be created by the {@link MetadataUpgrader} | ||
| * Waits for Machine Learning templates to be created by the {@link MetadataUpgrader} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I intentionally removed the transform template here, I am confident this is not necessary and its unnatural, we don't do this in the product.
| } | ||
|
|
||
| @Override | ||
| public UnaryOperator<Map<String, IndexTemplateMetadata>> getIndexTemplateMetadataUpgrader() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AbstractAuditor takes care of everything since #63063
droberts195
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I just saw a couple of nits in messages and comments
...ransform/src/main/java/org/elasticsearch/xpack/transform/notifications/TransformAuditor.java
Outdated
Show resolved
Hide resolved
...main/java/org/elasticsearch/xpack/transform/transforms/TransformPersistentTasksExecutor.java
Outdated
Show resolved
Hide resolved
💔 Backport failed
You can use sqren/backport to manually backport by running |
switch to a composable template for the audit index
relates #73232, #63063
(The code has not been touched for a while. The refactoring in #73232 and #63063 made it easy to switch and removed some dependencies)