diff --git a/Dockerfile b/Dockerfile index 30a369e2..355b5974 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG DJANGO_CONTAINER_VERSION=2.0.3 +ARG DJANGO_CONTAINER_VERSION=2.0.6 FROM us-docker.pkg.dev/uwit-mci-axdd/containers/django-container:${DJANGO_CONTAINER_VERSION} AS app-prebundler-container diff --git a/README.md b/README.md index e3c5ae0b..af604dd6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Compass -[![Build Status](https://github.com/uw-it-aca/compass/workflows/Build%2C%20Test%20and%20Deploy/badge.svg?branch=main)](https://github.com/uw-it-aca/compass/actions) +[![Build Status](https://github.com/uw-it-aca/compass/workflows/Build%2C%20Test%20and%20Deploy/badge.svg)](https://github.com/uw-it-aca/compass/actions) [![Coverage Status](https://coveralls.io/repos/github/uw-it-aca/compass/badge.svg?branch=main)](https://coveralls.io/github/uw-it-aca/compass?branch=main) An application for managing student advising information. diff --git a/compass/admin.py b/compass/admin.py index bb19924c..715b9375 100644 --- a/compass/admin.py +++ b/compass/admin.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/apps.py b/compass/apps.py index 7590a860..c235c899 100644 --- a/compass/apps.py +++ b/compass/apps.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/cache.py b/compass/cache.py index 25b63165..21ca5493 100644 --- a/compass/cache.py +++ b/compass/cache.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/context_processors.py b/compass/context_processors.py index b5314661..d3aac6e8 100644 --- a/compass/context_processors.py +++ b/compass/context_processors.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/dao/__init__.py b/compass/dao/__init__.py index 6be389f1..635715ba 100644 --- a/compass/dao/__init__.py +++ b/compass/dao/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/dao/contact.py b/compass/dao/contact.py index f21c6e4b..e6b42df6 100644 --- a/compass/dao/contact.py +++ b/compass/dao/contact.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.conf import settings diff --git a/compass/dao/csv.py b/compass/dao/csv.py index 1c082ad2..d2c7f483 100644 --- a/compass/dao/csv.py +++ b/compass/dao/csv.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from compass.dao.person import ( diff --git a/compass/dao/group.py b/compass/dao/group.py index 9f29c537..7ebc0a54 100644 --- a/compass/dao/group.py +++ b/compass/dao/group.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/dao/person.py b/compass/dao/person.py index 76b10517..71c4f45e 100644 --- a/compass/dao/person.py +++ b/compass/dao/person.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.db.models import CharField, OuterRef, Subquery, Value, F diff --git a/compass/dao/photo.py b/compass/dao/photo.py index 5eda6552..fc6a6680 100644 --- a/compass/dao/photo.py +++ b/compass/dao/photo.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 import random diff --git a/compass/dao/preferences.py b/compass/dao/preferences.py index 752ade3c..078e9cd2 100644 --- a/compass/dao/preferences.py +++ b/compass/dao/preferences.py @@ -1,5 +1,6 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 + from compass.models import AppUser, UserPreference diff --git a/compass/dao/rad_csv.py b/compass/dao/rad_csv.py index d1d3debb..cfb49a7a 100644 --- a/compass/dao/rad_csv.py +++ b/compass/dao/rad_csv.py @@ -1,5 +1,6 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 + import csv from io import StringIO from compass.models.rad_data import (CourseAnalyticsScores, diff --git a/compass/dao/storage.py b/compass/dao/storage.py index 8cfe3ebb..f5e526c3 100644 --- a/compass/dao/storage.py +++ b/compass/dao/storage.py @@ -1,5 +1,6 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 + from django.core.files.storage import default_storage from compass.models.rad_data import RADWeek from logging import getLogger diff --git a/compass/dao/term.py b/compass/dao/term.py index 2f1478c9..0ca6c98c 100644 --- a/compass/dao/term.py +++ b/compass/dao/term.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/exceptions.py b/compass/exceptions.py index a3d63f6c..093fb6b5 100644 --- a/compass/exceptions.py +++ b/compass/exceptions.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/logging.py b/compass/logging.py index 8dcc78d7..8e37299b 100644 --- a/compass/logging.py +++ b/compass/logging.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from logging import Filter diff --git a/compass/management/commands/create_token.py b/compass/management/commands/create_token.py index 020ff25a..c42f1d1d 100644 --- a/compass/management/commands/create_token.py +++ b/compass/management/commands/create_token.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.contrib.auth.models import User diff --git a/compass/management/commands/fix_student_syskey_padding.py b/compass/management/commands/fix_student_syskey_padding.py index a4672fa1..59d34078 100644 --- a/compass/management/commands/fix_student_syskey_padding.py +++ b/compass/management/commands/fix_student_syskey_padding.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/management/commands/initialize_db.py b/compass/management/commands/initialize_db.py index 38133dce..6ad38360 100644 --- a/compass/management/commands/initialize_db.py +++ b/compass/management/commands/initialize_db.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/management/commands/load_legacy_affiliations.py b/compass/management/commands/load_legacy_affiliations.py index d95cd0bc..5b786723 100644 --- a/compass/management/commands/load_legacy_affiliations.py +++ b/compass/management/commands/load_legacy_affiliations.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/management/commands/load_legacy_data.py b/compass/management/commands/load_legacy_data.py index f37923a7..29a45e84 100644 --- a/compass/management/commands/load_legacy_data.py +++ b/compass/management/commands/load_legacy_data.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/management/commands/load_legacy_eop_date.py b/compass/management/commands/load_legacy_eop_date.py index 66db6455..db11d59b 100644 --- a/compass/management/commands/load_legacy_eop_date.py +++ b/compass/management/commands/load_legacy_eop_date.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/management/commands/load_legacy_ic_visits.py b/compass/management/commands/load_legacy_ic_visits.py index 0bd6d812..f1115525 100644 --- a/compass/management/commands/load_legacy_ic_visits.py +++ b/compass/management/commands/load_legacy_ic_visits.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/management/commands/load_rad_data.py b/compass/management/commands/load_rad_data.py index 26513ae1..63f7edd7 100644 --- a/compass/management/commands/load_rad_data.py +++ b/compass/management/commands/load_rad_data.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/management/commands/process_omad_contacts.py b/compass/management/commands/process_omad_contacts.py index 9ee5eb56..4a569fed 100644 --- a/compass/management/commands/process_omad_contacts.py +++ b/compass/management/commands/process_omad_contacts.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.core.management.base import BaseCommand diff --git a/compass/models/__init__.py b/compass/models/__init__.py index aae6aa34..28388c4b 100644 --- a/compass/models/__init__.py +++ b/compass/models/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/models/rad_data.py b/compass/models/rad_data.py index d2d96db0..14a836f6 100644 --- a/compass/models/rad_data.py +++ b/compass/models/rad_data.py @@ -1,5 +1,6 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 + from django.db import models from django.core.exceptions import ObjectDoesNotExist from compass.dao.person import get_person_by_uwregid diff --git a/compass/routers.py b/compass/routers.py index 06a8f061..83844877 100644 --- a/compass/routers.py +++ b/compass/routers.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/serializers.py b/compass/serializers.py index 5e7a54a0..3a6485e9 100644 --- a/compass/serializers.py +++ b/compass/serializers.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/templatetags/vite.py b/compass/templatetags/vite.py index ec3ecdc3..26e53428 100644 --- a/compass/templatetags/vite.py +++ b/compass/templatetags/vite.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/tests/__init__.py b/compass/tests/__init__.py index b4078a96..ea4d51a2 100644 --- a/compass/tests/__init__.py +++ b/compass/tests/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.test import TestCase, Client diff --git a/compass/tests/commands/test_fix_student_syskey_padding.py b/compass/tests/commands/test_fix_student_syskey_padding.py index 3f168353..e73bfb13 100644 --- a/compass/tests/commands/test_fix_student_syskey_padding.py +++ b/compass/tests/commands/test_fix_student_syskey_padding.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/tests/commands/test_load_rad_data.py b/compass/tests/commands/test_load_rad_data.py index fd6e3e42..defd454d 100644 --- a/compass/tests/commands/test_load_rad_data.py +++ b/compass/tests/commands/test_load_rad_data.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/tests/commands/test_process_omad_contacts.py b/compass/tests/commands/test_process_omad_contacts.py index 39e1866c..3647fab9 100644 --- a/compass/tests/commands/test_process_omad_contacts.py +++ b/compass/tests/commands/test_process_omad_contacts.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/tests/dao/test_contact.py b/compass/tests/dao/test_contact.py index 61811f29..40aa41ac 100644 --- a/compass/tests/dao/test_contact.py +++ b/compass/tests/dao/test_contact.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/tests/dao/test_csv.py b/compass/tests/dao/test_csv.py index c0f737ca..2a983ae3 100644 --- a/compass/tests/dao/test_csv.py +++ b/compass/tests/dao/test_csv.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from compass.dao.csv import InsensitiveDictReader, StudentCSV diff --git a/compass/tests/dao/test_datetime.py b/compass/tests/dao/test_datetime.py index 4ff8f460..3c550014 100644 --- a/compass/tests/dao/test_datetime.py +++ b/compass/tests/dao/test_datetime.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/tests/dao/test_person.py b/compass/tests/dao/test_person.py index 9150c50f..4f87c691 100644 --- a/compass/tests/dao/test_person.py +++ b/compass/tests/dao/test_person.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/tests/dao/test_photo.py b/compass/tests/dao/test_photo.py index 58747bf6..aff00653 100644 --- a/compass/tests/dao/test_photo.py +++ b/compass/tests/dao/test_photo.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/tests/dao/test_preferences.py b/compass/tests/dao/test_preferences.py index fbabbbdf..6882030d 100644 --- a/compass/tests/dao/test_preferences.py +++ b/compass/tests/dao/test_preferences.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/tests/dao/test_rad_csv.py b/compass/tests/dao/test_rad_csv.py index 71dae2d4..0f1c02d2 100644 --- a/compass/tests/dao/test_rad_csv.py +++ b/compass/tests/dao/test_rad_csv.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/tests/dao/test_storage.py b/compass/tests/dao/test_storage.py index 680e65dc..9915b7e0 100644 --- a/compass/tests/dao/test_storage.py +++ b/compass/tests/dao/test_storage.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/tests/dao/test_term.py b/compass/tests/dao/test_term.py index 6476142d..83967f9d 100644 --- a/compass/tests/dao/test_term.py +++ b/compass/tests/dao/test_term.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/tests/models/test_appuser.py b/compass/tests/models/test_appuser.py index ce0606b0..8ca5fd89 100644 --- a/compass/tests/models/test_appuser.py +++ b/compass/tests/models/test_appuser.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from compass.tests import CompassTestCase diff --git a/compass/tests/models/test_preferences.py b/compass/tests/models/test_preferences.py index 428ea222..1efb2494 100644 --- a/compass/tests/models/test_preferences.py +++ b/compass/tests/models/test_preferences.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from compass.tests import CompassTestCase diff --git a/compass/tests/models/test_rad_data.py b/compass/tests/models/test_rad_data.py index 0ed7f687..0b2f22f8 100644 --- a/compass/tests/models/test_rad_data.py +++ b/compass/tests/models/test_rad_data.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 import random diff --git a/compass/tests/test_cache.py b/compass/tests/test_cache.py index a72ac98b..4acbc739 100644 --- a/compass/tests/test_cache.py +++ b/compass/tests/test_cache.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/tests/test_templatetags.py b/compass/tests/test_templatetags.py index d2ba6f49..03e036dd 100644 --- a/compass/tests/test_templatetags.py +++ b/compass/tests/test_templatetags.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/tests/test_utils.py b/compass/tests/test_utils.py index 269024d7..67668be4 100644 --- a/compass/tests/test_utils.py +++ b/compass/tests/test_utils.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.test import TestCase diff --git a/compass/tests/views/api/test_access_group.py b/compass/tests/views/api/test_access_group.py index 57129065..c8fc1123 100644 --- a/compass/tests/views/api/test_access_group.py +++ b/compass/tests/views/api/test_access_group.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from compass.tests import ApiTest diff --git a/compass/tests/views/api/test_adviser.py b/compass/tests/views/api/test_adviser.py index 1ba43c21..ea09ed03 100644 --- a/compass/tests/views/api/test_adviser.py +++ b/compass/tests/views/api/test_adviser.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.test import override_settings diff --git a/compass/tests/views/api/test_api.py b/compass/tests/views/api/test_api.py index e4240460..7f128693 100644 --- a/compass/tests/views/api/test_api.py +++ b/compass/tests/views/api/test_api.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/tests/views/api/test_contact.py b/compass/tests/views/api/test_contact.py index dfa367cd..d912352a 100644 --- a/compass/tests/views/api/test_contact.py +++ b/compass/tests/views/api/test_contact.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/tests/views/api/test_eligibility.py b/compass/tests/views/api/test_eligibility.py index 89cc92b2..9cff106b 100644 --- a/compass/tests/views/api/test_eligibility.py +++ b/compass/tests/views/api/test_eligibility.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from compass.tests import ApiTest diff --git a/compass/tests/views/api/test_special_program.py b/compass/tests/views/api/test_special_program.py index fc9fa4f8..67dbdeee 100644 --- a/compass/tests/views/api/test_special_program.py +++ b/compass/tests/views/api/test_special_program.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/tests/views/api/test_user_prefs.py b/compass/tests/views/api/test_user_prefs.py index 5f94b99b..a73f04d8 100644 --- a/compass/tests/views/api/test_user_prefs.py +++ b/compass/tests/views/api/test_user_prefs.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/tests/views/api/test_visit.py b/compass/tests/views/api/test_visit.py index 9eed448b..7b3064d4 100644 --- a/compass/tests/views/api/test_visit.py +++ b/compass/tests/views/api/test_visit.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/tests/views/test_decorators.py b/compass/tests/views/test_decorators.py index 0fd29cfd..c24cc12d 100644 --- a/compass/tests/views/test_decorators.py +++ b/compass/tests/views/test_decorators.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/urls.py b/compass/urls.py index bfaab892..429e7924 100644 --- a/compass/urls.py +++ b/compass/urls.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/utils.py b/compass/utils.py index 98012dc9..ad4a8249 100644 --- a/compass/utils.py +++ b/compass/utils.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from datetime import timedelta diff --git a/compass/views/admin/contact.py b/compass/views/admin/contact.py index 11b7c8cd..dbbd1cb3 100644 --- a/compass/views/admin/contact.py +++ b/compass/views/admin/contact.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/views/api/__init__.py b/compass/views/api/__init__.py index 5c3a468e..9e30997d 100644 --- a/compass/views/api/__init__.py +++ b/compass/views/api/__init__.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/views/api/access_group.py b/compass/views/api/access_group.py index a110180d..bcf91281 100644 --- a/compass/views/api/access_group.py +++ b/compass/views/api/access_group.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/views/api/adviser.py b/compass/views/api/adviser.py index b6aa0270..6dd6c3a0 100644 --- a/compass/views/api/adviser.py +++ b/compass/views/api/adviser.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/views/api/affiliation.py b/compass/views/api/affiliation.py index c384b2f3..6606cc40 100644 --- a/compass/views/api/affiliation.py +++ b/compass/views/api/affiliation.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/views/api/contact.py b/compass/views/api/contact.py index 63fbd4fd..950ee954 100644 --- a/compass/views/api/contact.py +++ b/compass/views/api/contact.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/views/api/eligibility.py b/compass/views/api/eligibility.py index 0e1b3643..dffc7e56 100644 --- a/compass/views/api/eligibility.py +++ b/compass/views/api/eligibility.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/views/api/photo.py b/compass/views/api/photo.py index 0a3cc4ab..e49d501a 100644 --- a/compass/views/api/photo.py +++ b/compass/views/api/photo.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from compass.views.api import BaseAPIView diff --git a/compass/views/api/settings.py b/compass/views/api/settings.py index 13fe3e25..5f6f7f88 100644 --- a/compass/views/api/settings.py +++ b/compass/views/api/settings.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/views/api/special_program.py b/compass/views/api/special_program.py index ea7bc400..0c7108ca 100644 --- a/compass/views/api/special_program.py +++ b/compass/views/api/special_program.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/views/api/student.py b/compass/views/api/student.py index 6aadf5e3..33a2e22b 100644 --- a/compass/views/api/student.py +++ b/compass/views/api/student.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 @@ -58,6 +58,11 @@ def get(self, request, identifier): return self.response_badrequest('Invalid student identifier') person_dict = person.to_dict() + # handle case where student data not in PDS + if "student" not in person_dict: + logger.error("Student data not found for identifier: %s", + identifier) + return self.response_notfound() photo_key = PhotoDAO().generate_photo_key() person_dict['photo_url'] = reverse('photo', kwargs={ 'uwregid': person.uwregid, diff --git a/compass/views/api/support.py b/compass/views/api/support.py index b8a238dc..4bd7704e 100644 --- a/compass/views/api/support.py +++ b/compass/views/api/support.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/views/api/user_prefs.py b/compass/views/api/user_prefs.py index fa1164bf..435e649c 100644 --- a/compass/views/api/user_prefs.py +++ b/compass/views/api/user_prefs.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 diff --git a/compass/views/api/visit.py b/compass/views/api/visit.py index 49b40639..4f676299 100644 --- a/compass/views/api/visit.py +++ b/compass/views/api/visit.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.conf import settings diff --git a/compass/views/decorators.py b/compass/views/decorators.py index 4258199c..dff7fd7d 100644 --- a/compass/views/decorators.py +++ b/compass/views/decorators.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0 from django.contrib.auth.views import redirect_to_login diff --git a/compass/views/pages.py b/compass/views/pages.py index 0095a157..82299c49 100644 --- a/compass/views/pages.py +++ b/compass/views/pages.py @@ -1,4 +1,4 @@ -# Copyright 2024 UW-IT, University of Washington +# Copyright 2025 UW-IT, University of Washington # SPDX-License-Identifier: Apache-2.0