Skip to content

Commit 186d28b

Browse files
authored
Merge pull request #3131 from uw-it-aca/qa
Qa
2 parents 68b5d99 + a604d5d commit 186d28b

File tree

10 files changed

+24
-14
lines changed

10 files changed

+24
-14
lines changed

myuw/dao/iasystem.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def summer_term_overlaped(request, given_section):
6969
current summer term in the request
7070
"""
7171
current_summer_term = get_current_summer_term(request)
72-
if given_section is None or current_summer_term is None:
72+
if given_section is None or not current_summer_term:
7373
return True
7474
return (given_section.is_same_summer_term(current_summer_term) or
7575
given_section.is_full_summer_term() and

myuw/dao/term.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -307,9 +307,9 @@ def get_current_summer_term(request):
307307
or None if it is not a summer quarter
308308
"""
309309
if not is_in_summer_quarter(request):
310-
return None
311-
eod_aterm = get_current_quarter(request).get_eod_summer_aterm()
312-
if get_comparison_datetime(request) > eod_aterm:
310+
return "" # MUWM-5350 empty string
311+
bterm_first_date = get_current_quarter(request).bterm_first_date
312+
if get_comparison_date(request) >= bterm_first_date:
313313
return "b-term"
314314
else:
315315
return "a-term"
@@ -526,6 +526,7 @@ def add_term_data_to_context(request, context):
526526
compare <= cur_term.last_final_exam_date):
527527
context['is_finals'] = True
528528

529+
context['summer_term'] = get_current_summer_term(request)
529530
context['first_day'] = cur_term.first_day_quarter
530531
context['last_day'] = cur_term.last_day_instruction
531532
context["first_day_quarter"] = cur_term.first_day_quarter

myuw/dao/visual_schedule.py

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import logging
55
from myuw.dao.registration import get_schedule_by_term
66
from myuw.dao.instructor_schedule import get_instructor_schedule_by_term
7-
from myuw.dao.term import get_current_quarter, get_current_summer_term
87
from myuw.dao.campus_building import get_building_by_code
98
from restclients_core.exceptions import DataFailureException
109
from dateutil.relativedelta import *

myuw/data/category_links_import.csv

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ PageAcademics,Grades & Transcripts,all,https://www.washington.edu/uaa/advising/g
2727
PageAcademics,Grades & Transcripts,all,https://sdb.admin.uw.edu/sisStudents/uwnetid/grades.aspx,Grade Report,,,,,,,yes,,,,,,,,,,,,,
2828
PageAcademics,Grades & Transcripts,all,https://apps.registrar.washington.edu/credential_solutions_authentication/public/ce.php,Order Official Transcripts,,,,,,,yes,,,,,,,,,,,,,
2929
PageAcademics,Grades & Transcripts,all,https://sdb.admin.uw.edu/students/uwnetid/unofficial.asp,Unofficial Transcript,,,,,,,yes,,,,,,,,,,,,,
30-
PageAcademics,Graduation,all,,,https://registrar.washington.edu/students/graduation-diplomas/,Application for Graduation,https://www.uwb.edu/registrar/graduation/apply/,Applying for Graduation,https://www.tacoma.uw.edu/uwt/registrar/graduation-procedures,Applying to Graduate,no,,,,,,,,,,,,,
30+
PageAcademics,Graduation,ugrad,,,https://registrar.washington.edu/students/graduation-diplomas/,Application for Graduation (Undergraduate),https://www.uwb.edu/registrar/graduation/apply/,Applying for Graduation (Undergraduate),https://www.tacoma.uw.edu/uwt/registrar/graduation-procedures,Applying to Graduate (Undergraduate),no,,,,,,,,,,,,,
31+
PageAcademics,Graduation,grad,https://grad.uw.edu/current-students/enrollment-through-graduation/graduation-requirements/,Graduation Requirements (Graduate),,,,,,,no,,,,,,,,,,,,,
3132
PageAcademics,Tools & Software,all,,,https://scout.uw.edu/seattle,Scout: Discover the UW,https://scout.uw.edu/bothell,Scout: Discover the UW,https://scout.uw.edu/tacoma,Scout: Discover the UW,no,,,,,,,,,,,,,
3233
PageAcademics,Tools & Software,all,https://itconnect.uw.edu/wares/uware/tableau-software/,Tableau Data Analysis Software,,,,,,,no,,,,,,,,,,,,,
3334
PageAcademics,Tools & Software,all,https://uw.hosted.panopto.com/,Panopto,,,,,,,yes,,,,,,,,,,,,,

myuw/templates/base.html

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
today: '{{ today|date:"l, F j, Y" }}',
7575
year: '{{ year }}',
7676
quarter: '{{ quarter }}',
77+
summerTerm: '{{ summer_term }}',
7778
breakYear: '{{ break_year }}',
7879
breakQuarter: '{{ break_quarter }}',
7980
isFinals: {{ is_finals|yesno:"true, false"}},

myuw/test/dao/test_category_links.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def _test_ascii(self, s):
2020

2121
def test_get_all_links(self):
2222
all_links = Res_Links.get_all_links()
23-
self.assertEqual(len(all_links), 64)
23+
self.assertEqual(len(all_links), 65)
2424
val = URLValidator()
2525
for link in all_links:
2626
try:

myuw/test/dao/test_term.py

+10-2
Original file line numberDiff line numberDiff line change
@@ -399,20 +399,28 @@ def test_get_current_and_next_quarters(self):
399399

400400
def test_term_data_context_in_quarter(self):
401401
request = get_request_with_date("2013-03-10")
402-
403402
context = {}
404403
add_term_data_to_context(request, context)
405404

406405
self.assertEqual(context['year'], 2013)
407406
self.assertEqual(context['quarter'], 'winter')
408407
self.assertEqual(context['is_finals'], False)
409408
self.assertEqual(context['is_break'], False)
410-
409+
self.assertEqual(context['summer_term'], "")
411410
self.assertEqual(context['today'].year, 2013)
412411
self.assertEqual(context['today'].month, 3)
413412
self.assertEqual(context['today'].day, 10)
414413
self.assertEqual(context['future_term'], "2013,spring")
415414

415+
request = get_request_with_date("2013-07-10")
416+
context = {}
417+
add_term_data_to_context(request, context)
418+
self.assertEqual(context['summer_term'], "a-term")
419+
request = get_request_with_date("2013-07-25")
420+
context = {}
421+
add_term_data_to_context(request, context)
422+
self.assertEqual(context['summer_term'], "b-term")
423+
416424
def test_term_data_context_in_finals(self):
417425
request = get_request_with_date("2013-03-22")
418426

myuw_vue/components/_common/course/student/course-cards.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export default {
4444
...mapState({
4545
student: (state) => state.user.affiliations.student,
4646
quarter: (state) => state.termData.quarter,
47-
summerTerm: (state) => state.termData.summer_term,
47+
summerTerm: (state) => state.termData.summerTerm,
4848
}),
4949
...mapState('stud_schedule', {
5050
course(state) {

myuw_vue/components/academics/grad-committee.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
</div>
4040
<div class="text-end">
4141
<uw-link-button
42-
href="https://grad.uw.edu/for-students-and-post-docs/mygrad-program/">
42+
href="https://grad.uw.edu/mygrad-program/">
4343
Go to MyGrad
4444
</uw-link-button>
4545
</div>
@@ -48,7 +48,7 @@
4848
An error occurred and MyUW cannot load your committees request information
4949
right now. In the meantime, try the
5050
<a v-out="'MyGrad'"
51-
href="https://grad.uw.edu/for-students-and-post-docs/mygrad-program/"
51+
href="https://grad.uw.edu/mygrad-program/"
5252
>MyGrad Program</a> page.
5353
</template>
5454
</uw-card>

myuw_vue/components/academics/grad-status.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115

116116
<div class="text-end">
117117
<uw-link-button
118-
href="https://grad.uw.edu/for-students-and-post-docs/mygrad-program/">
118+
href="https://grad.uw.edu/mygrad-program/">
119119
Go to MyGrad
120120
</uw-link-button>
121121
</div>
@@ -125,7 +125,7 @@
125125
right now. In the meantime, try the
126126
<a
127127
v-out="'MyGrad'"
128-
href="https://grad.uw.edu/for-students-and-post-docs/mygrad-program/"
128+
href="https://grad.uw.edu/mygrad-program/"
129129
>MyGrad Program</a> page.
130130
</template>
131131
</uw-card>

0 commit comments

Comments
 (0)