Flatten snapshot middleware to be much simpler (#324)

* First take at flattening middleware for simpler code and better perf

* Undo debug prints

* Fix using wrong path in snapshot_from_vfs

* Disable some broken tests

* Re-enable (mistakenly?) disabled CSV test

* Fix some tests

* Update project file tests

* Fix benchmark
This commit is contained in:
Lucien Greathouse
2020-06-17 13:47:09 -07:00
committed by GitHub
parent bdd1afea57
commit 486b067567
18 changed files with 489 additions and 713 deletions

View File

@@ -6,9 +6,9 @@ snapshot_id: ~
metadata:
ignore_unknown_instances: true
instigating_source:
Path: /foo/default.project.json
Path: /foo.project.json
relevant_paths:
- /foo/default.project.json
- /foo.project.json
context: {}
name: children
class_name: Folder
@@ -19,7 +19,7 @@ children:
ignore_unknown_instances: true
instigating_source:
ProjectNode:
- /foo
- /foo.project.json
- Child
- $className: Model
- Folder

View File

@@ -20,7 +20,7 @@ children:
ignore_unknown_instances: true
instigating_source:
ProjectNode:
- /foo
- /foo/other.project.json
- SomeChild
- $className: Model
- Folder

View File

@@ -6,9 +6,9 @@ snapshot_id: ~
metadata:
ignore_unknown_instances: true
instigating_source:
Path: /foo/default.project.json
Path: /foo.project.json
relevant_paths:
- /foo/default.project.json
- /foo.project.json
context: {}
name: resolved-properties
class_name: StringValue

View File

@@ -6,9 +6,9 @@ snapshot_id: ~
metadata:
ignore_unknown_instances: true
instigating_source:
Path: /foo/default.project.json
Path: /foo.project.json
relevant_paths:
- /foo/default.project.json
- /foo.project.json
context: {}
name: unresolved-properties
class_name: StringValue