Repository navigation
mgr/dashboard : Fix application names in pools form - #67841
Conversation
cloudbehl
left a comment
There was a problem hiding this comment.
@abhidesai6 Looks good, I think we can use same/similar mapping it on the list page as well.
I have not tested it.
|
Do we want just According to me we should keep only object/block/filesystem , this looks good. As we should have minimal words inside tags |
|
I think Block, File system, Object on higher level is good enough. |
c1cd286 to
8c9860e
Compare
|
Fixed TC failure |
|
jenkins test dashboard cephadm |
|
jenkins test dashboard |
8c9860e to
a46c252
Compare
| <option [value]="null" | ||
| i18n>-- Select a crush rule -- | ||
| </option> |
There was a problem hiding this comment.
why are we removing this?
There was a problem hiding this comment.
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
| 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); |
There was a problem hiding this comment.
What are we trying to do here?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
A comment would help explaining the rule logic
a46c252 to
8d3e621
Compare
|
Rebased with main for latest changes |
8d3e621 to
1fe3b62
Compare
dnyanee1997
left a comment
There was a problem hiding this comment.
Tested Locally.
LGTM
Thanks!
| 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); |
There was a problem hiding this comment.
A comment would help explaining the rule logic
1fe3b62 to
aefb3d9
Compare
| 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); |
aefb3d9 to
0941ebd
Compare
0941ebd to
8236626
Compare
|
jenkins test make check |
|
jenkins test windows |
|
jenkins test docs |
8236626 to
0a7b02b
Compare
|
Rebased to fix build issues |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
Signed-off-by: Abhishek Desai <[email protected]>
0a7b02b to
da3d332
Compare
da3d332 to
195cc2f
Compare

Fixes : https://tracker.ceph.com/issues/75632
Signed-off-by: Abhishek Desai [email protected]
Description :
Before :
After :
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
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.