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

[BUG FIX] [MER-4262] 500 internal server error when accessing assessment settings #5441

Conversation

eliknebel
Copy link
Contributor

https://eliterate.atlassian.net/browse/MER-4262

Fixes an issue where when logged in as an admin, the assessment settings page throws a 500 error.

The issue was caused by the result user of Mount.for in SettingsLive overwriting the current_user assigns with an Author (when logged in admin account). This was causing some of the UserAuth logic to break.

This was originally being worked on as part of MER-4262, but since there is a separate ticket targeted for this specific issue I am submitting this fix for MER-4262 and any additional work done for MER-4262 will be tracked by that Jira ticket and completed with another PR.

eliknebel and others added 3 commits February 25, 2025 16:10
…t-assessment-settings' into MER-4262-500-Internal-Server-Error-when-accessing-Assessment-Settings-in-Student-Delivery-LTI-Canvas-in-QA
Copy link
Contributor

@simonchoxx simonchoxx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have tested the changes locally. I can enter the view correctly as an Admin.

However, I find that there are some issues when trying to modify some settings as Admin (the liveview crashes).

I think the problem is happening when saving the changes.

I'm not sure if it should be fixed in this PR or in some other PR (maybe it would be good to fix it in this PR as it should not be too expensive).

assessment_settings.mov

@eliknebel
Copy link
Contributor Author

Good catch, there was an issue related to this view expecting an Author to be loaded into session context. I fixed the issue.

@eliknebel eliknebel requested a review from simonchoxx February 26, 2025 16:11
Copy link
Contributor

@simonchoxx simonchoxx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work 🚀

@simonchoxx simonchoxx merged commit 0801588 into master Feb 26, 2025
5 checks passed
@simonchoxx simonchoxx deleted the MER-4262-500-Internal-Server-Error-when-accessing-Assessment-Settings-in-Student-Delivery-LTI-Canvas-in-QA branch February 26, 2025 16:34
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