Skip to content

Fix the Execute dropdown not carrying selected devices from the GC Overview page - #1140

Open
pastoreerrante wants to merge 1 commit into
developfrom
u/pastoreerrante-fix-issue-1136-resubmit
Open

Fix the Execute dropdown not carrying selected devices from the GC Overview page#1140
pastoreerrante wants to merge 1 commit into
developfrom
u/pastoreerrante-fix-issue-1136-resubmit

Conversation

@pastoreerrante

@pastoreerrante pastoreerrante commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

Overview

Re-submission of #1138, which was reverted by #1139. Reintroduces the fix now that the revert has been merged and hence re-submission is now possible.

Closes: #1136

What's Changed

Each row checkbox now exposes its Device PK via a data-device-pk attribute (the checkbox value attribute stays the GoldenConfig PK, which bulk edit/delete actions rely on).

A small JS function in execute_with_selected.js gets now loaded on the page and it reads those attributes when one of three links in the Execute dropdown gets clicked. This JS function appends one or more ?device=<pk> query parameter to the Job /run URL, pre-filling the job's device field so the user doesn't need to re-select the devices once more.

A couple of tests have been added to assert the Config Overview page has everything needed to allow execute_with_selected.js to perform its job.

…ew page to the job /run form

Re-submit of #1138, which was reverted by #1139. Reintroduces the fix now that the revert has merged and maintainers cleared re-submission.

This reverts commit 7587e61.
@github-actions

Copy link
Copy Markdown

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  nautobot_golden_config
  tables.py
Project Total  

This report was generated by python-coverage-comment-action

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Selected devices in Configuration Overview page are not carried over to the job page

1 participant