Repository navigation
tentacle: mgr/dashboard: "Access Denied" being shown on overview page for read-only user - #68786
Conversation
|
jenkins test windows |
|
jenkins test make check |
34d2942 to
ccb6f00
Compare
|
jenkins test make check |
ccb6f00 to
52300dc
Compare
|
Tests (1 failure / +1) |
|
jenkins test make check |
|
There was another PR raised in main for same branch #68787 causing issues to fetch correct git ref in CI |
3cf5ae3 to
131e24c
Compare
|
jenkins test api |
131e24c to
bde6053
Compare
Rebase and lint fixes added the extra commit, approving. |
…only user Fix: https://tracker.ceph.com/issues/76293 Signed-off-by: Devika Babrekar <[email protected]> Conflicts: src/pybind/mgr/dashboard/frontend/src/app/shared/components/performance-card/performance-card.component.ts -Code conflicts on same line due to change in logic (cherry picked from commit 4ebd227)
backport tracker: https://tracker.ceph.com/issues/76452 Signed-off-by: Devika Babrekar <[email protected]> Changes to be committed: modified: src/pybind/mgr/dashboard/frontend/src/app/shared/components/performance-card/performance-card.component.ts - linting issue fix
bde6053 to
28b76aa
Compare
|
This PR has been added to wip-yuri10-testing-20260622.213727-tentacle. |
|
RADOS approved in QA RUN: |
There was a problem hiding this comment.
Ceph Release Engineering Audit Report
Automated Backport Parity Review
Discrepancies detected between the backport PR and the original source PR(s). Please see the Commit Parity Visualizer below.
Commit Parity Visualizer
| BACKPORT PR #68786 | SOURCE PR |
SOURCE STATUS |
|---|---|---|
| 33fcfcc mgr/dashboard: "Access Denied" being shown on overview page for read-only user | PR #68653 | 4ebd227 mgr/dashboard: "Access Denied" being shown on overview page for read-only user |
| 28b76aa tentacle: mgr/dashboard: Fix linting issue | <<<< EXTRA IN BACKPORT >>>> |
Automated Backport Parity Review - Cherry-Pick Conflicts / Deviations
A conflict or 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.
This does not necessarily indicate an issue but a maintainer should review.
**Click to expand conflict summaries.**
Deviation in Backport 33fcfcc (cherry-pick of 4ebd227)
Affected File(s)
src/pybind/mgr/dashboard/frontend/src/app/shared/components/performance-card/performance-card.component.ts
Range Diff
Click to expand
--- Original (4ebd2276)
+++ Backport (33fcfcc7)
@@ -1,3 +1,9 @@
mgr/dashboard: "Access Denied" being shown on overview page for read-only user
Fix: https://tracker.ceph.com/issues/76293
Signed-off-by: Devika Babrekar <[email protected]>
+
+Conflicts:
+ src/pybind/mgr/dashboard/frontend/src/app/shared/components/performance-card/performance-card.component.ts
+ -Code conflicts on same line due to change in logic
+
+(cherry picked from commit 4ebd227)
================================================================================
RANGE DIFF
================================================================================
1: 4ebd2276bf4 ! 1: 33fcfcc7165 mgr/dashboard: "Access Denied" being shown on overview page for read-only user Fix: https://tracker.ceph.com/issues/76293 Signed-off-by: Devika Babrekar <[email protected]>
@@ Commit message
Fix: https://tracker.ceph.com/issues/76293
Signed-off-by: Devika Babrekar <[email protected]>
+ Conflicts:
+ src/pybind/mgr/dashboard/frontend/src/app/shared/components/performance-card/performance-card.component.ts
+ -Code conflicts on same line due to change in logic
+
+ (cherry picked from commit 4ebd227)
+
## src/pybind/mgr/dashboard/frontend/src/app/ceph/overview/health-card/overview-health-card.component.ts ##
@@ src/pybind/mgr/dashboard/frontend/src/app/ceph/overview/health-card/overview-health-card.component.ts: export class OverviewHealthCardComponent {
this.viewPGStates.emit();
@@ src/pybind/mgr/dashboard/frontend/src/app/ceph/overview/health-card/overview-hea
## src/pybind/mgr/dashboard/frontend/src/app/shared/components/performance-card/performance-card.component.html ##
@@
- <div cdsStack="horizontal"
- gap="2">
+ </cds-dropdown>
+
<cd-time-picker
- [dropdwonSize]="'sm'"
- [label]="'Time Span'"
@@ src/pybind/mgr/dashboard/frontend/src/app/shared/components/performance-card/per
## src/pybind/mgr/dashboard/frontend/src/app/shared/components/performance-card/performance-card.component.spec.ts ##
@@ src/pybind/mgr/dashboard/frontend/src/app/shared/components/performance-card/performance-card.component.spec.ts: import { MgrModuleService } from '../../api/mgr-module.service';
- import { PerformanceData } from '../../models/performance-data';
+ import { StorageType, PerformanceData } from '../../models/performance-data';
import { DatePipe } from '@angular/common';
import { NumberFormatterService } from '../../services/number-formatter.service';
+import { AuthStorageService } from '../../services/auth-storage.service';
@@ src/pybind/mgr/dashboard/frontend/src/app/shared/components/performance-card/per
+ expect(component.emptyStateKey()).toBe('');
}));
- it('should cleanup subscriptions on ngOnDestroy', () => {
+ it('should update selectedStorageType and reload charts on storage type selection', () => {
## src/pybind/mgr/dashboard/frontend/src/app/shared/components/performance-card/performance-card.component.ts ##
@@ src/pybind/mgr/dashboard/frontend/src/app/shared/components/performance-card/performance-card.component.ts: import {
@@ src/pybind/mgr/dashboard/frontend/src/app/shared/components/performance-card/per
@Component({
selector: 'cd-performance-card',
@@ src/pybind/mgr/dashboard/frontend/src/app/shared/components/performance-card/performance-card.component.ts: export class PerformanceCardComponent implements OnInit, OnDestroy {
- }
];
+ selectedStorageType = StorageType.All;
+ role: string = '';
-+
+
private prometheusService = inject(PrometheusService);
private performanceCardService = inject(PerformanceCardService);
private mgrModuleService = inject(MgrModuleService);
@@ src/pybind/mgr/dashboard/frontend/src/app/shared/components/performance-card/per
ngOnInit() {
this.loadCharts(this.time);
@@ src/pybind/mgr/dashboard/frontend/src/app/shared/components/performance-card/performance-card.component.ts: export class PerformanceCardComponent implements OnInit, OnDestroy {
- .getChartData(time)
+ .getChartData(time, this.selectedStorageType)
.pipe(takeUntil(this.destroy$))
.subscribe((data) => {
- this.chartDataSignal.set(data);
@@ src/pybind/mgr/dashboard/frontend/src/app/shared/components/performance-card/per
});
}
+@@ src/pybind/mgr/dashboard/frontend/src/app/shared/components/performance-card/performance-card.component.ts: export class PerformanceCardComponent implements OnInit, OnDestroy {
+ this.selectedStorageType = event.item.value;
+ this.loadCharts(this.time);
+ }
++
+ followEmptyStateMsgCheck(data: PerformanceData) {
+ let enabled$ = this.list().filter((a) => a.name === 'prometheus')[0].enabled;
+ this.chartDataSignal.set(data);
@@ src/pybind/mgr/dashboard/frontend/src/app/shared/components/performance-card/per
+ this.chartDataSignal.set(data);
+ this.emptyStateKey.set('');
+ }
-+
+
ngOnDestroy(): void {
this.destroy$.next();
- this.destroy$.complete();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.
🛟 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.
backport tracker: https://tracker.ceph.com/issues/76452
backport of #68653
parent tracker: https://tracker.ceph.com/issues/76293
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