Skip to content

Fix 500 error when merging entities#2852

Open
bmonjoie wants to merge 3 commits intodevelopfrom
fix/WC2-913_500_when_merging_entities
Open

Fix 500 error when merging entities#2852
bmonjoie wants to merge 3 commits intodevelopfrom
fix/WC2-913_500_when_merging_entities

Conversation

@bmonjoie
Copy link
Copy Markdown
Member

What problem is this PR solving?

When merging entities with different form versions (and different question names), the merge fails with a 500 error.

Related JIRA tickets

WC2-913

Changes

Do not fail when trying to get the answer of a question which doesn't exist.

How to test

  1. Create an entity with one version of a form
  2. Change the form and rename a question
  3. Create another entity with the new form version (keep the answers the same for unchanged questions so that the analysis will flag them as duplicate)
  4. Launch a duplicate analysis on questions both forms have in common to find the duplicate
  5. Merge the duplicates

Notes

I will make a test later as this needs to be deployed as a hotfix rapidly.

@bmonjoie bmonjoie requested a review from beygorghor March 25, 2026 11:20
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.

2 participants