Skip to content

Commit

Permalink
Fix AP graph key field
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvigneshwars committed Apr 16, 2024
1 parent 9624e30 commit 501f063
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion charts/processed_data/charts/processed_data/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ type: application

version: 0.1.0

appVersion: 0.1.0-rc12
appVersion: 0.1.0-rc13
2 changes: 1 addition & 1 deletion processed_data/src/graphql/entities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ pub struct AutoProcess {

/// Combines autoproc integration, autoproc program, autoproc and autoproc scaling
#[derive(Debug, Clone, SimpleObject)]
#[graphql(name = "AP", unresolvable = "auto_proc_integration_id")]
#[graphql(name = "AP", unresolvable = "autoProcIntegrationId")]
pub struct AP {
/// An opaque unique identifier for the auto processing integration
pub auto_proc_integration_id: u32,
Expand Down
36 changes: 18 additions & 18 deletions processed_data/src/graphql/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,42 +267,42 @@ impl Loader<u32> for AutoProcIntegrationDataLoader {
.into_iter()
.map(|record| AP {
auto_proc_integration_id: record
.try_get("AutoProcIntegration", "auto_proc_integration_id")
.try_get("", "auto_proc_integration_id")
.unwrap(),
data_collection_id: record
.try_get("AutoProcIntegration", "data_collection_id")
.try_get("", "data_collection_id")
.unwrap(),
auto_proc_program_id: record
.try_get("AutoProcIntegration", "auto_proc_program_id")
.try_get("", "auto_proc_program_id")
.unwrap(),
refined_x_beam: record
.try_get("AutoProcIntegration", "refined_x_beam")
.try_get("", "refined_x_beam")
.unwrap(),
refined_y_beam: record
.try_get("AutoProcIntegration", "refined_y_beam")
.try_get("", "refined_y_beam")
.unwrap(),
processing_programs: record
.try_get("AutoProcProgram", "processing_programs")
.try_get("", "processing_programs")
.unwrap(),
processing_status: record
.try_get("AutoProcProgram", "processing_status")
.try_get("", "processing_status")
.unwrap(),
processing_message: record
.try_get("AutoProcProgram", "processing_message")
.try_get("", "processing_message")
.unwrap(),
processing_job_id: record
.try_get("AutoProcProgram", "processing_job_id")
.try_get("", "processing_job_id")
.unwrap(),
auto_proc_id: record.try_get("AutoProc", "auto_proc_id").unwrap(),
space_group: record.try_get("AutoProc", "space_group").unwrap(),
refined_cell_a: record.try_get("AutoProc", "refined_cell_a").unwrap(),
refined_cell_b: record.try_get("AutoProc", "refined_cell_b").unwrap(),
refined_cell_c: record.try_get("AutoProc", "refined_cell_c").unwrap(),
refined_cell_alpha: record.try_get("AutoProc", "refined_cell_alpha").unwrap(),
refined_cell_beta: record.try_get("AutoProc", "refined_cell_beta").unwrap(),
refined_cell_gamma: record.try_get("AutoProc", "refined_cell_gamma").unwrap(),
auto_proc_id: record.try_get("", "auto_proc_id").unwrap(),
space_group: record.try_get("", "space_group").unwrap(),
refined_cell_a: record.try_get("", "refined_cell_a").unwrap(),
refined_cell_b: record.try_get("", "refined_cell_b").unwrap(),
refined_cell_c: record.try_get("", "refined_cell_c").unwrap(),
refined_cell_alpha: record.try_get("", "refined_cell_alpha").unwrap(),
refined_cell_beta: record.try_get("", "refined_cell_beta").unwrap(),
refined_cell_gamma: record.try_get("", "refined_cell_gamma").unwrap(),
auto_proc_scaling_id: record
.try_get("AutoProcScaling", "auto_proc_scaling_id")
.try_get("", "auto_proc_scaling_id")
.unwrap(),
})
.collect::<Vec<_>>();
Expand Down

0 comments on commit 501f063

Please sign in to comment.