diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8b13789179..123014908b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1 +1,6 @@ - +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "daily" diff --git a/raphtory-api/src/core/entities/properties/meta.rs b/raphtory-api/src/core/entities/properties/meta.rs index 3328c9f01b..391475da3a 100644 --- a/raphtory-api/src/core/entities/properties/meta.rs +++ b/raphtory-api/src/core/entities/properties/meta.rs @@ -52,6 +52,10 @@ impl Meta { .zip(self.layer_mapper.all_keys()) } + pub fn all_layer_ids(&self) -> impl Iterator + use<'_> { + self.layer_mapper.all_ids().map(LayerId) + } + pub fn set_metadata_mapper(&mut self, meta: PropMapper) { self.metadata_mapper = meta; } diff --git a/raphtory-graphql/src/client/remote_client.rs b/raphtory-graphql/src/client/remote_client.rs index 123dfd5737..5a58e578c8 100644 --- a/raphtory-graphql/src/client/remote_client.rs +++ b/raphtory-graphql/src/client/remote_client.rs @@ -147,15 +147,14 @@ impl RemoteClient { mutation SendGraph($path: String!, $graph: String!, $overwrite: Boolean!) { sendGraph(path: $path, graph: $graph, overwrite: $overwrite) } - "# - .to_owned(); + "#; let variables = json!({ "path": json!(path), "graph": json!(encoded_graph), "overwrite": json!(overwrite), }); - let data = self.query(&query, variables).await?; + let data = self.query(query, variables).await?; match data.get("sendGraph") { Some(JsonValue::String(_)) => Ok(()), _ => Err(ClientError::InvalidResponse(format!( diff --git a/raphtory/src/python/graph/views/graph_view.rs b/raphtory/src/python/graph/views/graph_view.rs index 78ef64a192..cd1008c21a 100644 --- a/raphtory/src/python/graph/views/graph_view.rs +++ b/raphtory/src/python/graph/views/graph_view.rs @@ -34,9 +34,9 @@ use crate::{ utils::PyNodeRef, }, }; -use pyo3::{exceptions::PyException, prelude::*, Borrowed}; +use pyo3::{prelude::*, Borrowed}; use raphtory_api::{core::storage::arc_str::ArcStr, python::timeindex::PyOptionalEventTime}; -use std::{path::PathBuf, sync::OnceLock}; +use std::path::PathBuf; impl<'py> IntoPyObject<'py> for MaterializedGraph { type Target = PyAny;