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

Trying to get votes summary for a user might result in server error if one of the posts are somehow destroyed #1488

Open
Oaphi opened this issue Dec 15, 2024 · 0 comments · May be fixed by #1491
Assignees
Labels
area: html/css/js Changes to front-end code area: ruby Changes to server-side code complexity: easy Issues that should take limited effort to resolve/fix/build.

Comments

@Oaphi
Copy link
Member

Oaphi commented Dec 15, 2024

Noticed live on Writing Codidact. Trying to open the vote summary tab of the system user results in server error 500. This is most likely (repro'd locally) is due to a missing post_id on one (or more) of the retained votes (the column is nullable). While it's expected behavior, the vote list doesn't have checks for missing posts, hence the error.

@Oaphi Oaphi self-assigned this Dec 15, 2024
@Oaphi Oaphi added area: ruby Changes to server-side code area: html/css/js Changes to front-end code complexity: easy Issues that should take limited effort to resolve/fix/build. labels Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: html/css/js Changes to front-end code area: ruby Changes to server-side code complexity: easy Issues that should take limited effort to resolve/fix/build.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant