Repository navigation
mgr/dashboard : Add gateway filtering support for subsystem and namespace lists - #69243
Conversation
f867ac8 to
e838bb1
Compare
There was a problem hiding this comment.
Pull request overview
This PR extends the Ceph Dashboard NVMe-oF UI flow by centralizing shared NVMe-oF shell rendering (tabs + onboarding cards), introducing a shared refresh mechanism driven by task completion, and integrating gateway-group selection/clear + query-param synchronization into the Subsystems and Namespaces list pages.
Changes:
- Added an NVMe-oF state/refresh service and wired list pages + gateway-group page to refresh onboarding/list state after create/delete operations.
- Refactored NVMe-oF navigation shell so tabs/onboarding are rendered once (parent route) and list pages inject a gateway-group filter into the shared table toolbar.
- Updated the shared table toolbar to support a projected “filter slot” and introduced a
compactSearchFieldinput.
Reviewed changes
Copilot reviewed 25 out of 25 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.ts | Adds compactSearchField input for toolbar search sizing. |
| src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.html | Adds projected filter slot; adjusts column-filter UI and “executing” cell template. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-tabs/nvmeof-tabs.component.ts | Makes NVMe-oF tabs act as a shared shell; adds onboarding/setup-state fetching + refresh wiring. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-tabs/nvmeof-tabs.component.html | Conditionally renders shell + setup cards; keeps router outlet for child pages. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-tabs/nvmeof-tabs.component.spec.ts | Expands coverage for shell visibility and setup-state scenarios. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems/nvmeof-subsystems.component.ts | Adds group clear/selection behavior, query-param sync, cross-group listing, and refresh hooks. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems/nvmeof-subsystems.component.html | Removes duplicate shell; injects gateway-group filter into table toolbar; enables compact search. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems/nvmeof-subsystems.component.spec.ts | Updates test wiring for new filter component; adds cleared-selection behavior test. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-list/nvmeof-namespaces-list.component.ts | Adds group clear/selection behavior, query-param sync, cross-group listing + dedup, and refresh hooks. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-list/nvmeof-namespaces-list.component.html | Removes duplicate shell; injects gateway-group filter into table toolbar; enables compact search. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-list/nvmeof-namespaces-list.component.spec.ts | Updates test wiring for new filter component. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-state.service.ts | New service to emit refresh signals based on explicit requests and finished NVMe-oF tasks. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-state.service.spec.ts | Unit tests for refresh emission behavior and task filtering/deduping. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-setup-cards/nvmeof-setup-cards.component.ts | New standalone setup/onboarding cards component. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-setup-cards/nvmeof-setup-cards.component.html | Markup for recommended first-time setup steps. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-setup-cards/nvmeof-setup-cards.component.scss | Styling for the setup/onboarding cards layout. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-gateway-group/nvmeof-gateway-group.component.ts | Triggers NVMe-oF refresh after gateway-group list load and delete task completion metadata change. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-gateway-group/nvmeof-gateway-group.component.html | Removes duplicate shell and wraps content in the shared layout container. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-gateway-group/nvmeof-gateway-group.component.spec.ts | Updates test wiring to include NvmeofStateService dependency. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-gateway-group-filter/nvmeof-gateway-group-filter.component.ts | New standalone gateway-group filter component to embed in table toolbar. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-gateway-group-filter/nvmeof-gateway-group-filter.component.html | Filter UI markup (label + Carbon combo-box). |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-gateway-group-filter/nvmeof-gateway-group-filter.component.scss | Filter styling and layout for toolbar placement. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-gateway-group-filter/nvmeof-gateway-group-filter.component.spec.ts | Basic rendering test for the filter component. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-gateway/nvmeof-gateway.component.ts | Small tab-selection/query-param handling adjustment. |
| src/pybind/mgr/dashboard/frontend/src/app/ceph/block/block.module.ts | Wires NVMe-oF tabs as route component and imports new standalone components; adjusts Carbon module imports. |
Comments suppressed due to low confidence (1)
src/pybind/mgr/dashboard/frontend/src/app/shared/datatable/table/table.component.html:52
compactSearchFieldis exposed as an input but currently not used in the toolbar search markup, so consumers setting[compactSearchField]won’t see any effect. This makes the new input misleading and leaves the search width unchanged.
<cds-table-toolbar-search *ngIf="searchField"
[expandable]="false"
[(ngModel)]="search"
aria-label="search"
(valueChange)="updateFilter($event)"
843fe7b to
eac67e2
Compare
|
We need proper loading state. When you are clicking on test1, it takes a while to load and the empty state keeps on coming. When the dropdown values changes, we need to put the table in skeleton state till the time date is loaded. Your First time experience logic is breaking with the introduction of switcher. It is considering the Subsystem and namespace created inside a gateway. Which should not be the case. |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
jenkins test windows |
|
jenkins test dashboard cephadm |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
cdd6f56 to
2f25fd6
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
jenkins test api |
2 similar comments
|
jenkins test api |
|
jenkins test api |
…pace lists Fixes: https://tracker.ceph.com/issues/77068 Signed-off-by: pujaoshahu <[email protected]> (cherry picked from commit e838bb19897ed4a8f6a548eca08e4fdd726e62f5) Conflicts: src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-namespaces-list/nvmeof-namespaces-list.component.spec.ts src/pybind/mgr/dashboard/frontend/src/app/ceph/block/nvmeof-subsystems/nvmeof-subsystems.component.spec.ts
|
jenkins test dashboard cephadm |
|
This is an automated message by src/script/redmine-upkeep.py. I found one or more
The referenced tickets are: Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them. |
Fixes:https://tracker.ceph.com/issues/77068
Signed-off-by: pujaoshahu [email protected]
Summary:
This PR completes NVMe-oF list-page integration on top of the shared shell from PR1. It wires gateway-group selection/clear behavior, keeps query-param and drop-down state consistent, refreshes on boarding state after create/delete flows, and removes duplicate shell rendering from child list pages so cards/tabs are shown only once.
Subsystems page now supports consistent group selection/clear handling, query-param sync, refresh behavior, and list updates.
Namespaces page now mirrors the same group selection/clear + query-param + refresh behavior.
Child templates no longer render duplicate NVMe-oF shell (tabs/cards), preventing double UI rendering.
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.