Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: Handle Indicators and Expressions [DHIS-18321] #19708

Merged
merged 3 commits into from
Jan 20, 2025

Conversation

david-mackessy
Copy link
Contributor

Summary

The requirements for the category option combo merge keep coming in :)
These 2 new scenarios are places in the DB where COC refs can be held within plain string values, which explains why they were originally missed (domain knowledge).

This PR includes handling the refs for these types and their properties:

  • Indicator
    • numerator (plain string)
    • denominator (plain string)
  • Expression
    • expression (plain string)

The merge executes an sql update using the postgres function replace which replaces all occurrences of a string with another string.

Testing

Automated

E2E tests added for each scenario.

@david-mackessy david-mackessy merged commit 0936fa2 into master Jan 20, 2025
17 checks passed
@david-mackessy david-mackessy deleted the DHIS2-18321-update2 branch January 20, 2025 07:55
luciano-fiandesio pushed a commit that referenced this pull request Jan 20, 2025
* feat: Handle Indicator numerator denominator refs [DHIS2-18321]

* feat: Handle Expressions wth source COC refs [DHIS2-18321]

* add javadoc
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants