-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
[ML] automatically update deprecated datafeed aggregations #55678
[ML] automatically update deprecated datafeed aggregations #55678
Conversation
Pinging @elastic/ml-core (:ml) |
import java.util.Collections; | ||
import java.util.Map; | ||
|
||
public class AggProviderWireSerializationTests extends AbstractBWCWireSerializationTestCase<AggProvider> { |
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.
toXContent
for the agg provider should only provide the agg map. This test is to make sure that we appropriate write between nodes of various versions.
.setId(datafeedConfig.getId()) | ||
.build()) | ||
.collect(Collectors.toList()); | ||
if (updates.isEmpty()) { |
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.
If there are no datafeed configs, that also means there won't be any updates.
This is ok, as all new datafeed configs enforce the appropriate date_histogram agg format.
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
The framework is cool. I think there will be other uses for it soon.
I made a couple of minor comments but am happy for this to be merged without further review.
This creates an auto update service. The first automatic update is rewriting datafeed aggregations if they exist.
closes #51606