Move instigating source out of contributing paths (#253)

* Refactor contributing_paths into contributing_sources, deleting project node sources

* Instead of changing contributing_paths, add instigating_source

* Remove InstanceMetadata::project_node

* Stop pushing project path to front of contributing_paths since it doesn't matter now

* Remove accidental UI change for path display
This commit is contained in:
Lucien Greathouse
2019-10-04 17:34:05 -07:00
committed by GitHub
parent 2025b8a494
commit 052ca52cc3
9 changed files with 60 additions and 41 deletions

View File

@@ -63,7 +63,7 @@ impl SnapshotMiddleware for SnapshotProject {
snapshot
.metadata
.contributing_paths
.insert(0, entry.path().to_path_buf());
.push(entry.path().to_path_buf());
Ok(Some(snapshot))
}

View File

@@ -6,8 +6,8 @@ snapshot_id: ~
metadata:
ignore_unknown_instances: true
contributing_paths:
- /foo/default.project.json
- /foo/other.project.json
- /foo/default.project.json
name: path-property-override
class_name: StringValue
properties:

View File

@@ -6,8 +6,8 @@ snapshot_id: ~
metadata:
ignore_unknown_instances: true
contributing_paths:
- /foo/default.project.json
- /foo/other.project.json
- /foo/default.project.json
name: path-project
class_name: Model
properties: {}

View File

@@ -6,8 +6,8 @@ snapshot_id: ~
metadata:
ignore_unknown_instances: true
contributing_paths:
- /foo/default.project.json
- /foo/other.project.json
- /foo/default.project.json
name: path-child-project
class_name: Folder
properties: {}

View File

@@ -6,8 +6,8 @@ snapshot_id: ~
metadata:
ignore_unknown_instances: false
contributing_paths:
- /foo/default.project.json
- /foo/other.txt
- /foo/default.project.json
name: path-project
class_name: StringValue
properties: