Make ChangeTracker detect changes in workflow.extra (Except ds) (#1692)

* Compare workflow.extra content

* Add tests
This commit is contained in:
Chenlei Hu
2024-11-25 18:59:27 -08:00
committed by GitHub
parent adfbec2744
commit d531bc34c4
3 changed files with 61 additions and 45 deletions

View File

@@ -388,8 +388,11 @@ export class ChangeTracker {
return false
}
// Reroutes (schema 0.4)
if (!_.isEqual(a.extra?.reroutes, b.extra?.reroutes)) return false
// Compare extra properties ignoring ds
if (
!_.isEqual(_.omit(a.extra ?? {}, ['ds']), _.omit(b.extra ?? {}, ['ds']))
)
return false
// Compare other properties normally
for (const key of ['links', 'reroutes', 'groups']) {