Skip to content

[WIDP] Properly replaces analytics completeness SQL query#78

Closed
idelcano wants to merge 1 commit into
2.41.3from
fix_replace_completeness
Closed

[WIDP] Properly replaces analytics completeness SQL query#78
idelcano wants to merge 1 commit into
2.41.3from
fix_replace_completeness

Conversation

@idelcano

@idelcano idelcano commented Mar 6, 2025

Copy link
Copy Markdown

Required by https://app.clickup.com/t/86982wug3
Related: #77

Motivation: SQL for completeness analytics is wrong.
Fix (cherry pick): 446a324

@idelcano idelcano requested a review from tokland March 6, 2025 19:18
@tokland tokland changed the title manual cherry-pick from https://github.com/dhis2/dhis2-core/pull/1985… [WIDP] Properly replaces analytics completeness SQL query Mar 11, 2025

@tokland tokland left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I renamed the title to the standard format used in this repo.

Regarding the missing commit, there are different ways of finding the actual commit in the repo. One is this: git log --all --ancestry-path 82dc8c0..2.41 and search for the commit. Another: git blame FILE and search the commit.

The final commit is: 446a324. We can cherry-pick it.

limit 1;""";
replace(sql, Map.of("startDate", toLongDate(startDate), "endDate", toLongDate(endDate)));
limit 1;""", Map.of("startDate", toLongDate(startDate),
"endDate", toLongDate(endDate)));

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@ifoche

ifoche commented Jun 4, 2025

Copy link
Copy Markdown
Member

No longer needed as this is already included in 2.41.4 by official code from UiO

@ifoche ifoche closed this Jun 4, 2025
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