provectus/kafka-ui

[Topics] Retention bytes custom parameter overrides the "Max size on disk in GB" value within Topic

开放

#3,270 创建于 2023年1月26日

 (3 条评论) (0 个反应) (0 位负责人)Java (977 个派生)batch import
good first issuescope/frontendstatus/acceptedtype/bug

仓库指标

星标
 (7,799 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Describe the bug (Actual behavior) When user is selecting "Max size on disk in GB" value (10 GB) and then add the Custom parameter "Retention bytes" with any value, after saving and editing the Topic, added custom parameter keeps and "Max size on disk in GB" value returns to "Not Set"

Expected behavior

  • If the "Max size on disk in GB" is selected, "Retention bytes" can be removed from Custom parameter dropdown values
  • If user lets "Max size on disk in GB" to be "Not set" or select any value (1, 10, 20, 50 GB) and then add the Retention bytes, after Topic save, the value of custom retention bytes can be displayed in "Max size on disk in GB" instead of "Not set"
  • Suggested to change "Max size on disk in GB" to be "Max size on disk "

Set up https://www.kafka-ui.provectus.io/

Steps to Reproduce

  1. Navigate to Topics
  2. Add required data
  3. Select "10 GB" for " "Max size on disk in GB"
  4. Add custom parameter
  5. Select retention bytes
  6. Fill value
  7. Save the Topic
  8. Press "Edit settings" from 3dot menu

Screenshots

https://user-images.githubusercontent.com/104780608/214736529-8e872422-685b-4eb4-92fe-09d74d64d03c.mov

Additional context relates to https://github.com/provectus/kafka-ui/issues/3071

贡献者指南