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

fix: visualization deleted when saving it after copy (DHIS2-15722) #433

Merged
merged 11 commits into from
Nov 30, 2023

Conversation

edoardo
Copy link
Member

@edoardo edoardo commented Sep 8, 2023

Fixes DHIS2-15722

Requires dhis2/analytics#1573


Key features

  1. fix a bug that caused a newly copied visualization to be deleted when saving it again

Description

Refer to the ticket for the explanation on why it happened.
The PR fixes the issue by cleaning up the payload passed to the POST request for copying an existing visualization.

Copy link
Contributor

@martinkrulltott martinkrulltott left a comment

Choose a reason for hiding this comment

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

Fix looks good, some form of testing might be useful though?

@edoardo edoardo requested review from janhenrikoverland and removed request for janhenrikoverland September 15, 2023 12:05
@edoardo edoardo force-pushed the fix/ao-deleted-after-copy-DHIS2-15722 branch from 30a5dd2 to ba571ee Compare September 26, 2023 08:27
@dhis2-bot
Copy link
Contributor

dhis2-bot commented Sep 26, 2023

🚀 Deployed on https://pr-433--dhis2-line-listing.netlify.app

@dhis2-bot dhis2-bot temporarily deployed to netlify September 26, 2023 08:35 Inactive
@cypress
Copy link

cypress bot commented Sep 26, 2023

Passing run #2077 ↗︎

0 505 0 0 Flakiness 0

Details:

Merge 2a9162e into b0982fd...
Project: line-listing-app Commit: aaf1238012 ℹ️
Status: Passed Duration: 12:36 💡
Started: Nov 30, 2023 11:21 AM Ended: Nov 30, 2023 11:34 AM

Review all test suite changes for PR #433 ↗︎

@edoardo
Copy link
Member Author

edoardo commented Oct 3, 2023

Fix looks good, some form of testing might be useful though?

Added a Cypress test in DV.

@edoardo edoardo force-pushed the fix/ao-deleted-after-copy-DHIS2-15722 branch 2 times, most recently from ce27c86 to 52a5a76 Compare October 3, 2023 09:13
@dhis2-bot dhis2-bot temporarily deployed to netlify October 3, 2023 09:20 Inactive
@edoardo edoardo force-pushed the fix/ao-deleted-after-copy-DHIS2-15722 branch from 52a5a76 to 3f11932 Compare October 3, 2023 12:22
@edoardo edoardo requested a review from a team as a code owner October 3, 2023 12:22
@dhis2-bot dhis2-bot temporarily deployed to netlify October 3, 2023 12:26 Inactive
@edoardo edoardo force-pushed the fix/ao-deleted-after-copy-DHIS2-15722 branch from 3f11932 to b39ce77 Compare October 4, 2023 09:42
@dhis2-bot dhis2-bot temporarily deployed to netlify October 4, 2023 09:45 Inactive
package.json Outdated Show resolved Hide resolved
@edoardo edoardo added the on hold label Oct 6, 2023
@edoardo edoardo force-pushed the fix/ao-deleted-after-copy-DHIS2-15722 branch from b39ce77 to 65d6605 Compare October 26, 2023 11:05
@dhis2-bot dhis2-bot temporarily deployed to netlify October 26, 2023 11:10 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 10, 2023 08:05 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 23, 2023 12:03 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 23, 2023 12:29 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 30, 2023 09:03 Inactive
@janhenrikoverland janhenrikoverland changed the title fix: visualization deleted when saving it after copy DHIS2-15722 fix: visualization deleted when saving it after copy (DHIS2-15722) Nov 30, 2023
@edoardo edoardo removed the on hold label Nov 30, 2023
Copy link
Collaborator

@janhenrikoverland janhenrikoverland left a comment

Choose a reason for hiding this comment

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

Approved when tests added.

@dhis2-bot dhis2-bot temporarily deployed to netlify November 30, 2023 10:52 Inactive
@dhis2-bot dhis2-bot temporarily deployed to netlify November 30, 2023 11:03 Inactive
@edoardo edoardo merged commit f505c50 into master Nov 30, 2023
28 checks passed
@edoardo edoardo deleted the fix/ao-deleted-after-copy-DHIS2-15722 branch November 30, 2023 12:36
dhis2-bot added a commit that referenced this pull request Nov 30, 2023
## [100.11.1](v100.11.0...v100.11.1) (2023-11-30)

### Bug Fixes

* visualization deleted when saving it after copy (DHIS2-15722) ([#433](#433)) ([f505c50](f505c50))
@dhis2-bot
Copy link
Contributor

🎉 This PR is included in version 100.11.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants