You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
…compression
- Map application/dicom to .dcm (was falling back to .dicom)
- Strip ".gz.enc" from stored file name when building the S3 key, since the
object is decompressed before upload (XRAY.gz.enc -> XRAY.dcm, not XRAY.gz.dcm)
- Cap decompressed size at 256 MB to avoid heap exhaustion on large/malformed payloads
- Add unit tests for ingest (gzip + plain + hash mismatch) and extension mapping
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This repository does not receive automatic reviews because it has fewer than 10 stars.
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Organization UI
Review profile: CHILL
Plan: Advanced
Run ID: fdc6f1c2-a155-4dec-b148-ddbd0b39b943
No actionable comments were generated in the recent review.
Walkthrough
The document push service now marks .gz.enc payloads as gzip-encoded and maps DICOM content to the dcm extension. The ingest service decompresses gzip payloads before checksum validation and S3 upload, with a 256 MiB decompressed-size limit.
Changes: Diagnostic document gzip synchronization
Layer / File(s)
Summary
Mark outbound document payloads src/main/java/com/iemr/mmu/service/dataSyncLayerCentral/DiagnosticDocumentPushServiceImpl.java, src/test/java/com/iemr/mmu/service/dataSyncLayerCentral/DiagnosticDocumentPushServiceImplTest.java
The push service adds contentEncoding: "gzip" for stored paths ending in .gz.enc and maps application/dicom to dcm. Tests cover the DICOM mapping and existing extension mappings.
Decode and ingest document payloads src/main/java/com/iemr/mmu/service/dataSyncLayerCentral/DiagnosticDocumentIngestService.java, src/test/java/com/iemr/mmu/service/dataSyncLayerCentral/DiagnosticDocumentIngestServiceTest.java
The ingest service decompresses payloads marked with contentEncoding: "gzip" before checksum validation and upload. It rejects decompressed content over 256 MiB and removes .gz.enc or .enc from filenames. Tests cover gzip and plain ingestion, filename cleanup, upload behavior, and checksum mismatch handling.
The change adds DICOM handling to document sync. Gzip payloads are decompressed before checksum validation and upload, and DICOM files get the .dcm extension. No runtime defect was established. The commit message lint check currently fails and needs a reworded or squashed commit before merge. Confirm with the producing team that sha256_hash covers the original document, not the gzip bytes.
Pre-merge checks: 3 · 1
Failed checks: 1 inconclusive
Check name
Status
Explanation
Resolution
Title check
The title "Feature/dicom addition" is vague. It names DICOM, which is a real part of the change (DICOM mapping to .dcm, DICOM upload and ingestion). However, it does not say what the feature does. It …
Rewrite the title to state the primary change. For example: "Add DICOM document ingestion with gzip support". Keep it short, single sentence, and specific.
Passed checks: 3 passed
Check name
Status
Explanation
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title "Feature/dicom addition" is vague. It names DICOM, which is a real part of the change (DICOM mapping to .dcm, DICOM upload and ingestion). However, it does not say what the feature does. It omits the gzip handling, the .gz.enc filename cleanup, and the 256 MiB decompression limit. The title is therefore partially related: it refers to a real aspect of the change but not the main point. It also uses a generic 'addition' form.
Resolution
Rewrite the title to state the primary change. For example: "Add DICOM document ingestion with gzip support". Keep it short, single sentence, and specific.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
@sehjotsinghunthinkable I’ll start a review of this PR.
Action performed
Review finished.
Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.
…compression
- Map application/dicom to .dcm (was falling back to .dicom)
- Strip ".gz.enc" from stored file name when building the S3 key, since the
object is decompressed before upload (XRAY.gz.enc -> XRAY.dcm, not XRAY.gz.dcm)
- Cap decompressed size at 256 MB to avoid heap exhaustion on large/malformed payloads
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
# Conflicts:
# src/main/java/com/iemr/mmu/service/dataSyncLayerCentral/DiagnosticDocumentIngestService.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📋 Description
JIRA ID: STOP-749
Please provide a summary of the change and the motivation behind it. Include relevant context and details.
✅ Type of Change
ℹ️ Additional Information
Please describe how the changes were tested, and include any relevant screenshots, logs, or other information that provides additional context.
Summary by CodeRabbit
.dcmfile extension.