Skip to content

Add tags support for 3.1.x - #1150

Open
zackt25 wants to merge 7 commits into
developfrom
add_tags_support
Open

Add tags support for 3.1.x#1150
zackt25 wants to merge 7 commits into
developfrom
add_tags_support

Conversation

@zackt25

@zackt25 zackt25 commented Aug 24, 2026

Copy link
Copy Markdown

What's Changed

Added a bulk edit view for Golden Config (Configuration Overview) records.

Added tag support throughout the UI for all Golden Config models: tags can be added and removed in bulk edit, filtered on from every list view, and displayed as an optional table column.

To Do

  • Explanation of Change(s)
  • Added change log fragment(s) (for more information see the documentation)
  • Attached Screenshots, Payload Example
  • Unit, Integration Tests
  • Documentation Updates (when adding/changing features)
  • Outline Remaining Work, Constraints from Design

Mix TagsBulkEditFormMixin into every bulk edit form so tags can be added or
removed in bulk on all taggable Golden Config models.

Also drop "tags" from ConfigPlanBulkEditForm.Meta.nullable_fields; bulk edit
nullification only applies to actual form fields, so it never had any effect.
Expose the existing `tags` filterset filter in the UI filter forms so objects
can be filtered by tag from the list views.
Every taggable model's list view now offers a `tags` column. The column is
opt-in through table configuration rather than shown by default, matching the
existing ConfigPlan table.

GoldenConfigSettingTable and GoldenConfigTable gain an explicit
`default_columns` so the new column does not become a default.
The GoldenConfig viewset already declared a bulk edit form but never mixed in
the view, so the form was unreachable. Wiring ObjectBulkUpdateViewMixin in
exposes the bulk edit action, and with it the new tag add/remove fields.
Cover that every taggable model exposes tags in its bulk edit form, filter
form and table, that the tags column is not a default column, and that tags
selected in a bulk edit reach the Bulk Edit Objects system job.
@zackt25 zackt25 changed the title Add tags support Add tags support for 3.1.x Aug 24, 2026
@zackt25

zackt25 commented Aug 24, 2026

Copy link
Copy Markdown
Author

Tested on v3.1.0

@@ -0,0 +1,157 @@
"""Unit tests for tag support on nautobot_golden_config models."""

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.

i know it's in draft, but this doesn't follow our testing standards, so before spending more time on it, thought I would mention.

@github-actions

Copy link
Copy Markdown

Coverage report

Click to see where and how coverage changed

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

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

@zackt25
zackt25 marked this pull request as ready for review August 25, 2026 12:49
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.

2 participants