Skip to content

Track tag add/remove operations in change history#4279

Open
veenone wants to merge 1 commit intokiwitcms:masterfrom
veenone:feat/tag-activity-history
Open

Track tag add/remove operations in change history#4279
veenone wants to merge 1 commit intokiwitcms:masterfrom
veenone:feat/tag-activity-history

Conversation

@veenone
Copy link
Copy Markdown

@veenone veenone commented Feb 19, 2026

implements #4085

Tag operations on TestCase and TestPlan are M2M changes that bypass simple_history's field-level tracking.


Screenshots

chrome_jUt4ulOIUB

Tag operations on TestCase and TestPlan are M2M changes that bypass
simple_history's field-level tracking. Create history entries with
human-readable messages and unified diffs when tags are added or
removed. Populate the Changes column in the admin history table by
parsing tag change reasons in ReadOnlyHistoryAdmin.

- TestCase/TestPlan add_tag/remove_tag now set _change_reason and save
- KiwiHistoricalRecords.post_save only overwrites _change_reason when
  field-level diff is non-empty, preserving custom tag change reasons
- ReadOnlyHistoryAdmin.set_history_delta_changes populates the Changes
  column for tag operations
- Add test assertions for history entries on tag add/remove
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.

1 participant