mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-21 03:36:06 +00:00
Fix
Avoid sending spurious changedMetadata updates during sync Closes #743
This commit is contained in:
parent
a30a8ecd0f
commit
427e5fa370
16 changed files with 347 additions and 15 deletions
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -26,8 +26,7 @@ body:
|
|||
removed: []
|
||||
updated:
|
||||
- changedClassName: ~
|
||||
changedMetadata:
|
||||
ignoreUnknownInstances: false
|
||||
changedMetadata: ~
|
||||
changedName: ~
|
||||
changedProperties:
|
||||
Attributes:
|
||||
|
|
|
|||
1
rojo-test/serve-tests/changed_metadata/a/mod.lua
Normal file
1
rojo-test/serve-tests/changed_metadata/a/mod.lua
Normal file
|
|
@ -0,0 +1 @@
|
|||
-- shared contents
|
||||
1
rojo-test/serve-tests/changed_metadata/b/mod.lua
Normal file
1
rojo-test/serve-tests/changed_metadata/b/mod.lua
Normal file
|
|
@ -0,0 +1 @@
|
|||
-- shared contents
|
||||
18
rojo-test/serve-tests/changed_metadata/default.project.json
Normal file
18
rojo-test/serve-tests/changed_metadata/default.project.json
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"name": "changed_metadata",
|
||||
"tree": {
|
||||
"$className": "DataModel",
|
||||
"Workspace": {
|
||||
"$className": "Workspace",
|
||||
"Baseplate": {
|
||||
"$className": "Part",
|
||||
"$properties": {
|
||||
"Anchored": true
|
||||
}
|
||||
},
|
||||
"Thing": {
|
||||
"$path": "a"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue