Skip to content

Commit 785976e

Browse files
authored
Merge pull request ceph#65246 from afreen23/remove-old-dash
Drop support for older version of dashboard Reviewed-by: Nizamudeen A <[email protected]>
2 parents be407d4 + b188d07 commit 785976e

File tree

51 files changed

+82
-2233
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+82
-2233
lines changed

PendingReleaseNotes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@
194194
C `rbd_mirror_image_resync()`, and Python `Image.mirror_image_resync()` --
195195
will return EINVAL instead of ENOENT when mirroring is not enabled.
196196

197+
* DASHBOARD: Removed the older landing page which was deprecated in quincy.
198+
The admin can no longer enable the older, deprecated landing page layout by
199+
adjusting FEATURE_TOGGLE_DASHBOARD.
200+
197201
>=19.2.1
198202

199203
* CephFS: The `fs subvolume create` command now allows tagging subvolumes through option

doc/mgr/dashboard.rst

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -129,16 +129,6 @@ updates on any changes in the cluster and allows quick access to other sections
129129

130130
.. image:: dashboard-landing-page.png
131131

132-
133-
.. note::
134-
You can change the landing page to the previous version from:
135-
``Cluster >> Manager Modules >> Dashboard >> Edit``.
136-
Editing the ``FEATURE_TOGGLE_DASHBOARD`` option will change the landing page, from one view to another.
137-
138-
Note that the previous version of the landing page will be disabled in future releases.
139-
140-
.. _dashboard-landing-page-details:
141-
142132
Details
143133
"""""""
144134
Provides an overview of the cluster configuration, displaying various critical aspects of the cluster.

src/pybind/mgr/dashboard/controllers/health.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@
157157
'up': (int, 'Count of iSCSI gateways running'),
158158
'down': (int, 'Count of iSCSI gateways not running')
159159
}, 'Iscsi gateways status'),
160+
'num_hosts': (int, 'Count of hosts')
160161
})
161162

162163

src/pybind/mgr/dashboard/frontend/cypress/e2e/a11y/dashboard.e2e-spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { DashboardPageHelper } from '../ui/dashboard.po';
1+
import { DashboardV3PageHelper } from '../ui/dashboard-v3.po';
22

33
describe('Dashboard Main Page', { retries: 0 }, () => {
4-
const dashboard = new DashboardPageHelper();
4+
const dashboard = new DashboardV3PageHelper();
55

66
beforeEach(() => {
77
cy.login();

src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/04-osds.e2e-spec.ts

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
import { OSDsPageHelper } from '../cluster/osds.po';
2-
import { DashboardPageHelper } from '../ui/dashboard.po';
3-
import { ManagerModulesPageHelper } from '../cluster/mgr-modules.po';
2+
import { DashboardV3PageHelper } from '../ui/dashboard-v3.po';
43

54
describe('OSDs page', () => {
65
const osds = new OSDsPageHelper();
7-
const dashboard = new DashboardPageHelper();
8-
const mgrmodules = new ManagerModulesPageHelper();
6+
const dashboard = new DashboardV3PageHelper();
97

108
before(() => {
119
cy.login();
12-
mgrmodules.navigateTo();
13-
mgrmodules.navigateEdit('dashboard');
14-
cy.get('#FEATURE_TOGGLE_DASHBOARD').uncheck();
15-
cy.contains('button', 'Update').click();
1610
});
1711

1812
beforeEach(() => {
@@ -35,9 +29,7 @@ describe('OSDs page', () => {
3529

3630
// landing page is easier to check OSD status
3731
dashboard.navigateTo();
38-
dashboard.infoCardBody('OSDs').should('contain.text', `${expectedCount} total`);
39-
dashboard.infoCardBody('OSDs').should('contain.text', `${expectedCount} up`);
40-
dashboard.infoCardBody('OSDs').should('contain.text', `${expectedCount} in`);
32+
dashboard.cardRow('OSD').should('contain.text', `${expectedCount} OSDs`);
4133

4234
cy.wait(30000);
4335
expect(Number(newCount)).to.be.gte(2);

src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/dashboard-v3.e2e-spec.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,10 @@
1-
import { ManagerModulesPageHelper } from '../cluster/mgr-modules.po';
21
import { DashboardV3PageHelper } from './dashboard-v3.po';
32

43
describe('Dashboard-v3 Main Page', () => {
54
const dashboard = new DashboardV3PageHelper();
6-
const mgrmodules = new ManagerModulesPageHelper();
75

86
before(() => {
97
cy.login();
10-
mgrmodules.navigateTo();
11-
mgrmodules.navigateEdit('dashboard');
12-
cy.get('#FEATURE_TOGGLE_DASHBOARD').check();
13-
cy.contains('button', 'Update').click();
148
});
159

1610
beforeEach(() => {

src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/dashboard-v3.po.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ export class DashboardV3PageHelper extends PageHelper {
1717

1818
return cy.get('@cards').its(indexOrTitle);
1919
}
20+
21+
cardRow(rowName: string) {
22+
return cy.get(`[data-testid=${rowName}]`);
23+
}
2024
}

src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/dashboard.e2e-spec.ts

Lines changed: 0 additions & 141 deletions
This file was deleted.

src/pybind/mgr/dashboard/frontend/cypress/e2e/ui/dashboard.po.ts

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/pybind/mgr/dashboard/frontend/package-lock.json

Lines changed: 0 additions & 56 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)