Skip to content

Conversation

@pheus
Copy link
Contributor

@pheus pheus commented Oct 24, 2025

Fixes: #20389

Summary
Make BulkRenameView honor “Select all N matching query”, aligning behavior with BulkEditView/BulkDeleteView.

What changed

  • BulkRenameView now accepts a filterset.
  • When _all/select_all is posted, the target queryset is derived via filterset(request.GET, self.get_queryset(request)); otherwise it uses the posted pk[].
  • Add a test confirming selection (37 interfaces) is fully renamed.

Impact
No UI or API changes; bulk actions now behave consistently across edit/delete/rename.

Allow passing a FilterSet to BulkRenameView for consistent behavior with
BulkEditView and BulkDeleteView. Enables the
"Select all N matching query" functionality to expand across the full
queryset. Updates logic to handle PK lists appropriately when editing
all matched objects.

Fixes netbox-community#20389
@jnovinger jnovinger requested review from a team and bctiemann and removed request for a team October 24, 2025 14:46
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.

Bulk rename "Select all XX matching query" only operates on current page

1 participant