Repository navigation
fix: send the skipTranslation param when saving a visualization - #3482
Merged
Merged
Conversation
The api only knows skipTranslation, so the misspelled skipTranslations was ignored and a save replaced the stored translations with the ones the app had loaded with the visualization. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Release check (trial)
|
Contributor
|
🚀 Deployed on https://pr-3482.data-visualizer.netlify.dhis2.org |
|
dhis2-bot
added a commit
that referenced
this pull request
Dec 1, 2026
## [101.6.8](v101.6.7...v101.6.8) (2026-12-01) ### Bug Fixes * send the skipTranslation param when saving a visualization ([#3482](#3482)) ([3685d4b](3685d4b))
Contributor
|
🎉 This PR is included in version 101.6.8 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
5 tasks
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Description
When saving a visualization the app sent
skipTranslations=true, but the api only knowsskipTranslation(singular, seeDefaultMetadataImportService.getParamsFromMapin dhis2-core). The misspelled parameter was silently ignored: it behaves exactly like sending no parameter.The app fetches
translationswith the visualization and sends them back in the save payload, so on every save (PUT) the stored translations were replaced with the ones the app had in memory. Two consequences:With the correct parameter the api leaves the stored translations alone on save.
Only saving an existing visualization (PUT) changes behaviour. The parameter is also sent on "Save as" (POST), but the api never stores payload translations on create, with or without the parameter, so the copy has no translations before and after this change.
skipSharingwas already spelled correctly.Same fix as dhis2/individual-data-visualizer-app#517. No Jira issue is linked yet.
Testing
Verified against live 2.41.11, 2.42.7.1 and 2.43.2.1 instances, with identical results on all three.
?skipTranslations=true&skipSharing=true(before)frfr,nbfr,nblost?skipTranslation=true&skipSharing=true(this PR)frfr,nbtranslations: []or omittedfr,nbfr,nbAll requests returned 200/201 with empty
errorReports; other changed fields were saved and sharing was untouched.In the app (build of master versus build of this branch, on 2.42; this branch also on 2.41 and 2.43):
Jest: 41 suites / 190 tests pass; the new spec fails against the master source. Cypress
saveAndRename.cy.jspasses locally (6/6).Not tested: 2.40 (no instance available; dhis2-core reads
skipTranslationon the 2.40 branch too) and non-admin users.Quality checklist
🤖 Generated with Claude Code