Skip to content

disable influenza by default, enable influenza A,B, new subtype by default#13599

Merged
obinna-h-n merged 1 commit intodevelopmentfrom
feature-13404-hide-the-influenza-disease
Sep 14, 2025
Merged

disable influenza by default, enable influenza A,B, new subtype by default#13599
obinna-h-n merged 1 commit intodevelopmentfrom
feature-13404-hide-the-influenza-disease

Conversation

@obinna-h-n
Copy link
Copy Markdown
Contributor

@obinna-h-n obinna-h-n commented Sep 14, 2025

…fault

Fixes #13404

Summary by CodeRabbit

  • New Features

    • “New Influenza” is now available by default.
    • Influenza A and B are enabled by default, set as primary options, and have case surveillance active by default.
  • Chores

    • Base “Influenza” is no longer active or primary by default.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Sep 14, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

Boolean defaults in the Disease enum were updated: NEW_INFLUENZA set to active; INFLUENZA set to non-primary and case surveillance disabled; INFLUENZA_A and INFLUENZA_B set to active and primary. No other files changed.

Changes

Cohort / File(s) Summary
Disease enum flag updates
sormas-api/src/main/java/de/symeda/sormas/api/Disease.java
Adjusted enum constructor flags: NEW_INFLUENZA active=true; INFLUENZA primary=false and caseSurveillanceEnabled=false; INFLUENZA_A and INFLUENZA_B active=true, primary=true.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

I twitch my ears at toggled flu,
A hides, B shines, old flu’s askew—
New variant hops into the queue.
Flags flipped neat, a cleaner view,
Carrots counted, checks are few.
Thump-thump! Ship it, crew. 🥕✨

✨ Finishing touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature-13404-hide-the-influenza-disease

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 75e5985 and 77e5b61.

📒 Files selected for processing (1)
  • sormas-api/src/main/java/de/symeda/sormas/api/Disease.java (2 hunks)

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@obinna-h-n obinna-h-n merged commit 930050a into development Sep 14, 2025
3 of 9 checks passed
@obinna-h-n obinna-h-n deleted the feature-13404-hide-the-influenza-disease branch September 14, 2025 16:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hide the Influenza disease

1 participant