Skip to content

Commit 7a63083

Browse files
authored
Merge pull request #106 from nerc-project/release-v0.3.6
release v0.3.6
2 parents a17dcdd + 3f32ab1 commit 7a63083

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ 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.9/site-packages/
26+
COPY patches/02_fix_allocation_denied_revoked_PR596.patch /opt/venv/lib/python3.9/site-packages/
2627
RUN cd /opt/venv/lib/python3.9/site-packages && \
27-
patch -p1 < 01_add_api_urls.patch
28+
patch -p1 < 01_add_api_urls.patch && \
29+
patch -p1 < 02_fix_allocation_denied_revoked_PR596.patch
2830

2931
# Final Image
3032
FROM python:3.9-slim-bullseye
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git a/coldfront/core/allocation/views.py b/coldfront/core/allocation/views.py
2+
index 216c3531c..ec129fc39 100644
3+
--- a/coldfront/core/allocation/views.py
4+
+++ b/coldfront/core/allocation/views.py
5+
@@ -238,7 +238,7 @@ def post(self, request, *args, **kwargs):
6+
allocation_obj.end_date = None
7+
allocation_obj.save()
8+
9+
- if allocation_obj.status.name == ['Denied', 'Revoked']:
10+
+ if allocation_obj.status.name in ['Denied', 'Revoked']:
11+
allocation_disable.send(
12+
sender=self.__class__, allocation_pk=allocation_obj.pk)
13+
allocation_users = allocation_obj.allocationuser_set.exclude(
14+

requirements.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
git+https://github.com/ubccr/[email protected]#egg=coldfront
2-
git+https://github.com/nerc-project/coldfront-plugin-cloud@v0.4.1#egg=coldfront_plugin_cloud
3-
git+https://github.com/nerc-project/coldfront-plugin-keycloak@0dd8e0ae65211d2f145abfd8d1402efe96562d29#egg=coldfront_plugin_keycloak_usersearch
4-
git+https://github.com/nerc-project/coldfront-plugin-api.git@f0bfbd9d5e6707eb8bb7297b782502012d2b1266#egg=coldfront_plugin_api
2+
git+https://github.com/nerc-project/coldfront-plugin-cloud@1fff22e096c3440bb783f1152a985f14eeef47b9#egg=coldfront_plugin_cloud
3+
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@e3e4741239671b7ab0c3c01bab28f134845cd000#egg=coldfront_plugin_api
55
mysqlclient
66
psycopg2 >= 2.8, < 2.9
77
mozilla-django-oidc

0 commit comments

Comments
 (0)