mitodl / micromasters

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

Updating usages of fin_aid_availability #5232

Closed annagav closed 1 year ago

annagav commented 2 years ago

What are the relevant tickets?

Fix https://github.com/mitodl/micromasters/issues/5227

What's this PR do?

Updated all usages of the program field financial_aid_availability, that are not related to financial aid so much as much as to the existence of exams, combined final grades, and payments on our MM portal for courses. In the past all of these were attributes of only one program: DEDP. But now that we are switching the payment system off, and financial aid is no longer available.

How should this be manually tested?

Run the app, nothing should break. Go the the dashboard make sure everything works. You need to create some exam runs for any courses in your program. The "Digital Learning" program by default has 'financial_aid_availability' turned on.

from courses.models import *
from exams.factories import *
course = Course.objects.filter(title='Digital Learning 100').first()
exam_run = ExamRunFactory.create(course=course, authorized=True, scheduling_past=False, scheduling_future=False)
codecov-commenter commented 1 year ago

Codecov Report

Merging #5232 (a2875a9) into master (6917917) will decrease coverage by 0.01%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #5232      +/-   ##
==========================================
- Coverage   93.73%   93.71%   -0.02%     
==========================================
  Files         501      501              
  Lines       23226    23229       +3     
  Branches     1427      962     -465     
==========================================
  Hits        21770    21770              
- Misses       1351     1353       +2     
- Partials      105      106       +1     
Impacted Files Coverage Δ
static/js/components/ProgressWidget.js 95.83% <ø> (ø)
static/js/factories/dashboard.js 100.00% <ø> (ø)
dashboard/api.py 96.43% <100.00%> (+0.01%) :arrow_up:
dashboard/utils.py 95.98% <100.00%> (-1.32%) :arrow_down:

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