-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Fleet] Remove deprecated topics property for kafka output in favor of topic #199226
[Fleet] Remove deprecated topics property for kafka output in favor of topic #199226
Conversation
…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/fleet --update'
… src/core/server/integration_tests/ci_checks'
…nchaulet/kibana into feature-remove-deprecated-kafka-topics
Pinging @elastic/fleet (Team:Fleet) |
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
outputDoc.attributes.topic = outputDoc.attributes.topics?.filter((t) => !t.when)?.[0]?.topic; | ||
} | ||
|
||
delete outputDoc.attributes.topics; |
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.
The fact that we're removing this field makes it non-BWC. I wonder if we can perform the migration in 2 steps:
- Maintains both fields
- (In a couple of weeks) Deletes the deprecated
topics
array
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.
@afharo since kibana 8.13 we already handle the fact that topics
could not be here and the topic
field is present, so I think we should not have any BWC issues
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.
let me know if you think this could still be an issue
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.
oh! if 8.13+ already uses the single topic
field, then all good on my end. Approving
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 checked the changes for the dynamic topic, back when I implemented it I wasn't aware that topic
was being deprecated. Thanks for taking care of it! LGTM 🚀
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Async chunks
History
cc @nchaulet |
Description
Related to #189746
Remove deprecated property
topics
from output APIs in response and requests(GET|POST|PUT) /api/fleet/outputs
in favor of thetopic
property in 9.0.The property was still used in Fleet UI and had to made a few change there.