From 187c13738ca30404e211d96dc37e8d1e6b84704f Mon Sep 17 00:00:00 2001 From: iamvigneshwars Date: Wed, 24 Apr 2024 13:56:18 +0000 Subject: [PATCH] Code Refactor --- .github/workflows/schema.yml | 6 +++--- crystal_snapshots/src/graphql/entities.rs | 2 +- crystal_snapshots/src/graphql/mod.rs | 4 ---- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/schema.yml b/.github/workflows/schema.yml index 0df6f23..45007eb 100644 --- a/.github/workflows/schema.yml +++ b/.github/workflows/schema.yml @@ -39,13 +39,13 @@ jobs: command: run args: > schema - --path processed_data.graphql + --path crystal-snapshots.graphql - name: Upload Schema Artifact uses: actions/upload-artifact@v4.3.1 with: - name: processed_data.graphql - path: processed_data.graphql + name: crystal-snapshots.graphql + path: crystal-snapshots.graphql publish: # Deduplicate jobs from pull requests and branch pushes within the same repo. diff --git a/crystal_snapshots/src/graphql/entities.rs b/crystal_snapshots/src/graphql/entities.rs index a3d2a46..6ac2bfd 100644 --- a/crystal_snapshots/src/graphql/entities.rs +++ b/crystal_snapshots/src/graphql/entities.rs @@ -2,7 +2,7 @@ use async_graphql::SimpleObject; /// Combines autoproc integration, autoproc program, autoproc and autoproc scaling #[derive(Debug, Clone, SimpleObject)] -#[graphql(name = "DataCollection", unresolvable = "dataCollectionId", complex)] +#[graphql(name = "DataCollection", complex)] pub struct DataCollection { /// An opaque unique identifier for data collection pub id: u32, diff --git a/crystal_snapshots/src/graphql/mod.rs b/crystal_snapshots/src/graphql/mod.rs index 6a35d08..4dee884 100644 --- a/crystal_snapshots/src/graphql/mod.rs +++ b/crystal_snapshots/src/graphql/mod.rs @@ -134,8 +134,4 @@ impl Query { async fn router_data_collection(&self, id: u32) -> DataCollection { DataCollection { id } } - - async fn test(&self, id: u32) -> DataCollection { - DataCollection { id } - } }