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

Answer overwritten when multiple users edit the same question #1134

Open
AliceWi opened this issue Aug 23, 2024 · 4 comments
Open

Answer overwritten when multiple users edit the same question #1134

AliceWi opened this issue Aug 23, 2024 · 4 comments
Assignees

Comments

@AliceWi
Copy link

AliceWi commented Aug 23, 2024

Description / Beschreibung

If two users answer a question simultaneously and then click "Proceed," only the response of the user who clicked "Proceed" first will be saved.

Expected behaviour / Erwartetes Verhalten

Based on the issue #626 and the release notes of 2.1.0, I expect the following:

Conflicts will be prevented when users attempt to edit the same values simultaneously.

Steps to reproduce / Schritte zum Reproduzieren

  1. User 1 edits Question A in RDMO.
  2. User 2 edits Question A in RDMO.
  3. User 1 clicks "Proceed".
  4. User 2 clicks "Proceed" after User 1.
  5. Result: Question A contains the answer from User 1.

Context / Kontext

RDMO Version 2.1.3

References / Verweise

@jochenklar
Copy link
Member

Hi @AliceWi! In your example, does User2 get a message that the value is not saved? If yes, that is (at least my) expected bahavior. If not, this might be a bug which is already fixed, but only in the upcoming release.

@jochenklar jochenklar self-assigned this Sep 3, 2024
@AliceWi
Copy link
Author

AliceWi commented Sep 10, 2024

Hi @jochenklar! I double-checked and noticed that the two "Proceed" Buttons (under the questions and on the right side under the progress bar) have different behaviours: The Proceed Button under the questions works as expected. However, the Proceed Button under the progress bar continues to the next page regardless of the warning. As a result, the user's changes are lost and the warning only appears for a split second, with that likely going unnoticed.

@jochenklar
Copy link
Member

This is a bit odd, the proceed button on the right works a bit different as the blue one on the bottom, but both should save the input. Is the question kind of special?

@jochenklar
Copy link
Member

Never mind, I found it. The error message is shown, but then the page is changed anyway. The same is probably the case if you use the navigation. I will look for a fix.

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

No branches or pull requests

2 participants