Skip to content

mgr/dashboard: fix nvmeof gateway group edit host selection reset - #71893

Merged
afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:nvmeof-gateway-refresh-fox
Sep 22, 2026
Merged

afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:nvmeof-gateway-refresh-fox

Conversation

@afreen23

@afreen23 afreen23 commented Sep 18, 2026 •

Copy link
Copy Markdown
Contributor

Pre-selection was reapplied on every 5-second auto-reload, wiping any user changes. Also, the cd-table's internal selection was never synced after applyPreSelection, so toggling a pre-selected row filtered from an empty list and reverted to the full preSelectedHostnames fallback.

  • Add selectionInitialized flag: applyPreSelection runs once per preSelectedHostnames change, skipping subsequent auto-reloads
  • Sync this.table.selection.selected so _toggleSelection correctly filters when the user deselects a pre-selected host

iIssue:

Screencast.From.2026-09-08.17-43-09.mp4

Fix:

Screencast.From.2026-09-18.13-49-21.mp4

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.

Pre-selection was reapplied on every 5-second auto-reload, wiping any
user changes. Also, the cd-table's internal selection was never synced
after applyPreSelection, so toggling a pre-selected row filtered from
an empty list and reverted to the full preSelectedHostnames fallback.

- Add selectionInitialized flag: applyPreSelection runs once per
  preSelectedHostnames change, skipping subsequent auto-reloads
- Sync this.table.selection.selected so _toggleSelection correctly
  filters when the user deselects a pre-selected host

Signed-off-by: Afreen Misbah <[email protected]>

@pujaoshahu pujaoshahu left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard Sep 21, 2026
@afreen23
afreen23 merged commit 2603095 into ceph:main Sep 22, 2026
17 of 20 checks passed
@afreen23
afreen23 deleted the nvmeof-gateway-refresh-fox branch September 22, 2026 09:27
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Sep 22, 2026
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.

2 participants