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

expired onboarding exam messaging fix #997

Merged
merged 1 commit into from
Nov 3, 2022

Conversation

ashultz0
Copy link
Contributor

@ashultz0 ashultz0 commented Nov 2, 2022

Currently expiring soon is displayed 28 days before expiration and forever afterwards. Adds an actual expired state for after.

Also clarifies the expring soon message which assumed other course, that was not necessarily true.

Also updates the take action lines when you do not have valid onboarding to make sure they appear for everything not currently valid or in process, and updates the submitted process lines to not appear for expired statuses.

This also requires expiration time updates provided in openedx/edx-proctoring#1088 to make sure that expiration time properly comes along with more exam states.

@ashultz0 ashultz0 marked this pull request as draft November 2, 2022 15:51
@ashultz0 ashultz0 force-pushed the ashultz0/proctoring-expiring branch 3 times, most recently from 327fb3c to 055f611 Compare November 2, 2022 16:05
@codecov
Copy link

codecov bot commented Nov 2, 2022

Codecov Report

Base: 84.13% // Head: 84.20% // Increases project coverage by +0.06% 🎉

Coverage data is based on head (2cae16b) compared to base (759d154).
Patch coverage: 100.00% of modified lines in pull request are covered.

❗ Current head 2cae16b differs from pull request most recent head d63ebe2. Consider uploading reports for the commit d63ebe2 to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #997      +/-   ##
==========================================
+ Coverage   84.13%   84.20%   +0.06%     
==========================================
  Files         264      264              
  Lines        4519     4539      +20     
  Branches     1158     1166       +8     
==========================================
+ Hits         3802     3822      +20     
  Misses        697      697              
  Partials       20       20              
Impacted Files Coverage Δ
src/course-home/outline-tab/messages.js 100.00% <ø> (ø)
...e-home/outline-tab/widgets/ProctoringInfoPanel.jsx 97.91% <100.00%> (+0.24%) ⬆️
src/index.jsx 0.00% <0.00%> (ø)
...ess-tab/course-completion/CompletionDonutChart.jsx 100.00% <0.00%> (ø)
...ess-tab/grades/grade-summary/GradeSummaryTable.jsx 100.00% <0.00%> (ø)
...b/grades/grade-summary/GradeSummaryTableFooter.jsx 100.00% <0.00%> (ø)
...ss-tab/grades/course-grade/CurrentGradeTooltip.jsx 94.44% <0.00%> (+0.32%) ⬆️
...ss-tab/grades/course-grade/PassingGradeTooltip.jsx 92.30% <0.00%> (+0.64%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@ashultz0 ashultz0 changed the title WIP sketch of expired onboarding fix expired onboarding exam messaging fix Nov 2, 2022
@ashultz0 ashultz0 marked this pull request as ready for review November 2, 2022 17:34
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.

👍

Copy link
Contributor

@alangsto alangsto left a comment

Choose a reason for hiding this comment

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

One small comment fix, but otherwise the logic looks good to me

@@ -77,11 +83,19 @@ function ProctoringInfoPanel({ intl }) {
return borderClass;
}

function isExpired(dateString) {
// Returns true if the expiration date is within 28 days
Copy link
Contributor

Choose a reason for hiding this comment

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

Should update this comment for expired, not expiring soon

Currently expiring soon is displayed 28 days before expiration
and forever afterwards. Adds an actual expired state for after.

Also clarifies the expring soon message which assumed other course,
that was not necessarily true.

Also updates the take action lines when you do not have valid
onboarding to make sure they appear for everything not currently valid
or in process, and updates the submitted process lines to not appear
for expired statuses.
@mattcarter mattcarter self-requested a review November 2, 2022 19:13
Copy link
Contributor

@mattcarter mattcarter left a comment

Choose a reason for hiding this comment

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

LGTM

  • code review
  • code execution

@ashultz0 ashultz0 merged commit 19d06d6 into master Nov 3, 2022
@ashultz0 ashultz0 deleted the ashultz0/proctoring-expiring branch November 3, 2022 13:26
arbrandes pushed a commit that referenced this pull request Nov 14, 2022
Currently expiring soon is displayed 28 days before expiration
and forever afterwards. Adds an actual expired state for after.

Also clarifies the expring soon message which assumed other course,
that was not necessarily true.

Also updates the take action lines when you do not have valid
onboarding to make sure they appear for everything not currently valid
or in process, and updates the submitted process lines to not appear
for expired statuses.
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.

4 participants