Skip to content

mgr/dashboard : Add gateway filtering support for subsystem and namespace lists - #69243

Merged
afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:bug-3990-pr2
Jul 3, 2026
Merged

afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:bug-3990-pr2

Conversation

@pujaoshahu

@pujaoshahu pujaoshahu commented Jun 2, 2026 •

Copy link
Copy Markdown
image

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 x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@pujaoshahu pujaoshahu changed the title mgr/dashboard: NVMe-oF- Integrate gateway group refresh and selection flow in gateway subsystem namespace pages from this pr mgr/dashboard: NVMe-oF- Integrate gateway group refresh and selection flow in gateway subsystem namespace pages Jun 2, 2026
@pujaoshahu
pujaoshahu marked this pull request as ready for review June 2, 2026 18:29
@pujaoshahu
pujaoshahu requested a review from a team as a code owner June 2, 2026 18:29
@pujaoshahu pujaoshahu changed the title mgr/dashboard: NVMe-oF- Integrate gateway group refresh and selection flow in gateway subsystem namespace pages mgr/dashboard: Integrate gateway group refresh and selection flow in gateway subsystem namespace pages Jun 2, 2026
@pujaoshahu
pujaoshahu force-pushed the bug-3990-pr2 branch 3 times, most recently from f867ac8 to e838bb1 Compare June 3, 2026 07:26
@pujaoshahu
pujaoshahu requested a review from Copilot June 3, 2026 08:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 compactSearchField input.

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

  • compactSearchField is 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)"

@pujaoshahu pujaoshahu changed the title mgr/dashboard: Integrate gateway group refresh and selection flow in gateway subsystem namespace pages mgr/dashboard: Add gateway filtering support for subsystem and namespace lists Jun 8, 2026
@pujaoshahu pujaoshahu changed the title mgr/dashboard: Add gateway filtering support for subsystem and namespace lists mgr/dashboard : Add gateway filtering support for subsystem and namespace lists Jun 9, 2026
@pujaoshahu
pujaoshahu requested a review from Copilot June 9, 2026 05:12

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 30 out of 30 changed files in this pull request and generated 4 comments.

@pujaoshahu
pujaoshahu force-pushed the bug-3990-pr2 branch 2 times, most recently from 843fe7b to eac67e2 Compare June 9, 2026 06:52
@cloudbehl

Copy link
Copy Markdown
Contributor

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.

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@pujaoshahu

Copy link
Copy Markdown
Author

jenkins test windows

@pujaoshahu

Copy link
Copy Markdown
Author

jenkins test dashboard cephadm

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@afreen23

afreen23 commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

jenkins test api

2 similar comments
@afreen23

afreen23 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

jenkins test api

@pujaoshahu

Copy link
Copy Markdown
Author

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
@afreen23

afreen23 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

jenkins test dashboard cephadm

@afreen23
afreen23 merged commit 6ed2ced into ceph:main Jul 3, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Jul 3, 2026
@afreen23
afreen23 deleted the bug-3990-pr2 branch July 3, 2026 11:27
@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I found one or more Fixes: tags in the commit messages in

git log 6ed2ceda9037668141bd5e3b1994820db90f8989^..6ed2ceda9037668141bd5e3b1994820db90f8989

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.

Update Log: https://github.com/ceph/ceph/actions/runs/28657576816

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants