Skip to content

mgr/dashboard : Fix application names in pools form - #67841

Merged
afreen23 merged 2 commits into
ceph:mainfrom
rhcs-dashboard:fix-pools-app-list-names
Apr 20, 2026
Merged

afreen23 merged 2 commits into
ceph:mainfrom
rhcs-dashboard:fix-pools-app-list-names

Conversation

@abhidesai6

@abhidesai6 abhidesai6 commented Mar 17, 2026 •

Copy link
Copy Markdown

Fixes : https://tracker.ceph.com/issues/75632
Signed-off-by: Abhishek Desai [email protected]

Description :

1. Change application name to more readable/simple terms
2. Made replicated_rule as default selected for replicated crush rule.

Before :

image

After :

image
Screencast.From.2026-03-20.12-54-11.mp4

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@cloudbehl cloudbehl left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@abhidesai6 Looks good, I think we can use same/similar mapping it on the list page as well.

I have not tested it.

@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard Mar 17, 2026
@abhidesai6

Copy link
Copy Markdown
Author

@cloudbehl
image

Do we want just object , block as tags ?
or Object (RGW) , Filesystem (CephFS) as tags ?

According to me we should keep only object/block/filesystem , this looks good. As we should have minimal words inside tags

@cloudbehl

Copy link
Copy Markdown
Contributor

I think Block, File system, Object on higher level is good enough.

@abhidesai6
abhidesai6 force-pushed the fix-pools-app-list-names branch 4 times, most recently from c1cd286 to 8c9860e Compare March 20, 2026 09:47
@abhidesai6

Copy link
Copy Markdown
Author

Fixed TC failure

@abhidesai6

Copy link
Copy Markdown
Author

jenkins test dashboard cephadm

@abhidesai6

Copy link
Copy Markdown
Author

jenkins test dashboard

@abhidesai6
abhidesai6 force-pushed the fix-pools-app-list-names branch from 8c9860e to a46c252 Compare March 23, 2026 12:40
Comment on lines -629 to -631
<option [value]="null"
i18n>-- Select a crush rule --
</option>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

why are we removing this?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

I have added one for commit to select replicate_rule by default in case of Replicated Pools.
No need of null value in dropdown as replicated_rule will always be selected by default

Comment on lines +255 to +264
const selectedName = typeof value === 'string' ? value : value?.rule_name || value?.name;
const isSelected =
selectedName && arr.some((r) => r.rule_name === selectedName || r.name === selectedName);

if (arr.length > 0 && !isSelected) {
const defaultRule = arr.find((r: CrushRule) => r.rule_name === 'replicated_rule') || arr[0];
control.setValue(defaultRule.rule_name);
this.replicatedRuleChange();
} else if (arr.length === 0 && value) {
control.setValue(null);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

What are we trying to do here?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Logic for selecting the replicated_rule by default.
Had to add isSelected as same form is being used while editing. isSelected will populate the already selected profile

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A comment would help explaining the rule logic

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks that helps a lot!

@abhidesai6
abhidesai6 force-pushed the fix-pools-app-list-names branch from a46c252 to 8d3e621 Compare March 30, 2026 07:25
@abhidesai6

Copy link
Copy Markdown
Author

Rebased with main for latest changes

@abhidesai6
abhidesai6 force-pushed the fix-pools-app-list-names branch from 8d3e621 to 1fe3b62 Compare March 30, 2026 19:56

@dnyanee1997 dnyanee1997 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Tested Locally.
LGTM
Thanks!

Comment on lines +255 to +264
const selectedName = typeof value === 'string' ? value : value?.rule_name || value?.name;
const isSelected =
selectedName && arr.some((r) => r.rule_name === selectedName || r.name === selectedName);

if (arr.length > 0 && !isSelected) {
const defaultRule = arr.find((r: CrushRule) => r.rule_name === 'replicated_rule') || arr[0];
control.setValue(defaultRule.rule_name);
this.replicatedRuleChange();
} else if (arr.length === 0 && value) {
control.setValue(null);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

A comment would help explaining the rule logic

@github-project-automation github-project-automation Bot moved this from Reviewer approved to Review in progress in Ceph-Dashboard Mar 31, 2026
@abhidesai6
abhidesai6 force-pushed the fix-pools-app-list-names branch from 1fe3b62 to aefb3d9 Compare April 1, 2026 06:18
@abhidesai6
abhidesai6 requested a review from afreen23 April 1, 2026 06:19

@afreen23 afreen23 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some nits

Comment on lines +255 to +264
const selectedName = typeof value === 'string' ? value : value?.rule_name || value?.name;
const isSelected =
selectedName && arr.some((r) => r.rule_name === selectedName || r.name === selectedName);

if (arr.length > 0 && !isSelected) {
const defaultRule = arr.find((r: CrushRule) => r.rule_name === 'replicated_rule') || arr[0];
control.setValue(defaultRule.rule_name);
this.replicatedRuleChange();
} else if (arr.length === 0 && value) {
control.setValue(null);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks that helps a lot!

@github-project-automation github-project-automation Bot moved this from Review in progress to Reviewer approved in Ceph-Dashboard Apr 2, 2026
@abhidesai6
abhidesai6 force-pushed the fix-pools-app-list-names branch from aefb3d9 to 0941ebd Compare April 16, 2026 20:32
@abhidesai6
abhidesai6 force-pushed the fix-pools-app-list-names branch from 0941ebd to 8236626 Compare April 17, 2026 03:40
@abhidesai6

Copy link
Copy Markdown
Author

jenkins test make check

@abhidesai6

Copy link
Copy Markdown
Author

jenkins test windows

@abhidesai6

Copy link
Copy Markdown
Author

jenkins test docs

@abhidesai6
abhidesai6 force-pushed the fix-pools-app-list-names branch from 8236626 to 0a7b02b Compare April 20, 2026 05:46
@abhidesai6

Copy link
Copy Markdown
Author

Rebased to fix build issues

@github-project-automation github-project-automation Bot moved this from Reviewer approved to Review in progress in Ceph-Dashboard Apr 20, 2026
@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@abhidesai6
abhidesai6 force-pushed the fix-pools-app-list-names branch from 0a7b02b to da3d332 Compare April 20, 2026 12:43
@abhidesai6
abhidesai6 force-pushed the fix-pools-app-list-names branch from da3d332 to 195cc2f Compare April 20, 2026 12:45
@abhidesai6
abhidesai6 requested a review from afreen23 April 20, 2026 15:46
@github-project-automation github-project-automation Bot moved this from Review in progress to Reviewer approved in Ceph-Dashboard Apr 20, 2026
@afreen23
afreen23 merged commit 7fb75b8 into ceph:main Apr 20, 2026
6 checks passed
@afreen23
afreen23 deleted the fix-pools-app-list-names branch April 20, 2026 18:21
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Apr 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants