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

feat: hotfix to post-submit page for new ida #157

Merged
merged 3 commits into from
Nov 12, 2024

Conversation

ilee2u
Copy link
Contributor

@ilee2u ilee2u commented Nov 7, 2024

https://2u-internal.atlassian.net/browse/COSMO-530

After completing a Practice Proctoring exam with an LTI provider. Reloading the page or navigating to the Dashboard and back to the exam an emtpy-ish page is shown instead of the usual landing.

I found that this is due to us not having a component that loads for Practice Exams for attempts in the "verified" or "rejected" state. I copied over the Verified/RejectedProctoredExamInstructions components to be loaded in the case that the exam's type is PRACTICE & we're using the new exams ida as a hotfix.

Copy link

codecov bot commented Nov 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.31%. Comparing base (89d0b18) to head (8938d2f).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #157      +/-   ##
==========================================
+ Coverage   94.29%   94.31%   +0.02%     
==========================================
  Files          68       68              
  Lines        1086     1090       +4     
  Branches      299      302       +3     
==========================================
+ Hits         1024     1028       +4     
  Misses         57       57              
  Partials        5        5              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines 12 to +15
case ExamType.PROCTORED:
return <VerifiedProctoredExamInstructions />;
case ExamType.PRACTICE:
return <VerifiedProctoredExamInstructions />;
Copy link
Member

@rijuma rijuma Nov 7, 2024

Choose a reason for hiding this comment

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

Nit: Just for clarity, this could be written as:

Suggested change
case ExamType.PROCTORED:
return <VerifiedProctoredExamInstructions />;
case ExamType.PRACTICE:
return <VerifiedProctoredExamInstructions />;
case ExamType.PRACTICE:
case ExamType.PROCTORED:
return <VerifiedProctoredExamInstructions />;

Copy link
Contributor

@schenedx schenedx left a comment

Choose a reason for hiding this comment

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

👍

@ilee2u ilee2u merged commit 0de890c into main Nov 12, 2024
7 checks passed
@ilee2u ilee2u deleted the ilee2u/fix-new-ida-post-submit-page branch November 12, 2024 18:26
Copy link

🎉 This PR is included in version 3.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants