Skip to content

feat: add d2:log and d2:exponent to program rule expression builder [DHIS2-21809] [DHIS2-21983] - #1025

Open
karolinelien wants to merge 3 commits into
masterfrom
feat/DHIS2-21809-log-exponent-mma
Open

karolinelien wants to merge 3 commits into
masterfrom
feat/DHIS2-21809-log-exponent-mma

Conversation

@karolinelien

@karolinelien karolinelien commented Aug 18, 2026

Copy link
Copy Markdown

See https://dhis2.atlassian.net/browse/DHIS2-21809 and https://dhis2.atlassian.net/browse/DHIS2-21983

Summary

Test plan

  • Open a program rule expression field in MMA, confirm d2:log and d2:exponent appear in the Functions list and insert correctly
  • Confirm the two new entries do not appear in indicator, predictor, program indicator, or validation rule expression builders (they're scoped to programRuleElementTypes only)
  • yarn check-types / yarn test pass

AI Assisted

…DHIS2-21809]

Adds the two new grammar functions to the program rule function catalog
so they can be inserted from the expression builder sidebar.
@netlify

netlify Bot commented Aug 18, 2026

Copy link
Copy Markdown

Deploy Preview for dhis2-maintenance-app-beta ready!

Name Link
🔨 Latest commit 3c9457c
🔍 Latest deploy log https://app.netlify.com/projects/dhis2-maintenance-app-beta/deploys/6a96e9301a288900082a80f8
😎 Deploy Preview https://deploy-preview-1025.maintenance-app-beta.netlify.dhis2.org
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

karolinelien and others added 2 commits September 1, 2026 16:58
The base argument of d2:log is optional, so listing the function as
d2:log( <number> , <number> ) did not match the catalog convention of
showing required arguments only - d2:round is listed as
d2:round( <number> ) despite also taking an optional second argument.

d2:exponent keeps both arguments, which are genuinely required.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@sonarqubecloud

sonarqubecloud Bot commented Sep 1, 2026

Copy link
Copy Markdown

@karolinelien
karolinelien marked this pull request as ready for review September 1, 2026 15:09
@tomzemp
tomzemp requested a review from a team September 7, 2026 12:38
@karolinelien karolinelien changed the title feat: add d2:log and d2:exponent to program rule expression builder [DHIS2-21809] feat: add d2:log and d2:exponent to program rule expression builder [DHIS2-21809] [DHIS2-21983] Sep 9, 2026
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.

1 participant