-
Notifications
You must be signed in to change notification settings - Fork 16
manage admin topic #703
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
manage admin topic #703
Conversation
marclop
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.
I don't think we should be exposing these primitives in this library, We can fix the issues we're seeing in a different way. For completeness, I've provided some feedback on Slack.
| trace.WithAttributes( | ||
| semconv.MessagingSystemKey.String("kafka"), | ||
| ), | ||
| ) |
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.
Removing the TODO comment, since I think this is redundant now.
|
|
||
| // Remove cleanup.policy if it exists, | ||
| // since this field cannot be altered. | ||
| delete(c.topicConfigs, "cleanup.policy") |
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.
Apart from the code refactoring, this is really the only logic change in this PR. cc @marclop
| }, | ||
| }, | ||
| } | ||
|
|
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.
Test that the cleanup.policy is actually deleted.
| return topics[i].Configs[a].Name < topics[i].Configs[b].Name | ||
| }) | ||
| } | ||
| } |
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.
Helper functions to assert configs with multiple fields.
| MeterProvider: mt.MeterProvider, | ||
| }) | ||
| require.NoError(t, err) | ||
|
|
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.
Moved for readability.
marclop
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.
Thanks for the updates. Let's get this merged.
Add a clear abstraction layer between project and admin topic creation. This PR introduces a
CreateAdminTopicsandCreateProjectTopicsmethod, along with some helper functions to improve code readability.