Skip to content
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

[feature] render new options for rebalance server #15256

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

himanish-star
Copy link

Description

We now have a new set of options both basic and advanced that need to be shown in the UI with

  • default values
  • description
  • warnings
  • suggestions

Fix

This PR builds the new UI which modifies the step 1 of selecting options

image

Comment on lines +13 to +29
export const rebalanceServerOptions: RebalanceServerOption[] = [
{
"name": "dryRun",
"defaultValue": false,
"label": "Dry Run",
"type": "BOOL",
"description": "If enabled, rebalance will not run but expected changes that will occur will be returned",
"isAdvancedConfig": false,
"isStatsGatheringConfig": true,
"hasBreakingChange": false
},
{
"name": "preChecks",
"defaultValue": false,
"type": "BOOL",
"label": "Pre-Checks",
"description": "If enabled, will perform some pre-checks to ensure rebalance is safe, must enable dryRun to enable this",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@somandal you can now configure what to show in the UI directly from this config file

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is great! thank you!

defaultValue: string | boolean | number;
isAdvancedConfig: boolean;
isStatsGatheringConfig: boolean;
hasBreakingChange: boolean;
Copy link
Contributor

@somandal somandal Mar 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we rename this?
perhaps something like: doubleCheckConfigValue, or markWithWarningIcon

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, can we show a tool-tip for all the options marked as hasBreakingChange to explain why? I can share the "why" text in the doc we have if this is possible

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, please share what to show in the tooltip

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've updated the reference doc with some details on the tooltip, please take a look when you get a chance. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants