Skip to content

fix: fix download links for both LL and PT#241

Open
edoardo wants to merge 21 commits into
masterfrom
fix/download-links
Open

fix: fix download links for both LL and PT#241
edoardo wants to merge 21 commits into
masterfrom
fix/download-links

Conversation

@edoardo
Copy link
Copy Markdown
Member

@edoardo edoardo commented May 22, 2026

Description

Download links didn't work properly after the various changes in the analytics requests.
This PR adds fixes to the LL downloads and implements the PT download which was not in place.

For PT the "Advanced" sub-menu is also available, similar to ER/DV.

We need to verify the various downloads, especially the ones for PT, since there are differences in the way we build the analytics request with the Event Reports app.

There is also a fix for programStatus which was ignored when present in the vis obj, but needs to be taken into account and converted into a dimension in filters.

The PR also has some fixes to avoid a situation where the currentVis is updated but the previous analytics data is used when changing layout/outputType and clicking one of the action buttons.
This was especially problematic in PT where the PT engine would throw an error due to missing metadata.


Quality checklist

Add N/A to items that are not applicable and check them.


ToDos

  • verify the various downloads (this will have to be done later)
  • check with Jan if XLS and CSV are needed in the top section (table download type)

Screenshots

Download menu for LL:
Screenshot 2026-05-29 at 16 32 04

Download menu for PT:
Screenshot 2026-05-29 at 16 31 53

@edoardo edoardo requested a review from HendrikThePendric May 22, 2026 14:03
@dhis2-bot
Copy link
Copy Markdown

dhis2-bot commented May 22, 2026

🚀 Deployed on https://pr-241.event-visualizer.netlify.dhis2.org

@dhis2-bot dhis2-bot temporarily deployed to netlify May 22, 2026 14:03 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify May 26, 2026 14:31 Inactive
@edoardo edoardo force-pushed the fix/download-links branch from f9ad6c5 to 269c71a Compare May 28, 2026 08:48
@dhis2-bot dhis2-bot temporarily deployed to netlify May 28, 2026 08:49 Inactive
@edoardo edoardo changed the title Fix/download links fix: fix download links for both LL and PT May 28, 2026
@dhis2-bot dhis2-bot temporarily deployed to netlify May 28, 2026 12:22 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify May 28, 2026 12:55 Inactive
@edoardo edoardo force-pushed the fix/download-links branch from a8adf3f to 59b124e Compare June 1, 2026 07:26
@dhis2-bot dhis2-bot temporarily deployed to netlify June 1, 2026 07:27 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify June 1, 2026 08:52 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify June 1, 2026 10:28 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify June 1, 2026 13:46 Inactive
@edoardo edoardo marked this pull request as ready for review June 1, 2026 13:49
Copy link
Copy Markdown
Contributor

@HendrikThePendric HendrikThePendric left a comment

Choose a reason for hiding this comment

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

I've left a few suggestions. Nothing critical though.

Comment thread src/components/download-menu/advanced-sub-menu.tsx
Comment thread src/components/download-menu/use-download.ts Outdated
Comment thread src/components/plugin-wrapper/hooks/use-line-list-analytics-data.ts Outdated
Comment thread src/components/plugin-wrapper/line-list-plugin.tsx Outdated
@dhis2-bot dhis2-bot temporarily deployed to netlify June 2, 2026 08:45 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify June 2, 2026 10:47 Inactive
Copy link
Copy Markdown
Contributor

@HendrikThePendric HendrikThePendric left a comment

Choose a reason for hiding this comment

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

Small, suggestion but nothing critical

Comment thread src/store/current-vis-slice.ts Outdated
@dhis2-bot dhis2-bot temporarily deployed to netlify June 2, 2026 14:44 Inactive
@edoardo edoardo force-pushed the fix/download-links branch from a702cb9 to 572c62e Compare June 2, 2026 16:13
@dhis2-bot dhis2-bot temporarily deployed to netlify June 2, 2026 16:14 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify June 3, 2026 08:18 Inactive
@HendrikThePendric HendrikThePendric enabled auto-merge (squash) June 3, 2026 08:20
@dhis2-bot dhis2-bot temporarily deployed to netlify June 3, 2026 08:35 Inactive
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Jun 5, 2026

Quality Gate Failed Quality Gate failed

Failed conditions
1 New issue
1 New Code Smells (required ≤ 0)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

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