Avoid sending spurious changedMetadata updates during sync

Closes #743
This commit is contained in:
Companion 2026-08-31 13:56:45 +01:00
parent a30a8ecd0f
commit 427e5fa370
16 changed files with 347 additions and 15 deletions

View file

@ -0,0 +1,18 @@
---
source: tests/tests/serve.rs
expression: "packet.intern_and_redact(&mut redactions, ())"
---
body:
messageCursor: 2
messages:
- added: {}
removed: []
updated:
- changedClassName: ~
changedMetadata:
ignoreUnknownInstances: false
changedName: ~
changedProperties: {}
id: id-3
packetType: messages
sessionId: id-1

View file

@ -0,0 +1,20 @@
---
source: tests/tests/serve.rs
expression: "packet.intern_and_redact(&mut redactions, ())"
---
body:
messageCursor: 3
messages:
- added: {}
removed: []
updated:
- changedClassName: ~
changedMetadata:
ignoreUnknownInstances: true
changedName: ~
changedProperties:
Anchored:
Bool: true
id: id-3
packetType: messages
sessionId: id-1

View file

@ -0,0 +1,19 @@
---
source: tests/tests/serve.rs
expression: "packet.intern_and_redact(&mut redactions, ())"
---
body:
messageCursor: 1
messages:
- added: {}
removed: []
updated:
- changedClassName: ~
changedMetadata: ~
changedName: ~
changedProperties:
Anchored:
Bool: false
id: id-3
packetType: messages
sessionId: id-1

View file

@ -0,0 +1,12 @@
---
source: tests/tests/serve.rs
expression: "packet.intern_and_redact(&mut redactions, ())"
---
body:
messageCursor: 4
messages:
- added: {}
removed: []
updated: []
packetType: messages
sessionId: id-1

View file

@ -18,12 +18,6 @@ body:
NeedsPivotMigration:
Bool: false
removed: []
updated:
- changedClassName: ~
changedMetadata:
ignoreUnknownInstances: true
changedName: ~
changedProperties: {}
id: id-3
updated: []
packetType: messages
sessionId: id-1

View file

@ -26,8 +26,7 @@ body:
removed: []
updated:
- changedClassName: ~
changedMetadata:
ignoreUnknownInstances: false
changedMetadata: ~
changedName: ~
changedProperties:
Attributes:

View file

@ -0,0 +1 @@
-- shared contents

View file

@ -0,0 +1 @@
-- shared contents

View file

@ -0,0 +1,18 @@
{
"name": "changed_metadata",
"tree": {
"$className": "DataModel",
"Workspace": {
"$className": "Workspace",
"Baseplate": {
"$className": "Part",
"$properties": {
"Anchored": true
}
},
"Thing": {
"$path": "a"
}
}
}
}