mitodl / micromasters

Portal for learners and course teams to access MITx Micromasters® programs
https://mm.mit.edu
BSD 3-Clause "New" or "Revised" License
28 stars 16 forks source link

Dashboard: Adding "You passed this course" message with no certificates #5310

Closed annagav closed 1 year ago

annagav commented 1 year ago

Pre-Flight checklist

What's this PR do?

Update course status messages to show the message "You passed the course." for recent DEDP courses that that don't have a certificate.

How should this be manually tested?

Create a passing FinalGrade for a course run that has a start date after September 1st, 2022. In the learner dashboard it should show a message the user passed the course.

Screen Shot 2023-02-22 at 8 13 03 AM
codecov-commenter commented 1 year ago

Codecov Report

Merging #5310 (70c770c) into master (9ffef4e) will increase coverage by 4.11%. The diff coverage is 100.00%.

:exclamation: Current head 70c770c differs from pull request most recent head 6b6334a. Consider uploading reports for the commit 6b6334a to get more accurate results

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##           master    #5310      +/-   ##
==========================================
+ Coverage   93.61%   97.72%   +4.11%     
==========================================
  Files         499      299     -200     
  Lines       22975    13979    -8996     
  Branches      966        0     -966     
==========================================
- Hits        21508    13661    -7847     
+ Misses       1360      318    -1042     
+ Partials      107        0     -107     
Impacted Files Coverage Δ
...tic/js/components/CouponNotificationDialog_test.js 100.00% <ø> (ø)
static/js/factories/dashboard.js 100.00% <ø> (ø)
.../js/components/dashboard/courses/StatusMessages.js 93.47% <100.00%> (-0.14%) :arrow_down:
...omponents/dashboard/courses/StatusMessages_test.js 100.00% <100.00%> (ø)
dashboard/api.py
dashboard/utils.py
exams/api.py
exams/management/commands/list_paid_learners.py
dashboard/factories.py
discussions/urls.py
... and 194 more

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