diff --git a/graph/src/schema/input/mod.rs b/graph/src/schema/input/mod.rs index 4ab6fdab1da..9609a0289f4 100644 --- a/graph/src/schema/input/mod.rs +++ b/graph/src/schema/input/mod.rs @@ -1049,7 +1049,8 @@ impl InputSchema { }) } - /// Parse with the latest spec version + /// Parse with the latest spec version, it should be used only in tests. + #[cfg(debug_assertions)] pub fn parse_latest(raw: &str, id: DeploymentHash) -> Result { use crate::data::subgraph::LATEST_VERSION; diff --git a/store/test-store/src/store.rs b/store/test-store/src/store.rs index 5475a29db2c..b9572bbe589 100644 --- a/store/test-store/src/store.rs +++ b/store/test-store/src/store.rs @@ -163,7 +163,7 @@ pub async fn create_subgraph( let manifest = SubgraphManifest:: { id: subgraph_id.clone(), - spec_version: Version::new(1, 0, 0), + spec_version: Version::new(1, 3, 0), features: BTreeSet::new(), description: Some(format!("manifest for {}", subgraph_id)), repository: Some(format!("repo for {}", subgraph_id)), @@ -227,7 +227,7 @@ pub async fn create_test_subgraph_with_features( let manifest = SubgraphManifest:: { id: subgraph_id.clone(), - spec_version: Version::new(1, 0, 0), + spec_version: Version::new(1, 3, 0), features, description: Some(format!("manifest for {}", subgraph_id)), repository: Some(format!("repo for {}", subgraph_id)), diff --git a/store/test-store/tests/graph/entity_cache.rs b/store/test-store/tests/graph/entity_cache.rs index ab3cc5ed02e..49cc238c413 100644 --- a/store/test-store/tests/graph/entity_cache.rs +++ b/store/test-store/tests/graph/entity_cache.rs @@ -410,7 +410,7 @@ where async fn insert_test_data(store: Arc) -> DeploymentLocator { let manifest = SubgraphManifest:: { id: LOAD_RELATED_ID.clone(), - spec_version: Version::new(1, 0, 0), + spec_version: Version::new(1, 3, 0), features: Default::default(), description: None, repository: None, diff --git a/store/test-store/tests/postgres/graft.rs b/store/test-store/tests/postgres/graft.rs index 0d741b1b26c..6d5491f40de 100644 --- a/store/test-store/tests/postgres/graft.rs +++ b/store/test-store/tests/postgres/graft.rs @@ -136,7 +136,7 @@ where async fn insert_test_data(store: Arc) -> DeploymentLocator { let manifest = SubgraphManifest:: { id: TEST_SUBGRAPH_ID.clone(), - spec_version: Version::new(1, 0, 0), + spec_version: Version::new(1, 3, 0), features: Default::default(), description: None, repository: None, diff --git a/store/test-store/tests/postgres/store.rs b/store/test-store/tests/postgres/store.rs index be7f3cf550b..5f2f1e80e6c 100644 --- a/store/test-store/tests/postgres/store.rs +++ b/store/test-store/tests/postgres/store.rs @@ -165,7 +165,7 @@ where async fn insert_test_data(store: Arc) -> DeploymentLocator { let manifest = SubgraphManifest:: { id: TEST_SUBGRAPH_ID.clone(), - spec_version: Version::new(1, 0, 0), + spec_version: Version::new(1, 3, 0), features: Default::default(), description: None, repository: None, @@ -1270,7 +1270,7 @@ fn entity_changes_are_fired_and_forwarded_to_subscriptions() { .expect("Failed to parse user schema"); let manifest = SubgraphManifest:: { id: subgraph_id.clone(), - spec_version: Version::new(1, 0, 0), + spec_version: Version::new(1, 3, 0), features: Default::default(), description: None, repository: None, diff --git a/store/test-store/tests/postgres/subgraph.rs b/store/test-store/tests/postgres/subgraph.rs index f59519b8945..58883c59818 100644 --- a/store/test-store/tests/postgres/subgraph.rs +++ b/store/test-store/tests/postgres/subgraph.rs @@ -170,7 +170,7 @@ fn create_subgraph() { let manifest = SubgraphManifest:: { id, - spec_version: Version::new(1, 0, 0), + spec_version: Version::new(1, 3, 0), features: Default::default(), description: None, repository: None, @@ -543,7 +543,7 @@ fn subgraph_features() { } = get_subgraph_features(id.to_string()).unwrap(); assert_eq!(NAME, subgraph_id.as_str()); - assert_eq!("1.0.0", spec_version); + assert_eq!("1.3.0", spec_version); assert_eq!("1.0.0", api_version.unwrap()); assert_eq!(NETWORK_NAME, network); assert_eq!( diff --git a/store/test-store/tests/postgres/writable.rs b/store/test-store/tests/postgres/writable.rs index 2228c148d25..b1e3d28d44e 100644 --- a/store/test-store/tests/postgres/writable.rs +++ b/store/test-store/tests/postgres/writable.rs @@ -50,7 +50,7 @@ lazy_static! { async fn insert_test_data(store: Arc) -> DeploymentLocator { let manifest = SubgraphManifest:: { id: TEST_SUBGRAPH_ID.clone(), - spec_version: Version::new(1, 0, 0), + spec_version: Version::new(1, 3, 0), features: Default::default(), description: None, repository: None,