-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shanoir issue#1602 nifti management #1849
Shanoir issue#1602 nifti management #1849
Conversation
- Move conversion to microservice
# Conflicts: # shanoir-ng-datasets/src/main/java/org/shanoir/ng/importer/dto/ImportJob.java # shanoir-ng-datasets/src/main/java/org/shanoir/ng/studycard/service/CardsProcessingService.java # shanoir-ng-import/src/main/java/org/shanoir/ng/importer/ImporterApi.java # shanoir-ng-import/src/main/java/org/shanoir/ng/importer/ImporterApiController.java # shanoir-ng-import/src/main/java/org/shanoir/ng/importer/dcm2nii/NIfTIConverter.java # shanoir-ng-import/src/main/java/org/shanoir/ng/importer/dcm2nii/NIfTIConverterApi.java # shanoir-ng-import/src/main/java/org/shanoir/ng/importer/dcm2nii/NIfTIConverterApiController.java # shanoir-ng-nifti-conversion/src/main/java/org/shanoir/ng/service/DatasetsCreatorAndNIfTIConverterService.java
- Merge develop - Management of DB (not resolved yet)
- nifti-conversion compilation - Import correctly
- unify download logic
# Conflicts: # shanoir-ng-datasets/src/main/java/org/shanoir/ng/dataset/controler/CarminDataApi.java # shanoir-ng-datasets/src/main/java/org/shanoir/ng/dataset/controler/CarminDataApiController.java # shanoir-ng-datasets/src/main/java/org/shanoir/ng/dataset/controler/DatasetApi.java # shanoir-ng-datasets/src/main/java/org/shanoir/ng/dataset/service/DatasetDownloaderServiceImpl.java # shanoir-ng-front/src/app/datasets/dataset/dataset.component.ts # shanoir-ng-front/src/app/import/shared/import.service.ts # shanoir-ng-import/src/main/java/org/shanoir/ng/importer/ImporterApi.java # shanoir-ng-import/src/main/java/org/shanoir/ng/importer/ImporterApiController.java # shanoir-ng-import/src/main/java/org/shanoir/ng/importer/dcm2nii/NIfTIConverter.java # shanoir-ng-import/src/main/java/org/shanoir/ng/importer/dcm2nii/NIfTIConverterType.java # shanoir-ng-import/src/main/resources/scripts/import.sql # shanoir-ng-nifti-conversion/src/main/java/org/shanoir/ng/service/DatasetsCreatorAndNIfTIConverterService.java
# Conflicts: # shanoir-ng-datasets/src/main/java/org/shanoir/ng/dataset/controler/CarminDataApi.java # shanoir-ng-datasets/src/main/java/org/shanoir/ng/dataset/controler/CarminDataApiController.java # shanoir-ng-datasets/src/main/java/org/shanoir/ng/dataset/controler/DatasetApi.java # shanoir-ng-datasets/src/main/java/org/shanoir/ng/dataset/service/DatasetDownloaderServiceImpl.java # shanoir-ng-front/src/app/datasets/dataset/dataset.component.ts # shanoir-ng-front/src/app/import/shared/import.service.ts # shanoir-ng-import/src/main/java/org/shanoir/ng/importer/ImporterApi.java # shanoir-ng-import/src/main/java/org/shanoir/ng/importer/ImporterApiController.java # shanoir-ng-import/src/main/java/org/shanoir/ng/importer/dcm2nii/NIfTIConverter.java # shanoir-ng-import/src/main/java/org/shanoir/ng/importer/dcm2nii/NIfTIConverterType.java # shanoir-ng-import/src/main/resources/scripts/import.sql # shanoir-ng-nifti-conversion/src/main/java/org/shanoir/ng/service/DatasetsCreatorAndNIfTIConverterService.java
# Conflicts: # shanoir-ng-front/src/app/shared/mass-download/download-setup/download-setup.component.html # shanoir-ng-front/src/app/shared/mass-download/download-setup/download-setup.component.ts
# Conflicts: # shanoir-ng-front/src/app/shared/mass-download/download-setup/download-setup.component.html # shanoir-ng-front/src/app/shared/mass-download/download-setup/download-setup.component.ts
- Clean old files from import - Reorganise nifti conversion logic
- Clean old converters and old windows files - Reorganise nifti conversion logic in the front - Correct mriconverter - Move dicomifier (and remove bruker2dicom microservice)
- Remove from application yml
- Correct tests
- Clean code from nifti dataset expression generation - SQL script
What I've done in the PR:
What to test:
|
- Clean code from nimport MS - Refactor front code
- Clean code for alt methods - Deployment logic
- Firefox logic
- Add conversion logic to BIDS where necessary
shanoir-ng-front/src/app/shared/mass-download/mass-download.service.ts
Outdated
Show resolved
Hide resolved
shanoir-ng-front/src/app/shared/mass-download/mass-download.service.ts
Outdated
Show resolved
Hide resolved
shanoir-ng-front/src/app/shared/mass-download/mass-download.service.ts
Outdated
Show resolved
Hide resolved
shanoir-ng-front/src/app/shared/mass-download/mass-download.service.ts
Outdated
Show resolved
Hide resolved
shanoir-ng-front/src/app/shared/mass-download/mass-download.service.ts
Outdated
Show resolved
Hide resolved
shanoir-ng-front/src/app/shared/mass-download/mass-download.service.ts
Outdated
Show resolved
Hide resolved
|
||
if (!HttpStatus.OK.equals(response.getStatusCode()) && !HttpStatus.NO_CONTENT.equals(response.getStatusCode())) { | ||
LOG.error(ERROR_BRUKER2DICOM_REQUEST); | ||
boolean result = (boolean) rabbitTemplate.convertSendAndReceive(RabbitMQConfiguration.BRUKER_CONVERSION_QUEUE, request); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have
Caused by: java.lang.NullPointerException: Cannot invoke "java.lang.Boolean.booleanValue()" because the return value of "org.springframework.amqp.rabbit.core.RabbitTemplate.convertSendAndReceive(String, Object)" is null
qualif-preclinical-1 | at org.shanoir.ng.preclinical.bruker.BrukerApiController.startBruker2Dicom(BrukerApiController.java:145)
qualif-preclinical-1 | at org.shanoir.ng.preclinical.bruker.BrukerApiController.uploadBrukerFile(BrukerApiController.java:108)
qualif-preclinical-1 | ... 95 common frames omitted
when I try to upload a bruker file at the beginning of a bruker import.
The file works in prod.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll check !
reminder : add an error msg when the nifti convertion fails |
- Don't write errors
# Conflicts: # shanoir-ng-datasets/src/main/java/org/shanoir/ng/bids/service/BIDSServiceImpl.java # shanoir-ng-datasets/src/main/java/org/shanoir/ng/dataset/controler/DatasetApi.java # shanoir-ng-datasets/src/main/java/org/shanoir/ng/dataset/controler/DatasetApiController.java # shanoir-ng-datasets/src/main/java/org/shanoir/ng/dataset/service/DatasetDownloaderServiceImpl.java # shanoir-ng-datasets/src/main/java/org/shanoir/ng/download/WADODownloaderService.java # shanoir-ng-datasets/src/main/java/org/shanoir/ng/shared/service/SubjectStudyServiceImpl.java # shanoir-ng-datasets/src/main/java/org/shanoir/ng/studycard/service/CardsProcessingService.java # shanoir-ng-datasets/src/main/java/org/shanoir/ng/vip/controller/ExecutionDataApiController.java # shanoir-ng-front/src/app/datasets/dataset/dataset.component.html # shanoir-ng-front/src/app/shared/mass-download/mass-download.service.ts # shanoir-ng-front/src/app/solr/solr.search.component.ts # shanoir-ng-front/src/app/subjects/tree/subject-node.component.ts # shanoir-ng-import/src/main/java/org/shanoir/ng/importer/SerieToDatasetsSeparator.java # shanoir-ng-import/src/main/java/org/shanoir/ng/importer/dcm2nii/DatasetsCreatorAndNIfTIConverterService.java # shanoir-ng-import/src/main/java/org/shanoir/ng/importer/dcm2nii/SerieToDatasetsSeparator.java # shanoir-ng-ms-common/src/main/java/org/shanoir/ng/shared/dicom/SerieToDatasetsSeparator.java
# Conflicts: # shanoir-ng-datasets/src/main/java/org/shanoir/ng/dataset/service/DatasetDownloaderServiceImpl.java
# Conflicts: # shanoir-ng-import/src/main/java/org/shanoir/ng/importer/dcm2nii/DatasetsCreatorAndNIfTIConverterService.java
# Conflicts: # shanoir-ng-import/src/main/java/org/shanoir/ng/importer/dcm2nii/NIfTIConverter.java # shanoir-ng-import/src/main/java/org/shanoir/ng/importer/dcm2nii/NIfTIConverterApi.java # shanoir-ng-ms-common/src/main/java/org/shanoir/ng/shared/configuration/RabbitMQConfiguration.java # shanoir-ng-nifti-conversion/src/main/java/org/shanoir/ng/utils/ShanoirExec.java # shanoir-uploader/src/test/java/org/shanoir/uploader/test/importer/ZipFileImportTest.java
# Conflicts: # shanoir-ng-datasets/src/main/java/org/shanoir/ng/download/WADODownloaderService.java # shanoir-ng-front/src/app/import/pre-clinical-context/pre-clinical-context.component.ts
…b.com/jcomedouteau/shanoir-ng into shanoir-issue#1602-nifti-management
# Conflicts: # shanoir-ng-front/src/app/examinations/examination/examination.component.ts
@jcomedouteau the download fixes & evolutions pr has been merged, maybe I could do the merge in your pr ? Maybe I will try a pr on your branch ? (I had bad experiences with prs on prs but we will be careful !) |
@jcomedouteau I'm currently working on the merge |
Thanks ! |
replaced by #2143 |
No description provided.