data-visualizer-app icon indicating copy to clipboard operation
data-visualizer-app copied to clipboard

fix: fetch latest visualization before renaming so not to overwrite newer changes

Open jenniferarnesen opened this issue 6 months ago • 2 comments

Fixes DHIS2-19506

Description

Fetch the visualization and apply name and description to that object, which is then used in the rename PUT request. In the app, only name and description are updated, which means the app's copy of the visualization could still be out of date. But that's a different problem that needs a different solution.


Quality checklist

  • [ ] Dashboard tested N/A
  • [x] Tests added (Cypress and/or Jest)
  • [ ] Docs added N/A
  • [ ] Global shell tested N/A
  • [ ] d2-ci dependency replaced Analytics 1777
  • [ ] Tester sign-off (name)

jenniferarnesen avatar Apr 23 '25 11:04 jenniferarnesen

🚀 Deployed on https://pr-3386.data-visualizer.netlify.dhis2.org

dhis2-bot avatar Apr 23 '25 11:04 dhis2-bot

:tada: This PR is included in version 101.2.3 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

dhis2-bot avatar Jun 02 '25 11:06 dhis2-bot