Skip to content

Commit e9da7cb

Browse files
authored
Merge pull request #170 from knikolla/pins_2025-11-12
Update pins for Nov 11 upgrade
2 parents f20e31f + c5db958 commit e9da7cb

6 files changed

+30
-82
lines changed

Dockerfile

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,11 @@ COPY requirements.txt /tmp/requirements.txt
2323
RUN pip3 install -r /tmp/requirements.txt
2424

2525
COPY patches/01_add_api_urls.patch /opt/venv/lib/python3.12/site-packages/
26-
COPY patches/02_fix_allocation_denied_revoked_PR596.patch /opt/venv/lib/python3.12/site-packages/
2726
COPY patches/03_add_active_needs_renewal_status.patch /opt/venv/lib/python3.12/site-packages/
28-
COPY patches/04_add_allocation_change_request_created_signal.patch /opt/venv/lib/python3.12/site-packages/
2927

3028
RUN cd /opt/venv/lib/python3.12/site-packages && \
3129
patch -p1 < 01_add_api_urls.patch && \
32-
patch -p1 < 02_fix_allocation_denied_revoked_PR596.patch && \
33-
patch -p1 < 03_add_active_needs_renewal_status.patch && \
34-
patch -p1 < 04_add_allocation_change_request_created_signal.patch
30+
patch -p1 < 03_add_active_needs_renewal_status.patch
3531

3632
# Final Image
3733
FROM python:3.12-slim-bullseye

patches/01_add_api_urls.patch

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
diff --git a/coldfront/config/urls.py b/coldfront/config/urls.py
2-
index 353e360..220378a 100644
2+
index 78d9589..f1cd16a 100644
33
--- a/coldfront/config/urls.py
44
+++ b/coldfront/config/urls.py
5-
@@ -36,3 +36,6 @@ if 'mozilla_django_oidc' in settings.INSTALLED_APPS:
6-
7-
if 'django_su.backends.SuBackend' in settings.AUTHENTICATION_BACKENDS:
8-
urlpatterns.append(path('su/', include('django_su.urls')))
9-
+
5+
@@ -52,6 +52,9 @@ if "mozilla_django_oidc" in settings.INSTALLED_APPS:
6+
if "django_su.backends.SuBackend" in settings.AUTHENTICATION_BACKENDS:
7+
urlpatterns.append(path("su/", include("django_su.urls")))
8+
109
+if 'coldfront_plugin_api' in settings.INSTALLED_APPS:
1110
+ urlpatterns.append(path('api/', include('coldfront_plugin_api.urls')))
11+
+
12+
13+
def export_as_json(modeladmin, request, queryset):
14+
response = HttpResponse(content_type="application/json")

patches/02_fix_allocation_denied_revoked_PR596.patch

Lines changed: 0 additions & 14 deletions
This file was deleted.
Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,25 @@
11
diff --git a/coldfront/core/allocation/management/commands/add_allocation_defaults.py b/coldfront/core/allocation/management/commands/add_allocation_defaults.py
2-
index ca5c4fc..556eeb2 100644
2+
index 9f7dc01..3fd2fa7 100644
33
--- a/coldfront/core/allocation/management/commands/add_allocation_defaults.py
44
+++ b/coldfront/core/allocation/management/commands/add_allocation_defaults.py
5-
@@ -16,7 +16,7 @@ class Command(BaseCommand):
6-
'Attribute Expanded Text'):
7-
AttributeType.objects.get_or_create(name=attribute_type)
8-
9-
- for choice in ('Active', 'Denied', 'Expired',
10-
+ for choice in ('Active (Needs Renewal)', 'Active', 'Denied', 'Expired',
11-
'New', 'Paid', 'Payment Pending',
12-
'Payment Requested', 'Payment Declined',
13-
'Renewal Requested', 'Revoked', 'Unpaid',):
5+
@@ -22,6 +22,7 @@ class Command(BaseCommand):
6+
7+
for choice in (
8+
"Active",
9+
+ "Active (Needs Renewal)",
10+
"Denied",
11+
"Expired",
12+
"New",
1413
diff --git a/coldfront/core/allocation/tasks.py b/coldfront/core/allocation/tasks.py
15-
index e1a37fc..ba96800 100644
14+
index 883420a..3247ce3 100644
1615
--- a/coldfront/core/allocation/tasks.py
1716
+++ b/coldfront/core/allocation/tasks.py
18-
@@ -29,7 +29,7 @@ EMAIL_ADMIN_LIST = import_from_settings('EMAIL_ADMIN_LIST')
17+
@@ -36,7 +36,7 @@ EMAIL_ALLOCATION_EULA_IGNORE_OPT_OUT = import_from_settings("EMAIL_ALLOCATION_EU
18+
19+
1920
def update_statuses():
20-
21-
expired_status_choice = AllocationStatusChoice.objects.get(
22-
- name='Expired')
23-
+ name='Active (Needs Renewal)')
21+
- expired_status_choice = AllocationStatusChoice.objects.get(name="Expired")
22+
+ expired_status_choice = AllocationStatusChoice.objects.get(name="Active (Needs Renewal)")
2423
allocations_to_expire = Allocation.objects.filter(
25-
status__name__in=['Active','Payment Pending','Payment Requested', 'Unpaid',], end_date__lt=datetime.datetime.now().date())
26-
for sub_obj in allocations_to_expire:
24+
status__name__in=[
25+
"Active",

patches/04_add_allocation_change_request_created_signal.patch

Lines changed: 0 additions & 36 deletions
This file was deleted.

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
git+https://github.com/ubccr/coldfront@v1.1.6#egg=coldfront
2-
git+https://github.com/nerc-project/coldfront-plugin-cloud@v0.10.1#egg=coldfront_plugin_cloud
1+
git+https://github.com/ubccr/coldfront@v1.1.7#egg=coldfront
2+
git+https://github.com/nerc-project/coldfront-plugin-cloud@v0.10.2#egg=coldfront_plugin_cloud
33
git+https://github.com/nerc-project/coldfront-plugin-keycloak@d5f02df7bef5b4ab787d3ebb21cd11f3c133138f#egg=coldfront_plugin_keycloak_usersearch
4-
git+https://github.com/nerc-project/coldfront-plugin-api.git@v0.2.2#egg=coldfront_plugin_api
4+
git+https://github.com/nerc-project/coldfront-plugin-api.git@v0.2.3#egg=coldfront_plugin_api
55
mysqlclient
66
psycopg2
77
mozilla-django-oidc

0 commit comments

Comments
 (0)