Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

fix: Use SqlBuilder for if-then-else logic [DHIS2-18417] #19472

Merged
merged 181 commits into from
Dec 16, 2024

Conversation

larshelge
Copy link
Member

@larshelge larshelge commented Dec 15, 2024

Moves the conditional if-then-else logic behind SqlBuilder to allow for differences across analytics databases.

@larshelge larshelge changed the title [DRAFT] fix: [DHIS2-18417] fix: Use SqlBuilder for it-then-else logic [DHIS2-18417] Dec 16, 2024
@larshelge larshelge requested review from luciano-fiandesio, maikelarabori and gnespolino and removed request for maikelarabori December 16, 2024 08:51
@larshelge larshelge changed the title fix: Use SqlBuilder for it-then-else logic [DHIS2-18417] fix: Use SqlBuilder for if-then-else logic [DHIS2-18417] Dec 16, 2024
Copy link
Contributor

@gnespolino gnespolino left a comment

Choose a reason for hiding this comment

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

Don't we have multiple choices "case"? Would be nice supporting those as well

@larshelge
Copy link
Member Author

larshelge commented Dec 16, 2024

We have multi-if statements in some places but I plan to create another overloaded method for that later.

@larshelge larshelge requested a review from gnespolino December 16, 2024 09:17
@larshelge larshelge merged commit 5c7bd27 into master Dec 16, 2024
16 checks passed
@larshelge larshelge deleted the refactor-DHIS2-18417 branch December 16, 2024 09:21
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