Skip to content

Comments

[SNT-310] Add ScenarioRule to admin + fix serializers#196

Merged
tdethier merged 2 commits intomainfrom
SNT-310_fix-serializer-and-scenario-rule-admin
Feb 20, 2026
Merged

[SNT-310] Add ScenarioRule to admin + fix serializers#196
tdethier merged 2 commits intomainfrom
SNT-310_fix-serializer-and-scenario-rule-admin

Conversation

@tdethier
Copy link
Member

@tdethier tdethier commented Feb 20, 2026

What problem is this PR solving?

Add ScenarioRule to admin + fix serializers

Related JIRA tickets

SNT-310

Changes

  • Add ScenarioRule to Django admin panel
  • fix list & retrieve ScenarioRule serializers (missing field)

How to test

  • Have a working SNT setup
  • Create a scenario
  • Go to the admin panel and see if there's a section for creating ScenarioRules
  • Create a ScenarioRule for your new scenario
    • optional: example of valid matching_criteria: {"and": [{"==": [{"var": 2}, 4]}]}
  • Go to api/snt_malaria/scenario_rules/?scenario<your_scenario_id> ➡️ you should see the coverage you input

Print screen / video

image image

Notes

/

Doc

Tell us where the doc can be found (docs folder, wiki, in the code...).

@tdethier tdethier self-assigned this Feb 20, 2026
@tdethier tdethier added enhancement New feature or request bug Something isn't working labels Feb 20, 2026
Copy link
Contributor

@Bewi Bewi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tdethier tdethier merged commit d54db04 into main Feb 20, 2026
2 checks passed
@tdethier tdethier deleted the SNT-310_fix-serializer-and-scenario-rule-admin branch February 20, 2026 15:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants