Skip to content

Conversation

@hendrikmuhs
Copy link

@hendrikmuhs hendrikmuhs commented Oct 13, 2021

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)

@hendrikmuhs hendrikmuhs force-pushed the transform-composable-template branch 4 times, most recently from b1364ab to 322bf5a Compare October 14, 2021 14:30
@hendrikmuhs hendrikmuhs force-pushed the transform-composable-template branch from 322bf5a to 74d42a3 Compare October 14, 2021 18:57
@hendrikmuhs hendrikmuhs marked this pull request as ready for review October 14, 2021 19:02
@elasticmachine elasticmachine added the Team:ML Meta label for the ML team label Oct 14, 2021
@elasticmachine
Copy link
Collaborator

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}
Copy link
Author

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() {
Copy link
Author

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

Copy link

@droberts195 droberts195 left a 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

@hendrikmuhs hendrikmuhs merged commit 43a9d4d into elastic:master Oct 15, 2021
@hendrikmuhs hendrikmuhs deleted the transform-composable-template branch October 15, 2021 05:52
@elasticsearchmachine
Copy link
Collaborator

💔 Backport failed

Status Branch Result
7.x Commit could not be cherrypicked due to conflicts

You can use sqren/backport to manually backport by running backport --upstream elastic/elasticsearch --pr 79032

elasticsearchmachine pushed a commit that referenced this pull request Oct 15, 2021
…79032) (#79218)

* [Transform] switch to a composable template for the audit index (#79032)

* fix merge conflict

* remove unused import
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants