🔄 fix: Update Agent Versioning to Include agent_ids (#7762)

* Removed agent_ids exclusion from version comparison in the Agent model.
* Added tests to ensure agent_ids changes trigger new version creation and handle duplicates correctly.
* Enhanced existing tests to validate agent_ids alongside other fields and preserve history.
This commit is contained in:
matt burnett 2025-06-06 16:43:39 -04:00 committed by GitHub
parent dff4fcac00
commit 53df6a1a71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 172 additions and 1 deletions

View file

@ -170,7 +170,6 @@ const isDuplicateVersion = (updateData, currentData, versions, actionsHash = nul
'created_at',
'updated_at',
'__v',
'agent_ids',
'versions',
'actionsHash', // Exclude actionsHash from direct comparison
];