Skip to content

Commit

Permalink
query testing
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvigneshwars committed Apr 16, 2024
1 parent 501f063 commit 56c7f5f
Show file tree
Hide file tree
Showing 3 changed files with 22 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-rc13
appVersion: 0.1.0-rc13
1 change: 1 addition & 0 deletions processed_data/src/graphql/entities.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ use models::{
auto_proc_scaling_statistics, data_collection_file_attachment, processing_job,
processing_job_parameter, sea_orm_active_enums::ScalingStatisticsType,
};
use sea_orm::FromQueryResult;

Check warning on line 7 in processed_data/src/graphql/entities.rs

View workflow job for this annotation

GitHub Actions / generate

unused import: `sea_orm::FromQueryResult`

Check warning on line 7 in processed_data/src/graphql/entities.rs

View workflow job for this annotation

GitHub Actions / test

unused import: `sea_orm::FromQueryResult`

Check warning on line 7 in processed_data/src/graphql/entities.rs

View workflow job for this annotation

GitHub Actions / test

unused import: `sea_orm::FromQueryResult`

Check warning on line 7 in processed_data/src/graphql/entities.rs

View workflow job for this annotation

GitHub Actions / generate

unused import: `sea_orm::FromQueryResult`

/// Represents processed image file stored in s3 bucket
#[derive(Clone, Debug, PartialEq, SimpleObject)]
Expand Down
39 changes: 20 additions & 19 deletions processed_data/src/graphql/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ use models::{
processing_job_parameter,
};
use sea_orm::{
ColumnTrait, ConnectionTrait, DatabaseConnection, EntityTrait, QueryFilter, Statement,
ColumnTrait, ConnectionTrait, DatabaseConnection, EntityTrait, FromQueryResult, QueryFilter,

Check warning on line 19 in processed_data/src/graphql/mod.rs

View workflow job for this annotation

GitHub Actions / generate

unused import: `FromQueryResult`

Check warning on line 19 in processed_data/src/graphql/mod.rs

View workflow job for this annotation

GitHub Actions / test

unused import: `FromQueryResult`

Check warning on line 19 in processed_data/src/graphql/mod.rs

View workflow job for this annotation

GitHub Actions / test

unused import: `FromQueryResult`

Check warning on line 19 in processed_data/src/graphql/mod.rs

View workflow job for this annotation

GitHub Actions / generate

unused import: `FromQueryResult`
Statement,
};
use sea_query::{self, Asterisk, Expr};
use std::time::Duration;
Expand Down Expand Up @@ -267,42 +268,42 @@ impl Loader<u32> for AutoProcIntegrationDataLoader {
.into_iter()
.map(|record| AP {
auto_proc_integration_id: record
.try_get("", "auto_proc_integration_id")
.try_get("", "autoProcIntegrationId")
.unwrap(),
data_collection_id: record
.try_get("", "data_collection_id")
.try_get("", "dataCollectionId")
.unwrap(),
auto_proc_program_id: record
.try_get("", "auto_proc_program_id")
.try_get("", "autoProcProgramId")
.unwrap(),
refined_x_beam: record
.try_get("", "refined_x_beam")
.try_get("", "refinedXBeam")
.unwrap(),
refined_y_beam: record
.try_get("", "refined_y_beam")
.try_get("", "refinedYBeam")
.unwrap(),
processing_programs: record
.try_get("", "processing_programs")
.try_get("", "processingPrograms")
.unwrap(),
processing_status: record
.try_get("", "processing_status")
.try_get("", "processingStatus")
.unwrap(),
processing_message: record
.try_get("", "processing_message")
.try_get("", "processingMessage")
.unwrap(),
processing_job_id: record
.try_get("", "processing_job_id")
.try_get("", "processingJobId")
.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_id: record.try_get("", "autoProcId").unwrap(),
space_group: record.try_get("", "spaceGroup").unwrap(),
refined_cell_a: record.try_get("", "refinedCell_a").unwrap(),
refined_cell_b: record.try_get("", "refinedCell_b").unwrap(),
refined_cell_c: record.try_get("", "refinedCell_c").unwrap(),
refined_cell_alpha: record.try_get("", "refinedCell_alpha").unwrap(),
refined_cell_beta: record.try_get("", "refinedCell_beta").unwrap(),
refined_cell_gamma: record.try_get("", "refinedCell_gamma").unwrap(),
auto_proc_scaling_id: record
.try_get("", "auto_proc_scaling_id")
.try_get("", "autoProcScalingId")
.unwrap(),
})
.collect::<Vec<_>>();
Expand Down

0 comments on commit 56c7f5f

Please sign in to comment.