-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Actually include attribute-defined properties in patch computation (#944
- Loading branch information
Showing
5 changed files
with
361 additions
and
1 deletion.
There are no files selected for viewing
120 changes: 120 additions & 0 deletions
120
...est/serve-test-snapshots/end_to_end__tests__serve__ref_properties_patch_update_all-2.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
--- | ||
source: tests/tests/serve.rs | ||
expression: "read_response.intern_and_redact(&mut redactions, root_id)" | ||
--- | ||
instances: | ||
id-10: | ||
Children: [] | ||
ClassName: ObjectValue | ||
Id: id-10 | ||
Metadata: | ||
ignoreUnknownInstances: true | ||
Name: ProjectPointer | ||
Parent: id-9 | ||
Properties: | ||
Attributes: | ||
Attributes: | ||
Rojo_Target_Value: | ||
String: project target | ||
Value: | ||
Ref: id-9 | ||
id-2: | ||
Children: | ||
- id-3 | ||
ClassName: DataModel | ||
Id: id-2 | ||
Metadata: | ||
ignoreUnknownInstances: true | ||
Name: ref_properties | ||
Parent: "00000000000000000000000000000000" | ||
Properties: {} | ||
id-3: | ||
Children: | ||
- id-4 | ||
- id-5 | ||
- id-7 | ||
- id-9 | ||
ClassName: Workspace | ||
Id: id-3 | ||
Metadata: | ||
ignoreUnknownInstances: true | ||
Name: Workspace | ||
Parent: id-2 | ||
Properties: {} | ||
id-4: | ||
Children: [] | ||
ClassName: ObjectValue | ||
Id: id-4 | ||
Metadata: | ||
ignoreUnknownInstances: true | ||
Name: CrossFormatPointer | ||
Parent: id-3 | ||
Properties: | ||
Attributes: | ||
Attributes: | ||
Rojo_Target_Value: | ||
String: folder target | ||
Value: | ||
Ref: id-5 | ||
id-5: | ||
Children: | ||
- id-6 | ||
ClassName: Folder | ||
Id: id-5 | ||
Metadata: | ||
ignoreUnknownInstances: false | ||
Name: FolderTarget | ||
Parent: id-3 | ||
Properties: {} | ||
id-6: | ||
Children: [] | ||
ClassName: ObjectValue | ||
Id: id-6 | ||
Metadata: | ||
ignoreUnknownInstances: false | ||
Name: FolderPointer | ||
Parent: id-5 | ||
Properties: | ||
Attributes: | ||
Attributes: | ||
Rojo_Target_Value: | ||
String: folder target | ||
Value: | ||
Ref: id-5 | ||
id-7: | ||
Children: | ||
- id-8 | ||
ClassName: Folder | ||
Id: id-7 | ||
Metadata: | ||
ignoreUnknownInstances: false | ||
Name: ModelTarget | ||
Parent: id-3 | ||
Properties: {} | ||
id-8: | ||
Children: [] | ||
ClassName: Model | ||
Id: id-8 | ||
Metadata: | ||
ignoreUnknownInstances: false | ||
Name: ModelPointer | ||
Parent: id-7 | ||
Properties: | ||
Attributes: | ||
Attributes: | ||
Rojo_Target_PrimaryPart: | ||
String: model target | ||
PrimaryPart: | ||
Ref: id-7 | ||
id-9: | ||
Children: | ||
- id-10 | ||
ClassName: Folder | ||
Id: id-9 | ||
Metadata: | ||
ignoreUnknownInstances: true | ||
Name: ProjectTarget | ||
Parent: id-3 | ||
Properties: {} | ||
messageCursor: 0 | ||
sessionId: id-1 |
120 changes: 120 additions & 0 deletions
120
...-test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_patch_update_all.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
--- | ||
source: tests/tests/serve.rs | ||
expression: "read_response.intern_and_redact(&mut redactions, root_id)" | ||
--- | ||
instances: | ||
id-10: | ||
Children: [] | ||
ClassName: ObjectValue | ||
Id: id-10 | ||
Metadata: | ||
ignoreUnknownInstances: true | ||
Name: ProjectPointer | ||
Parent: id-9 | ||
Properties: | ||
Attributes: | ||
Attributes: | ||
Rojo_Target_Value: | ||
String: project target | ||
Value: | ||
Ref: id-9 | ||
id-2: | ||
Children: | ||
- id-3 | ||
ClassName: DataModel | ||
Id: id-2 | ||
Metadata: | ||
ignoreUnknownInstances: true | ||
Name: ref_properties | ||
Parent: "00000000000000000000000000000000" | ||
Properties: {} | ||
id-3: | ||
Children: | ||
- id-4 | ||
- id-5 | ||
- id-7 | ||
- id-9 | ||
ClassName: Workspace | ||
Id: id-3 | ||
Metadata: | ||
ignoreUnknownInstances: true | ||
Name: Workspace | ||
Parent: id-2 | ||
Properties: {} | ||
id-4: | ||
Children: [] | ||
ClassName: ObjectValue | ||
Id: id-4 | ||
Metadata: | ||
ignoreUnknownInstances: true | ||
Name: CrossFormatPointer | ||
Parent: id-3 | ||
Properties: | ||
Attributes: | ||
Attributes: | ||
Rojo_Target_Value: | ||
String: folder target | ||
Value: | ||
Ref: id-5 | ||
id-5: | ||
Children: | ||
- id-6 | ||
ClassName: Folder | ||
Id: id-5 | ||
Metadata: | ||
ignoreUnknownInstances: false | ||
Name: FolderTarget | ||
Parent: id-3 | ||
Properties: {} | ||
id-6: | ||
Children: [] | ||
ClassName: ObjectValue | ||
Id: id-6 | ||
Metadata: | ||
ignoreUnknownInstances: false | ||
Name: FolderPointer | ||
Parent: id-5 | ||
Properties: | ||
Attributes: | ||
Attributes: | ||
Rojo_Target_Value: | ||
String: folder target | ||
Value: | ||
Ref: id-5 | ||
id-7: | ||
Children: | ||
- id-8 | ||
ClassName: Folder | ||
Id: id-7 | ||
Metadata: | ||
ignoreUnknownInstances: false | ||
Name: ModelTarget | ||
Parent: id-3 | ||
Properties: {} | ||
id-8: | ||
Children: [] | ||
ClassName: Model | ||
Id: id-8 | ||
Metadata: | ||
ignoreUnknownInstances: false | ||
Name: ModelPointer | ||
Parent: id-7 | ||
Properties: | ||
Attributes: | ||
Attributes: | ||
Rojo_Target_PrimaryPart: | ||
String: model target | ||
PrimaryPart: | ||
Ref: id-7 | ||
id-9: | ||
Children: | ||
- id-10 | ||
ClassName: Folder | ||
Id: id-9 | ||
Metadata: | ||
ignoreUnknownInstances: true | ||
Name: ProjectTarget | ||
Parent: id-3 | ||
Properties: {} | ||
messageCursor: 0 | ||
sessionId: id-1 |
12 changes: 12 additions & 0 deletions
12
...test/serve-test-snapshots/end_to_end__tests__serve__ref_properties_patch_update_info.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
--- | ||
source: tests/tests/serve.rs | ||
expression: redactions.redacted_yaml(info) | ||
--- | ||
expectedPlaceIds: ~ | ||
gameId: ~ | ||
placeId: ~ | ||
projectName: ref_properties | ||
protocolVersion: 4 | ||
rootInstanceId: id-2 | ||
serverVersion: "[server-version]" | ||
sessionId: id-1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.