Skip to content

Commit

Permalink
Update processing job resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvigneshwars committed Apr 12, 2024
1 parent 5de56c5 commit 533ec5f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 260 deletions.
256 changes: 0 additions & 256 deletions dp.gql

This file was deleted.

5 changes: 2 additions & 3 deletions processed_data/src/graphql/entities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,10 @@ pub struct DataCollection {
}

/// Datasets subgraph extension
#[derive(Clone, Debug, PartialEq, SimpleObject)]
#[derive(Debug, Clone, SimpleObject)]
#[graphql(name = "ProcessJob", unresolvable = "processingJobId")]
pub struct ProcessJob {
#[graphql(flatten, external)]
pub processing_job: ProcessingJob,

Check failure on line 274 in processed_data/src/graphql/entities.rs

View workflow job for this annotation

GitHub Actions / lint

missing documentation for a struct field

Check failure on line 274 in processed_data/src/graphql/entities.rs

View workflow job for this annotation

GitHub Actions / lint

missing documentation for a struct field
#[graphql(flatten, external)]
pub parameters: ProcessingJobParameter,
pub parameters: Option<ProcessingJobParameter>,

Check failure on line 275 in processed_data/src/graphql/entities.rs

View workflow job for this annotation

GitHub Actions / lint

missing documentation for a struct field

Check failure on line 275 in processed_data/src/graphql/entities.rs

View workflow job for this annotation

GitHub Actions / lint

missing documentation for a struct field
}
2 changes: 1 addition & 1 deletion processed_data/src/graphql/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ impl Loader<u32> for ProcessingJobDataLoader {
.into_iter()
.map(|(job, parameter)| ProcessJob {
processing_job: ProcessingJob::from(job),
parameters: ProcessingJobParameter::from(parameter.unwrap()),
parameters: parameter.map(ProcessingJobParameter::from),
})
.collect::<Vec<_>>();

Expand Down

0 comments on commit 533ec5f

Please sign in to comment.