Skip to content

Commit

Permalink
Merge branch 'qa' into feature/MUWM-5233
Browse files Browse the repository at this point in the history
  • Loading branch information
fanglinfang authored Aug 14, 2024
2 parents 158d333 + 4712329 commit d6a5093
Show file tree
Hide file tree
Showing 20 changed files with 104 additions and 57 deletions.
2 changes: 1 addition & 1 deletion docker/prod-values.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
autoscaling:
enabled: true
minReplicas: 3
maxReplicas: 100
maxReplicas: 120
targetAverageUtilization: 100
resources:
limits:
Expand Down
2 changes: 1 addition & 1 deletion myuw/dao/iasystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ def summer_term_overlaped(request, given_section):
current summer term in the request
"""
current_summer_term = get_current_summer_term(request)
if given_section is None or current_summer_term is None:
if given_section is None or not current_summer_term:
return True
return (given_section.is_same_summer_term(current_summer_term) or
given_section.is_full_summer_term() and
Expand Down
7 changes: 4 additions & 3 deletions myuw/dao/term.py
Original file line number Diff line number Diff line change
Expand Up @@ -307,9 +307,9 @@ def get_current_summer_term(request):
or None if it is not a summer quarter
"""
if not is_in_summer_quarter(request):
return None
eod_aterm = get_current_quarter(request).get_eod_summer_aterm()
if get_comparison_datetime(request) > eod_aterm:
return "" # MUWM-5350 empty string
bterm_first_date = get_current_quarter(request).bterm_first_date
if get_comparison_date(request) >= bterm_first_date:
return "b-term"
else:
return "a-term"
Expand Down Expand Up @@ -526,6 +526,7 @@ def add_term_data_to_context(request, context):
compare <= cur_term.last_final_exam_date):
context['is_finals'] = True

context['summer_term'] = get_current_summer_term(request)
context['first_day'] = cur_term.first_day_quarter
context['last_day'] = cur_term.last_day_instruction
context["first_day_quarter"] = cur_term.first_day_quarter
Expand Down
1 change: 0 additions & 1 deletion myuw/dao/visual_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import logging
from myuw.dao.registration import get_schedule_by_term
from myuw.dao.instructor_schedule import get_instructor_schedule_by_term
from myuw.dao.term import get_current_quarter, get_current_summer_term
from myuw.dao.campus_building import get_building_by_code
from restclients_core.exceptions import DataFailureException
from dateutil.relativedelta import *
Expand Down
3 changes: 2 additions & 1 deletion myuw/data/category_links_import.csv
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ PageAcademics,Grades & Transcripts,all,https://www.washington.edu/uaa/advising/g
PageAcademics,Grades & Transcripts,all,https://sdb.admin.uw.edu/sisStudents/uwnetid/grades.aspx,Grade Report,,,,,,,yes,,,,,,,,,,,,,
PageAcademics,Grades & Transcripts,all,https://apps.registrar.washington.edu/credential_solutions_authentication/public/ce.php,Order Official Transcripts,,,,,,,yes,,,,,,,,,,,,,
PageAcademics,Grades & Transcripts,all,https://sdb.admin.uw.edu/students/uwnetid/unofficial.asp,Unofficial Transcript,,,,,,,yes,,,,,,,,,,,,,
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,,,,,,,,,,,,,
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,,,,,,,,,,,,,
PageAcademics,Graduation,grad,https://grad.uw.edu/current-students/enrollment-through-graduation/graduation-requirements/,Graduation Requirements (Graduate),,,,,,,no,,,,,,,,,,,,,
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,,,,,,,,,,,,,
PageAcademics,Tools & Software,all,https://itconnect.uw.edu/wares/uware/tableau-software/,Tableau Data Analysis Software,,,,,,,no,,,,,,,,,,,,,
PageAcademics,Tools & Software,all,https://uw.hosted.panopto.com/,Panopto,,,,,,,yes,,,,,,,,,,,,,
Expand Down
10 changes: 0 additions & 10 deletions myuw/data/links.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,6 @@
"on_for_pce":false,
"restrict_to_campus":null
},
{
"id":21,
"title":"Catalyst Web Tools",
"url":"https://catalyst.uw.edu/",
"on_for_employees":false,
"on_for_undergrad":true,
"on_for_gradstudent":true,
"on_for_pce":false,
"restrict_to_campus":null
},
{
"id":30,
"title":"Degree Audit Reporting System (DARS)",
Expand Down
2 changes: 0 additions & 2 deletions myuw/data/resource_link_import.csv
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Academics,Registration,all,https://www.degreereg.uw.edu/user-guide,How to Regist
Academics,Rights and Responsibilities,all,http://www.washington.edu/students/reg/ferpa.html,Family Educational Rights and Privacy Act (FERPA) – Privacy of Student Information,,,,,,,no
Academics,Rights and Responsibilities,all,,,http://www.washington.edu/cssc/student-conduct-overview/student-code-of-conduct/,Student Conduct Code,https://www.uwb.edu/student-affairs/studentconduct,Student Conduct and Responsibility,https://www.tacoma.uw.edu/student-conduct/student-code,Student Conduct Code,no
Academics,Tools and Software,all,http://canvas.uw.edu/,Canvas LMS,,,,,,,no
Academics,Tools and Software,all,https://catalyst.uw.edu/,Catalyst Web Tools,,,,,,,no
Academics,Tools and Software,all,https://notify.uw.edu/,Notify.UW,,,,,,,no
Academics,Tools and 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
Academics,Tools and Software,all,http://grad.uw.edu/for-students-and-post-docs/mygrad-program/,MyGrad – Graduate School Portal,,,,,,,no
Expand Down Expand Up @@ -153,7 +152,6 @@ Teaching,Grading,all,https://gradepage.uw.edu,GradePage,,,,,,,no
Teaching,Grading,all,https://apps.registrar.washington.edu/grade-change/pages/change.php,Change Submitted Grades,,,,,,,no
Teaching,Grading,all,,,https://registrar.washington.edu/staffandfaculty/grading-resources/,Faculty Resource on Grading,https://www.uwb.edu/registrar/policies/grading,Grading Policies,https://www.tacoma.uw.edu/uwt/registrar/grading-policy,Grading Policy,no
Teaching,Tools,all,https://canvas.uw.edu,Canvas LMS,,,,,,,no
Teaching,Tools,all,https://catalyst.uw.edu/,Catalyst Web Tools,,,,,,,no
Teaching,Tools,all,https://uw.hosted.panopto.com,Panopto Lecture Capture,,,,,,,no
Teaching,Tools,all,https://itconnect.uw.edu/learn/tools/polleverywhere/,Poll Everywhere,,,,,,,no
Teaching,Tools,all,https://coda.uw.edu,Course Stats,,,,,,,no
Expand Down
1 change: 1 addition & 0 deletions myuw/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
today: '{{ today|date:"l, F j, Y" }}',
year: '{{ year }}',
quarter: '{{ quarter }}',
summerTerm: '{{ summer_term }}',
breakYear: '{{ break_year }}',
breakQuarter: '{{ break_quarter }}',
isFinals: {{ is_finals|yesno:"true, false"}},
Expand Down
2 changes: 1 addition & 1 deletion myuw/test/dao/test_category_links.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def _test_ascii(self, s):

def test_get_all_links(self):
all_links = Res_Links.get_all_links()
self.assertEqual(len(all_links), 64)
self.assertEqual(len(all_links), 65)
val = URLValidator()
for link in all_links:
try:
Expand Down
12 changes: 10 additions & 2 deletions myuw/test/dao/test_term.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,20 +399,28 @@ def test_get_current_and_next_quarters(self):

def test_term_data_context_in_quarter(self):
request = get_request_with_date("2013-03-10")

context = {}
add_term_data_to_context(request, context)

self.assertEqual(context['year'], 2013)
self.assertEqual(context['quarter'], 'winter')
self.assertEqual(context['is_finals'], False)
self.assertEqual(context['is_break'], False)

self.assertEqual(context['summer_term'], "")
self.assertEqual(context['today'].year, 2013)
self.assertEqual(context['today'].month, 3)
self.assertEqual(context['today'].day, 10)
self.assertEqual(context['future_term'], "2013,spring")

request = get_request_with_date("2013-07-10")
context = {}
add_term_data_to_context(request, context)
self.assertEqual(context['summer_term'], "a-term")
request = get_request_with_date("2013-07-25")
context = {}
add_term_data_to_context(request, context)
self.assertEqual(context['summer_term'], "b-term")

def test_term_data_context_in_finals(self):
request = get_request_with_date("2013-03-22")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default {
...mapState({
student: (state) => state.user.affiliations.student,
quarter: (state) => state.termData.quarter,
summerTerm: (state) => state.termData.summer_term,
summerTerm: (state) => state.termData.summerTerm,
}),
...mapState('stud_schedule', {
course(state) {
Expand Down
3 changes: 0 additions & 3 deletions myuw_vue/components/_common/outage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@
<li v-if="isInstructor || isStudent" class="mb-1">
<a href="https://canvas.uw.edu/">Canvas LMS</a>
</li>
<li v-if="isInstructor || isStudent" class="mb-1">
<a href="https://catalyst.uw.edu/">Catalyst Web Tools</a>
</li>
<li v-if="isStudent" class="mb-1">
<a href="https://sdb.admin.uw.edu/students/uwnetid/register.asp"
>Student Registration</a>
Expand Down
4 changes: 2 additions & 2 deletions myuw_vue/components/academics/grad-committee.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
</div>
<div class="text-end">
<uw-link-button
href="https://grad.uw.edu/for-students-and-post-docs/mygrad-program/">
href="https://grad.uw.edu/mygrad-program/">
Go to MyGrad
</uw-link-button>
</div>
Expand All @@ -48,7 +48,7 @@
An error occurred and MyUW cannot load your committees request information
right now. In the meantime, try the
<a v-out="'MyGrad'"
href="https://grad.uw.edu/for-students-and-post-docs/mygrad-program/"
href="https://grad.uw.edu/mygrad-program/"
>MyGrad Program</a> page.
</template>
</uw-card>
Expand Down
4 changes: 2 additions & 2 deletions myuw_vue/components/academics/grad-status.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@

<div class="text-end">
<uw-link-button
href="https://grad.uw.edu/for-students-and-post-docs/mygrad-program/">
href="https://grad.uw.edu/mygrad-program/">
Go to MyGrad
</uw-link-button>
</div>
Expand All @@ -125,7 +125,7 @@
right now. In the meantime, try the
<a
v-out="'MyGrad'"
href="https://grad.uw.edu/for-students-and-post-docs/mygrad-program/"
href="https://grad.uw.edu/mygrad-program/"
>MyGrad Program</a> page.
</template>
</uw-card>
Expand Down
73 changes: 49 additions & 24 deletions myuw_vue/components/accounts/tuition-fees.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,14 @@
<h2 class="h4 mb-3 text-dark-beige myuw-font-encode-sans">Tuition &amp; Fees</h2>
</template>
<template #card-body>
<div style="text-align: center">
<div>
<div v-if="hasIacData" role="alert" class="alert alert-warning myuw-text-md">
<strong>Digital material fees are not included in tuition</strong>, they must be paid
separately below under "UW Day One Access Fees."
</div>
<div
v-if="hasTuitionDate && tuitionDateFromNow === 'Today' && tuiBalance > 0"
class="alert alert-danger text-danger"
class="alert alert-danger text-danger" style="text-align: center"
role="alert"
>
<font-awesome-icon :icon="faExclamationTriangle" /> Tuition and fees are due today.
Expand Down Expand Up @@ -41,14 +45,16 @@
<div class="flex-fill w-50">Student Fiscal Services</div>
<div class="flex-fill w-50 text-end">
<a href="https://sdb.admin.uw.edu/sisStudents/uwnetid/tuition.aspx"
>Tuition Statement</a>
>Tuition Statement</a
>
</div>
</div>
<div v-if="tuiBalance != 0" class="text-end">
<uw-link-button
v-out="'Make tuition payment'"
href="http://f2.washington.edu/fm/sfs/tuition/payment"
>Make payment</uw-link-button>
>Make payment</uw-link-button
>
</div>
</template>
</uw-card-status>
Expand All @@ -64,7 +70,8 @@
<div class="flex-fill w-50 text-end">
No payment needed<br />
<a href="https://sdb.admin.uw.edu/sisStudents/uwnetid/tuition.aspx"
>Tuition Statement</a>
>Tuition Statement</a
>
</div>
</div>
</template>
Expand All @@ -84,7 +91,8 @@
<uw-link-button
v-out="'Make Continuum College tuition payment'"
href="http://portal.continuum.uw.edu"
>Make payment</uw-link-button>
>Make payment</uw-link-button
>
</div>
</div>
</template>
Expand All @@ -103,7 +111,8 @@
v-out="'Continuum College Account Statement'"
href="http://portal.continuum.uw.edu"
class="myuw-text-md"
>Account Statement</a>
>Account Statement</a
>
</div>
</div>
</template>
Expand All @@ -129,17 +138,24 @@
<div class="alert alert-warning myuw-text-md" role="alert">
<p>
One or more of your enrolled courses provides you access to
<a :href="textbooksUrl">required digital materials</a>,
in Canvas, on or before the first day of class.
<a :href="textbooksUrl">required digital materials</a>, in Canvas, on or before the
first day of class.
</p>
<p class="mb-0">
<strong>To maintain access to these materials at Day One Access pricing,
you must pay for these materials</strong>.
<strong
>To maintain access to these materials at Day One Access pricing, you must pay for
these materials</strong
>.
<a href="https://www.ubookstore.com/day-one-access-faq"
>About the Day One Access Program</a>.
>About the Day One Access Program</a
>.
</p>
</div>
<uw-card-status>
<div v-if="dayOneAccessOverDue" role="alert" class="alert alert-danger myuw-text-md">
<strong>The payment deadline has passed.</strong> To learn about your options, please
email <a href="mailto:[email protected]">[email protected]</a>.
</div>
<uw-card-status v-else>
<template #status-label>Amount Due</template>
<template v-if="iacData.balance > 0" #status-value>
<span class="text-danger">${{ iacData.balance.toFixed(2) }}</span>
Expand All @@ -153,14 +169,15 @@
<uw-link-button
v-out="'Make bookstore payment'"
:href="iacData.bookstore_checkout_url"
>Make payment</uw-link-button>
>Make payment</uw-link-button
>
</div>
</div>
</template>
</uw-card-status>
</li>

<li v-if="hasIacData && iacData.balance > 0 && Boolean(iacData.payment_due_day)">
<li v-if="hasIacData && iacData.balance > 0 && !dayOneAccessOverDue">
<uw-card-status>
<template #status-label>Payment Due</template>
<template #status-value>
Expand All @@ -180,7 +197,8 @@
<a
v-out="'Give Tuition Account Access'"
href="https://sdb.admin.uw.edu/sisStudents/uwnetid/release.aspx"
>Give access to your tuition account and financial aid information</a>
>Give access to your tuition account and financial aid information</a
>
to parents or other third parties.
</p>
<p v-for="(msg, i) in pceTuitionDup" :key="i">
Expand All @@ -195,7 +213,8 @@
<a
href="https://sdb.admin.uw.edu/sisStudents/uwnetid/finaidstatus.aspx"
class="myuw-text-md"
>Financial Aid Status</a>
>Financial Aid Status</a
>
</li>
</ul>
</template>
Expand All @@ -209,11 +228,15 @@
<a
v-out="'Tuition Statement'"
href="https://sdb.admin.uw.edu/sisStudents/uwnetid/tuition.aspx"
>Tuition Statement</a> page.
>Tuition Statement</a
>
page.
</span>
<span v-else>
<a v-out="'Continuum College Tuition portal'" href="https://portal.continuum.uw.edu"
>PCE Tuition</a> portal.
>PCE Tuition</a
>
portal.
</span>
</template>
<template #card-error-extra>
Expand Down Expand Up @@ -344,18 +367,20 @@ export default {
},
hasIacData() {
// MUWM-5272
return (
(this.seaStud || this.botStud) && this.iacData &&
this.iacData.bookstore_checkout_url);
return (this.seaStud || this.botStud) && this.iacData && this.iacData.bookstore_checkout_url;
},
dayOneAccessDueDateFromNow() {
// MUWM-5272
return this.toFromNowDate(this.iacData.payment_due_day);
},
dayOneAccessOverDue() {
// MUWM-5351
return this.hasPassed(this.iacData.payment_due_day);
},
textbooksUrl() {
// MUWM-5272
return "/textbooks/" + this.iacData.year + ',' + this.iacData.quarter;
}
return '/textbooks/' + this.iacData.year + ',' + this.iacData.quarter;
},
},
created() {
if (this.isStudent) {
Expand Down
5 changes: 4 additions & 1 deletion myuw_vue/components/profile/student-profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
</template>
</ul>
</uw-card-property>
<!--
<uw-card-property v-if="showResidency" title="Residency">
{{residentDisplayString}}
<span v-if="hasPendingResidencyChange"><br>
Expand All @@ -51,8 +52,10 @@
href="https://registrar.washington.edu/students/residency/"
title="About residency statuses"
>About residency statuses</a>
</uw-card-property>
</uw-card-property>
-->
</uw-card-property-group>

<uw-card-property-group>
<uw-card-property title="Local Address">
<div v-if="localAddress">
Expand Down
Loading

0 comments on commit d6a5093

Please sign in to comment.