Repository navigation
tentacle: mgr/dashboard: rbd-mirroring - hide create/import token buttons for read-only users - #69951
Conversation
read-only users Fixes: https://tracker.ceph.com/issues/77115 Signed-off-by: Aashish Sharma <[email protected]> (cherry picked from commit 50bf8ce)
28b2155 to
f6c9704
Compare
There was a problem hiding this comment.
Automated Backport Parity Review - Backport Deviation Alert
A conflict or unapproved deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.
Deviation in Backport f6c9704 (cherry-pick of 50bf8ce)
Affected File(s)
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/overview/overview.component.html
Range Diff
Click to expand
--- Original (50bf8ce2)
+++ Backport (f6c97046)
@@ -4,3 +4,4 @@
Fixes: https://tracker.ceph.com/issues/77115
Signed-off-by: Aashish Sharma <[email protected]>
+(cherry picked from commit 50bf8ce2eb0ed6bd2c083169d6746baf3c0a8354)
================================================================================
RANGE DIFF
================================================================================
1: 50bf8ce2eb0 ! 1: f6c97046213 mgr/dashboard: rbd-mirroring - hide create/import token buttons for read-only users
@@ Commit message
Fixes: https://tracker.ceph.com/issues/77115
Signed-off-by: Aashish Sharma <[email protected]>
+ (cherry picked from commit 50bf8ce2eb0ed6bd2c083169d6746baf3c0a8354)
## src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/overview/overview.component.html ##
@@
@@ src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/overview/overview
- [attr.aria-label]="action.name"
- [attr.data-testid]="action.name"
- [preserveFragment]="action.preserveFragment ? '' : null">
-- <span i18n>{{ action.name }}</span>
++ @if (!action.visible || action.visible(selection)) {
++ <button
++ type="button"
++ [cdsButton]="action.buttonKind"
++ [title]="action.name"
++ (click)="action.click($event)"
++ [disabled]="action.disable()"
++ [attr.aria-label]="action.name"
++ [attr.data-testid]="action.name"
++ [preserveFragment]="action.preserveFragment ? '' : null">
+ <span i18n>{{ action.name }}</span>
- <svg class="cds--btn__icon"
- [cdsIcon]="action.icon"
- size="16"></svg>
-- </button>
-+ @if (!action.visible || action.visible(selection)) {
-+ <button
-+ type="button"
-+ [cdsButton]="action.buttonKind"
-+ [title]="action.name"
-+ (click)="action.click($event)"
-+ [disabled]="action.disable()"
-+ [attr.aria-label]="action.name"
-+ [attr.data-testid]="action.name"
-+ [preserveFragment]="action.preserveFragment ? '' : null">
-+ <span i18n>{{ action.name }}</span>
-+ <svg
-+ class="cds--btn__icon"
-+ [cdsIcon]="action.icon"
-+ size="16">
-+ </svg>
-+ </button>
-+ }
++ <svg
++ class="cds--btn__icon"
++ [cdsIcon]="action.icon"
++ size="16">
++ </svg>
+ </button>
++ }
</ng-container>
</div>
</div>How to proceed:
- Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git
Conflicts:block intact) and include an explanation for changes. - Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
- Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting
/audit override.
Be familiar with the rules and guidelines for writing backports.
Commit Parity Visualizer
| BACKPORT PR #69951 | SOURCE PR | SOURCE STATUS |
|---|---|---|
| f6c9704 mgr/dashboard: rbd-mirroring - hide create/import token buttons for | PR #69282 | 50bf8ce mgr/dashboard: rbd-mirroring - hide create/import token buttons for |
🛟 Need Help?
If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.
📋 Component Lead / Release Manager
To override the audit failure, apply releng-audit-override label or comment /audit override.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
CI Run Log: View Workflow Details
There was a problem hiding this comment.
Automated Backport Parity Review - Backport Deviation Alert
A conflict or unapproved deviation was detected during the simulation of this backport. The code in this PR does not match a clean cherry-pick of the upstream commits.
Deviation in Backport f6c9704 (cherry-pick of 50bf8ce)
Affected File(s)
src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/overview/overview.component.html
Range Diff
Click to expand
--- Original (50bf8ce2)
+++ Backport (f6c97046)
@@ -4,3 +4,4 @@
Fixes: https://tracker.ceph.com/issues/77115
Signed-off-by: Aashish Sharma <[email protected]>
+(cherry picked from commit 50bf8ce2eb0ed6bd2c083169d6746baf3c0a8354)
================================================================================
RANGE DIFF
================================================================================
1: 50bf8ce2eb0 ! 1: f6c97046213 mgr/dashboard: rbd-mirroring - hide create/import token buttons for read-only users
@@ Commit message
Fixes: https://tracker.ceph.com/issues/77115
Signed-off-by: Aashish Sharma <[email protected]>
+ (cherry picked from commit 50bf8ce2eb0ed6bd2c083169d6746baf3c0a8354)
## src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/overview/overview.component.html ##
@@
@@ src/pybind/mgr/dashboard/frontend/src/app/ceph/block/mirroring/overview/overview
- [attr.aria-label]="action.name"
- [attr.data-testid]="action.name"
- [preserveFragment]="action.preserveFragment ? '' : null">
-- <span i18n>{{ action.name }}</span>
++ @if (!action.visible || action.visible(selection)) {
++ <button
++ type="button"
++ [cdsButton]="action.buttonKind"
++ [title]="action.name"
++ (click)="action.click($event)"
++ [disabled]="action.disable()"
++ [attr.aria-label]="action.name"
++ [attr.data-testid]="action.name"
++ [preserveFragment]="action.preserveFragment ? '' : null">
+ <span i18n>{{ action.name }}</span>
- <svg class="cds--btn__icon"
- [cdsIcon]="action.icon"
- size="16"></svg>
-- </button>
-+ @if (!action.visible || action.visible(selection)) {
-+ <button
-+ type="button"
-+ [cdsButton]="action.buttonKind"
-+ [title]="action.name"
-+ (click)="action.click($event)"
-+ [disabled]="action.disable()"
-+ [attr.aria-label]="action.name"
-+ [attr.data-testid]="action.name"
-+ [preserveFragment]="action.preserveFragment ? '' : null">
-+ <span i18n>{{ action.name }}</span>
-+ <svg
-+ class="cds--btn__icon"
-+ [cdsIcon]="action.icon"
-+ size="16">
-+ </svg>
-+ </button>
-+ }
++ <svg
++ class="cds--btn__icon"
++ [cdsIcon]="action.icon"
++ size="16">
++ </svg>
+ </button>
++ }
</ng-container>
</div>
</div>How to proceed:
- Authors (Genuine Conflicts): If this is a genuine conflict requiring manual resolution, ensure your resolution is correct. You must explain the conflict resolution in the commit message (e.g., leave the standard Git
Conflicts:block intact) and include an explanation for changes. - Authors (Need Help?): Reach out to the Component Lead for technical guidance on complex code conflicts.
- Component Leads (Review): Please review the Range Diff(s) above to verify the author's manual conflict resolution is correct for this release branch. If the deviation is intentional, documented, and approved then the component lead or @ceph/ceph-release-manager can bypass this check by commenting
/audit override.
Be familiar with the rules and guidelines for writing backports.
Commit Parity Visualizer
| BACKPORT PR #69951 | SOURCE PR | SOURCE STATUS |
|---|---|---|
| f6c9704 mgr/dashboard: rbd-mirroring - hide create/import token buttons for | PR #69282 | 50bf8ce mgr/dashboard: rbd-mirroring - hide create/import token buttons for |
🛟 Need Help?
If you need technical help resolving these issues, please consult with the Component Lead. If you need administrative overrides, please see the #ceph-upstream-releases channel on Slack and request a review from the @ceph/ceph-release-manager.
📋 Component Lead / Release Manager
To override the audit failure, apply releng-audit-override label or comment /audit override.
When you are ready for a new audit, please remove the releng-audit-fail label or comment /audit retest.
CI Run Log: View Workflow Details
|
This PR has been added to wip-yuri4-testing-20260708.183239-tentacle. |
|
jenkins test dashboard cephadm |
1 similar comment
|
jenkins test dashboard cephadm |
backport tracker: https://tracker.ceph.com/issues/77942
backport of #69282
parent tracker: https://tracker.ceph.com/issues/77115
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh