Skip to content

feat: Order rule action by new priority field [DHIS2-20758] - #172

Merged
enricocolasante merged 1 commit into
masterfrom
DHIS2-20758
Jan 21, 2026
Merged

enricocolasante merged 1 commit into
masterfrom
DHIS2-20758

Conversation

@enricocolasante

@enricocolasante enricocolasante commented Jan 16, 2026 •

Copy link
Copy Markdown
Contributor

Use new priority field in RuleAction to order List<RuleEffect> returned by evaluate method.

Rules already had a priority field and the evaluation was already ordered using it, now we have the same logic for RuleActions.

Smaller values of priority will be evaluated first, null priority is evaluated last, as it is already happening for Rules.

The change in the API is a breaking change for Java API but for Kotlin and Js (?) it is not a breaking change because the default value is null and the parameter was added as last parameter.

@enricocolasante
enricocolasante marked this pull request as ready for review January 19, 2026 16:43

@zubaira zubaira left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@enricocolasante
enricocolasante merged commit 4d21733 into master Jan 21, 2026
2 checks passed
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.

3 participants