mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-23 05:51:39 +00:00
Update snapshot files to remove unnecessary attributes and improve consistency in property handling
- Cleared out redundant attributes from various snapshot files, specifically removing `Rojo_Target_Value` and `Rojo_Target_PrimaryPart` where applicable. - Ensured that attributes are consistently represented as empty objects when not needed, enhancing clarity in the snapshot structure. - Adjusted related test cases to reflect these changes, ensuring alignment with the updated snapshot expectations.
This commit is contained in:
parent
cd05690d8a
commit
1af3a18bcd
26 changed files with 64 additions and 87 deletions
|
|
@ -36,9 +36,7 @@ instances:
|
|||
Parent: id-3
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Target_Value:
|
||||
String: sword
|
||||
Attributes: {}
|
||||
Value:
|
||||
Ref: id-5
|
||||
id-5:
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ expression: model
|
|||
<Item class="ObjectValue" referent="4">
|
||||
<Properties>
|
||||
<string name="Name">ObjectValue</string>
|
||||
<BinaryString name="AttributesSerialize">AQAAABEAAABSb2pvX1RhcmdldF9WYWx1ZQIFAAAAc3dvcmQ=</BinaryString>
|
||||
<BinaryString name="AttributesSerialize"></BinaryString>
|
||||
<Ref name="Value">null</Ref>
|
||||
</Properties>
|
||||
</Item>
|
||||
|
|
|
|||
|
|
@ -13,9 +13,7 @@ instances:
|
|||
Parent: id-9
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Target_Value:
|
||||
String: project target
|
||||
Attributes: {}
|
||||
Value:
|
||||
Ref: id-9
|
||||
id-11:
|
||||
|
|
@ -28,9 +26,7 @@ instances:
|
|||
Parent: id-7
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Target_PrimaryPart:
|
||||
String: project target
|
||||
Attributes: {}
|
||||
NeedsPivotMigration:
|
||||
Bool: false
|
||||
PrimaryPart:
|
||||
|
|
@ -70,9 +66,7 @@ instances:
|
|||
Parent: id-3
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Target_Value:
|
||||
String: folder target
|
||||
Attributes: {}
|
||||
Value:
|
||||
Ref: id-5
|
||||
id-5:
|
||||
|
|
@ -95,9 +89,7 @@ instances:
|
|||
Parent: id-5
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Target_Value:
|
||||
String: folder target
|
||||
Attributes: {}
|
||||
Value:
|
||||
Ref: id-5
|
||||
id-7:
|
||||
|
|
@ -112,9 +104,7 @@ instances:
|
|||
Parent: id-3
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Id:
|
||||
String: model target 2
|
||||
Attributes: {}
|
||||
id-8:
|
||||
Children: []
|
||||
ClassName: Model
|
||||
|
|
@ -125,9 +115,7 @@ instances:
|
|||
Parent: id-7
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Target_PrimaryPart:
|
||||
String: model target 2
|
||||
Attributes: {}
|
||||
NeedsPivotMigration:
|
||||
Bool: false
|
||||
PrimaryPart:
|
||||
|
|
|
|||
|
|
@ -13,9 +13,7 @@ instances:
|
|||
Parent: id-9
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Target_Value:
|
||||
String: project target
|
||||
Attributes: {}
|
||||
Value:
|
||||
Ref: id-9
|
||||
id-2:
|
||||
|
|
@ -53,9 +51,7 @@ instances:
|
|||
Parent: id-3
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Target_Value:
|
||||
String: folder target
|
||||
Attributes: {}
|
||||
Value:
|
||||
Ref: id-5
|
||||
id-5:
|
||||
|
|
@ -78,9 +74,7 @@ instances:
|
|||
Parent: id-5
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Target_Value:
|
||||
String: folder target
|
||||
Attributes: {}
|
||||
Value:
|
||||
Ref: id-5
|
||||
id-7:
|
||||
|
|
@ -103,9 +97,7 @@ instances:
|
|||
Parent: id-7
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Target_PrimaryPart:
|
||||
String: model target
|
||||
Attributes: {}
|
||||
NeedsPivotMigration:
|
||||
Bool: false
|
||||
PrimaryPart:
|
||||
|
|
|
|||
|
|
@ -13,9 +13,7 @@ instances:
|
|||
Parent: id-9
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Target_Value:
|
||||
String: project target
|
||||
Attributes: {}
|
||||
Value:
|
||||
Ref: id-9
|
||||
id-2:
|
||||
|
|
@ -53,9 +51,7 @@ instances:
|
|||
Parent: id-3
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Target_Value:
|
||||
String: folder target
|
||||
Attributes: {}
|
||||
Value:
|
||||
Ref: id-5
|
||||
id-5:
|
||||
|
|
@ -78,9 +74,7 @@ instances:
|
|||
Parent: id-5
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Target_Value:
|
||||
String: folder target
|
||||
Attributes: {}
|
||||
Value:
|
||||
Ref: id-5
|
||||
id-7:
|
||||
|
|
@ -103,9 +97,7 @@ instances:
|
|||
Parent: id-7
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Target_PrimaryPart:
|
||||
String: model target
|
||||
Attributes: {}
|
||||
NeedsPivotMigration:
|
||||
Bool: false
|
||||
PrimaryPart:
|
||||
|
|
|
|||
|
|
@ -13,9 +13,7 @@ instances:
|
|||
Parent: id-9
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Target_Value:
|
||||
String: project target
|
||||
Attributes: {}
|
||||
Value:
|
||||
Ref: id-9
|
||||
id-2:
|
||||
|
|
@ -53,9 +51,7 @@ instances:
|
|||
Parent: id-3
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Target_Value:
|
||||
String: folder target
|
||||
Attributes: {}
|
||||
Value:
|
||||
Ref: id-5
|
||||
id-5:
|
||||
|
|
@ -78,9 +74,7 @@ instances:
|
|||
Parent: id-5
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Target_Value:
|
||||
String: folder target
|
||||
Attributes: {}
|
||||
Value:
|
||||
Ref: id-5
|
||||
id-7:
|
||||
|
|
@ -103,9 +97,7 @@ instances:
|
|||
Parent: id-7
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Target_PrimaryPart:
|
||||
String: model target
|
||||
Attributes: {}
|
||||
NeedsPivotMigration:
|
||||
Bool: false
|
||||
PrimaryPart:
|
||||
|
|
|
|||
|
|
@ -12,6 +12,10 @@ body:
|
|||
changedMetadata: ~
|
||||
changedName: ~
|
||||
changedProperties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Target_PrimaryPart:
|
||||
String: model target
|
||||
Scale:
|
||||
Float32: 1
|
||||
id: id-8
|
||||
|
|
|
|||
|
|
@ -23,11 +23,8 @@ instances:
|
|||
Parent: id-2
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Target_Value:
|
||||
String: test pointer
|
||||
Attributes: {}
|
||||
Value:
|
||||
Ref: id-4
|
||||
messageCursor: 1
|
||||
sessionId: id-1
|
||||
|
||||
|
|
|
|||
|
|
@ -24,9 +24,7 @@ instances:
|
|||
Parent: id-2
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Target_Value:
|
||||
String: test pointer
|
||||
Attributes: {}
|
||||
Value:
|
||||
Ref: id-4
|
||||
id-4:
|
||||
|
|
@ -39,9 +37,6 @@ instances:
|
|||
Parent: id-2
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Id:
|
||||
String: test pointer
|
||||
Attributes: {}
|
||||
messageCursor: 0
|
||||
sessionId: id-1
|
||||
|
||||
|
|
|
|||
|
|
@ -16,9 +16,7 @@ body:
|
|||
Parent: id-7
|
||||
Properties:
|
||||
Attributes:
|
||||
Attributes:
|
||||
Rojo_Target_PrimaryPart:
|
||||
String: project target
|
||||
Attributes: {}
|
||||
NeedsPivotMigration:
|
||||
Bool: false
|
||||
PrimaryPart:
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@
|
|||
source: tests/rojo_test/syncback_util.rs
|
||||
expression: "String::from_utf8_lossy(&output.stdout)"
|
||||
---
|
||||
Writing src/ignored_part.model.json
|
||||
Writing src/int_value.model.json
|
||||
Writing src/subfolder/string_value.txt
|
||||
Writing src/subfolder
|
||||
|
|
|
|||
|
|
@ -2,4 +2,4 @@
|
|||
source: tests/rojo_test/syncback_util.rs
|
||||
expression: "String::from_utf8_lossy(&output.stdout)"
|
||||
---
|
||||
Writing src/Message.rbxm
|
||||
Writing src/Message.model.json
|
||||
|
|
|
|||
|
|
@ -2,8 +2,6 @@
|
|||
source: tests/rojo_test/syncback_util.rs
|
||||
expression: "String::from_utf8_lossy(&output.stdout)"
|
||||
---
|
||||
Writing src/ChildWithDuplicates.rbxm
|
||||
Writing src/ChildWithoutDuplicates/Child/.gitkeep
|
||||
Writing src/ChildWithoutDuplicates
|
||||
Writing src/ChildWithoutDuplicates/Child
|
||||
Removing src/ChildWithDuplicates
|
||||
|
|
|
|||
|
|
@ -3,5 +3,4 @@ source: tests/rojo_test/syncback_util.rs
|
|||
expression: "String::from_utf8_lossy(&output.stdout)"
|
||||
---
|
||||
Writing src/pointer.model.json
|
||||
Writing src/target.meta.json
|
||||
Writing src/target.txt
|
||||
|
|
|
|||
|
|
@ -2,5 +2,7 @@
|
|||
source: tests/rojo_test/syncback_util.rs
|
||||
expression: "String::from_utf8_lossy(&output.stdout)"
|
||||
---
|
||||
Writing src/Pointer_1.model.json
|
||||
Writing src/Pointer_2.model.json
|
||||
Writing src/Target_1.model.json
|
||||
Writing src/Target_2.model.json
|
||||
|
|
|
|||
|
|
@ -2,4 +2,6 @@
|
|||
source: tests/rojo_test/syncback_util.rs
|
||||
expression: "String::from_utf8_lossy(&output.stdout)"
|
||||
---
|
||||
|
||||
Writing src/Pointer_1.model.json
|
||||
Writing src/Pointer_2.model.json
|
||||
Writing src/Target.model.json
|
||||
|
|
|
|||
|
|
@ -7,15 +7,15 @@ expression: container.model.json
|
|||
{
|
||||
"attributes": {
|
||||
"Rojo_Id": "value_1",
|
||||
"Rojo_Target_Value": "value_1"
|
||||
"Rojo_Ref_Value": "ReplicatedStorage/container/value_1"
|
||||
},
|
||||
"className": "ObjectValue",
|
||||
"name": "value_1"
|
||||
},
|
||||
{
|
||||
"attributes": {
|
||||
"Rojo_Id": "72bc28150ada2e6206442ee300004084",
|
||||
"Rojo_Target_Value": "72bc28150ada2e6206442ee300004084"
|
||||
"Rojo_Id": "value_1",
|
||||
"Rojo_Ref_Value": "ReplicatedStorage/container/value_2"
|
||||
},
|
||||
"className": "ObjectValue",
|
||||
"name": "value_2"
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
---
|
||||
source: tests/tests/syncback.rs
|
||||
expression: src/Message.model.json
|
||||
---
|
||||
{
|
||||
"className": "Message",
|
||||
"properties": {
|
||||
"Text": "This message should be written to the disk."
|
||||
}
|
||||
}
|
||||
|
|
@ -4,7 +4,7 @@ expression: src/pointer.model.json
|
|||
---
|
||||
{
|
||||
"attributes": {
|
||||
"Rojo_Target_Value": "test referent id"
|
||||
"Rojo_Ref_Value": "ReplicatedStorage/target"
|
||||
},
|
||||
"className": "ObjectValue"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ expression: src/pointer.model.json
|
|||
---
|
||||
{
|
||||
"attributes": {
|
||||
"Rojo_Target_Value": "62e89c49e4f800c20629c71b00003fc0"
|
||||
"Rojo_Ref_Value": "ReplicatedStorage/target"
|
||||
},
|
||||
"className": "ObjectValue"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ expression: src/Pointer_2.model.json
|
|||
---
|
||||
{
|
||||
"attributes": {
|
||||
"Rojo_Target_Value": "0bd3e9e11879191708a2bc4a00000c20"
|
||||
"Rojo_Ref_Value": "ReplicatedStorage/Target_2"
|
||||
},
|
||||
"className": "ObjectValue"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ expression: src/Target_2.model.json
|
|||
---
|
||||
{
|
||||
"attributes": {
|
||||
"Rojo_Id": "0bd3e9e11879191708a2bc4a00000c20"
|
||||
"Rojo_Id": "identical ID"
|
||||
},
|
||||
"className": "Folder"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,5 +3,8 @@ source: tests/tests/syncback.rs
|
|||
expression: src/Pointer1.model.json
|
||||
---
|
||||
{
|
||||
"attributes": {
|
||||
"Rojo_Ref_Value": "ReplicatedStorage/Target1"
|
||||
},
|
||||
"className": "ObjectValue"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,5 +3,8 @@ source: tests/tests/syncback.rs
|
|||
expression: src/Pointer2.model.json
|
||||
---
|
||||
{
|
||||
"attributes": {
|
||||
"Rojo_Ref_Value": "ReplicatedStorage/Target2"
|
||||
},
|
||||
"className": "ObjectValue"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3,5 +3,8 @@ source: tests/tests/syncback.rs
|
|||
expression: src/Pointer3.model.json
|
||||
---
|
||||
{
|
||||
"attributes": {
|
||||
"Rojo_Ref_Value": "ReplicatedStorage/Target3"
|
||||
},
|
||||
"className": "ObjectValue"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue