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

Error when removing a user from an evaluation #4332

Closed
Tracked by #4364
chvp opened this issue Jan 19, 2023 · 4 comments
Closed
Tracked by #4364

Error when removing a user from an evaluation #4332

chvp opened this issue Jan 19, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@chvp
Copy link
Member

chvp commented Jan 19, 2023

We got a few emails about errors happening during the removal of a student from an evaluation.

Stack trace from an email:

Mysql2::Error: Cannot add or update a child row: a foreign key constraint fails (`dodona`.`feedbacks`, CONSTRAINT `fk_rails_be75ac5cac` FOREIGN KEY (`evaluation_user_id`) REFERENCES `evaluation_users` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT)
  app/controllers/evaluations_controller.rb:139:in `remove_user'

Search for request id c7598605-f2de-45d8-949a-d00e2c843f5c in the error emails for more context.

@chvp chvp added bug Something isn't working medium priority Things we want to see implemented relatively soon labels Jan 19, 2023
@jorg-vr
Copy link
Contributor

jorg-vr commented Jan 26, 2023

I have failed to reproduce this issue.

It has only happened on one occurrence, for one evaluation (With multiple users)

I suggest we ignore it until it happens again

@bmesuere
Copy link
Member

I also tried without success on mestra

@jorg-vr jorg-vr removed the medium priority Things we want to see implemented relatively soon label Jan 27, 2023
@bmesuere
Copy link
Member

@jorg-vr I think this can be closed since it was possibly related to #4359

Did we investigate why there were so many duplicates in the database? There's probably a button somewhere we should disable after clicking or so.

@jorg-vr
Copy link
Contributor

jorg-vr commented Feb 13, 2023

I am unsure if it is actually related. This issue is caused by a link to feedbacks from evaluation user. (So although both are evaluation related, it are totally different tables)

An evaluation user can have many feebacks and the relation is correctly set to dependent destroy. So it does not look like a similar issue, as the cause in the other pr was that one series should only have one evaluation (While multiple where created)

On the investigation:
I just tested it on naos. The button is not disabled. But clicking three times very fast (with slow internet), results in two requests failing in the background, with the user only noticing the succesful one. (Unless they are looking at their network panel)
image
So I would not spent much more time on this. This flow will probably receive a rework in #4364

Conclusion: I would close this issue, and pick it up again if it ever pops up again. Because it only happened once and we cannot reproduce it, it is probably an unlikely edge case and we should not spend to much time on it

@jorg-vr jorg-vr closed this as completed Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

3 participants