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

refactor: Replace without specifying variables to qualify [DHIS2-16705] #18962

Merged
merged 6 commits into from
Oct 31, 2024

Conversation

larshelge
Copy link
Member

@larshelge larshelge commented Oct 30, 2024

This PR makes the replaceAndQualify method better, but removing the unnecessary requirement of specifying the names of variables to be qualified. Instead, the method looks at the specified variable name/value mapping, and then qualifies remaining variables. This will simplify the handling of SQL statements for populating the analytics database tables. See DHIS2-16705.

Removes unused method.

Adds unit tests.

@larshelge larshelge changed the title refactor: Replace and qualify without specifying variables to qualify [DHIS2-16705] refactor: Replace without specifying variables to qualify [DHIS2-16705] Oct 30, 2024
Copy link

@maikelarabori maikelarabori added the run-api-analytics-tests Enables analytics e2e tests label Oct 30, 2024
@larshelge larshelge merged commit d2dfbdb into master Oct 31, 2024
18 checks passed
@larshelge larshelge deleted the lars-dev branch October 31, 2024 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-api-analytics-tests Enables analytics e2e tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants