-
Notifications
You must be signed in to change notification settings - Fork 151
Fixed issue with samples creation always displaying for Doctor Declaration #13579
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
Fixed issue with samples creation always displaying for Doctor Declaration #13579
Conversation
…ation - The doctor declaration processing was showing sample creation options even when no relevant samples were available. - Added check to ensure that sample creation options are only displayed when there are valid sample reports.
WalkthroughChanged a private method to protected in AbstractMessageProcessingFlowBase. Added an override in AbstractDoctorDeclarationMessageProcessingFlow that early-exits when sample reports are absent or have no tests; otherwise delegates to the superclass flow. Changes
Sequence Diagram(s)sequenceDiagram
actor ExternalMessageProcessor as Processor
participant DoctorFlow as AbstractDoctorDeclarationMessageProcessingFlow
participant BaseFlow as AbstractMessageProcessingFlowBase
Processor->>DoctorFlow: doPickOrCreateSamplesFlow(...)
alt No sample reports or reports without tests
DoctorFlow-->>Processor: Return provided flow (completed)
else Reports with tests
DoctorFlow->>BaseFlow: super.doPickOrCreateSamplesFlow(...)
BaseFlow-->>DoctorFlow: FlowThen result
DoctorFlow-->>Processor: FlowThen result
end
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (2)
🧰 Additional context used🧬 Code Graph Analysis (1)sormas-api/src/main/java/de/symeda/sormas/api/externalmessage/processing/doctordeclaration/AbstractDoctorDeclarationMessageProcessingFlow.java (2)
🔇 Additional comments (4)
✨ Finishing Touches
🧪 Generate unit tests
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit
Bug Fixes
Refactor