Skip to content

Fix bug in 2 concurrent user editing proposal - #1749

Open
zacharyjhankin wants to merge 1 commit into
allow-2-users-to-edit-questionairyfrom
fix-2-edit-id-bug
Open

Fix bug in 2 concurrent user editing proposal#1749
zacharyjhankin wants to merge 1 commit into
allow-2-users-to-edit-questionairyfrom
fix-2-edit-id-bug

Conversation

@zacharyjhankin

Copy link
Copy Markdown
Collaborator

There is a bug in this code where if you edit a instrument picker question when someone else edits it then the answerId gets miss-matched with the backend causing problems on render.

Specifically if you have personA and personB editing the same proposal where the answerId of a question is for example 100. When personA presses save, the backend deletes the entry with 100 in it, and saves a new answer with 101 as the answerId. Then when personB presses save they get a popup showing both answers but the renderer is passed two Ids, 101 and 100 for the new answer and old answer. as 100 no longer exists we get an error saying that it could't find the call from answer id 100. Because 100 no longer exists.

image image

@zacharyjhankin
zacharyjhankin requested a review from a team as a code owner August 26, 2026 08:51
@zacharyjhankin
zacharyjhankin requested review from SourangshuSTFC and TCMeldrum and removed request for a team August 26, 2026 08:51
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