Clinical course tab has been disabled for LTB of all countries#14088
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthrough
Clinical Course Tab Visibility
Estimated code review effort🎯 2 (Simple) | ⏱️ ~5 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 3❌ Failed checks (3 warnings)
✅ Passed checks (2 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@sormas-ui/src/main/java/de/symeda/sormas/ui/caze/AbstractCaseView.java`:
- Around line 236-241: The clinical course availability condition in
AbstractCaseView is applying NON_LUX_CLINICAL_COURSE_DISABLED_DISEASES for every
country, which incorrectly hides the tab for Luxembourg cases too. Update the
visibility logic around the caze disease checks so the
NON_LUX_CLINICAL_COURSE_DISABLED_DISEASES branch is only enforced when the
country is not Luxembourg, while keeping the existing Luxembourg-specific
CLINICAL_COURSE_DISABLED_DISEASES handling intact. Use the AbstractCaseView
condition and the
FacadeProvider.getConfigFacade().isConfiguredCountry(CountryHelper.COUNTRY_CODE_LUXEMBOURG)
check to scope the disease list correctly.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 2500c296-4f73-4bb3-b04a-4fe749f0baaf
📒 Files selected for processing (1)
sormas-ui/src/main/java/de/symeda/sormas/ui/caze/AbstractCaseView.java
Fixes #
Summary by CodeRabbit