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 API: Show any certificate for course #5285

Closed annagav closed 1 year ago

annagav commented 1 year ago

What are the relevant tickets?

Related to https://github.com/mitodl/micromasters/issues/5275

What's this PR do?

In the dashboard api, look for a MM course certificate, if not found look for a certificate on edx. Removing the dependence on existence of exams.

How should this be manually tested?

Nothing should break

codecov-commenter commented 1 year ago

Codecov Report

Merging #5285 (83ef590) into master (d637c5b) will not change coverage. The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master    #5285   +/-   ##
=======================================
  Coverage   93.65%   93.65%           
=======================================
  Files         501      501           
  Lines       23125    23125           
  Branches      967      967           
=======================================
  Hits        21657    21657           
  Misses       1361     1361           
  Partials      107      107           
Impacted Files Coverage Δ
dashboard/api.py 96.43% <100.00%> (ø)

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