-
Notifications
You must be signed in to change notification settings - Fork 362
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
Show default config for topic configurations #1580
base: master
Are you sure you want to change the base?
Show default config for topic configurations #1580
Conversation
jvorcak
commented
Jan 8, 2025
- We needed to remove altering data structures in the backendAPI (moved to ConfigList where it was needed)
- We added an information about default value to the topic config form
@@ -127,6 +127,8 @@ const ConfigEditorForm: FC<{ | |||
|
|||
const valueType = watch('valueType'); | |||
|
|||
const defaultConfigSynonym = editedEntry.synonyms?.find((x) => x.source === 'DEFAULT_CONFIG'); |
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.
That's not always correct. A topic config may be inherited from:
- Default Config (defined in Redpanda / Apache Kafka if nothing is set)
- A default for all topics is set at the broker/cluster level (STATIC_BROKER_CONFIG / DYNAMIC_DEFAULT_BROKER_CONFIG / DYNAMIC_BROKER_CONFIG), basically to override the default config
or it is set at the Topic level (DYNAMIC_TOPIC_CONFIG) which is the custom/override case.
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.
@weeco in that case FE doesn't have this information. On this place we show this information only for default tab, so we don't care about a topic level intentionaly. However, if not set at a topic level, it can be set at multiple levels above, is there a hierarchy for this so that I can determine the default from synonyms 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.
Yes there's a hierarchy, it should be this order (top to bottom):
- DYNAMIC_TOPIC_CONFIG
- DYNAMIC_BROKER_CONFIG
- DYNAMIC_DEFAULT_BROKER_CONFIG
- STATIC_BROKER_CONFIG
- DEFAULT_CONFIG
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.