Skip to content

Commit af13883

Browse files
committed
chore(controller): update requirements
1 parent 47368b2 commit af13883

5 files changed

Lines changed: 26 additions & 24 deletions

File tree

rootfs/api/models/appsettings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class AppSettings(UuidAuditedModel):
1818

1919
owner = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.PROTECT)
2020
app = models.ForeignKey('App', on_delete=models.CASCADE)
21-
routable = models.NullBooleanField(default=None)
21+
routable = models.BooleanField(null=True)
2222
# the default values is None to differentiate from user sending an empty allowlist
2323
# and user just updating other fields meaning the values needs to be copied from prev release
2424
allowlist = ArrayField(models.CharField(max_length=50), default=None)

rootfs/api/models/tls.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
class TLS(UuidAuditedModel):
1010
owner = models.ForeignKey(settings.AUTH_USER_MODEL, on_delete=models.PROTECT)
1111
app = models.ForeignKey('App', on_delete=models.CASCADE)
12-
https_enforced = models.NullBooleanField(default=None)
13-
certs_auto_enabled = models.NullBooleanField(default=None)
12+
https_enforced = models.BooleanField(null=True)
13+
certs_auto_enabled = models.BooleanField(null=True)
1414

1515
class Meta:
1616
get_latest_by = 'created'

rootfs/api/settings/production.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@
112112
'api'
113113
)
114114

115+
DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'
116+
115117
AUTHENTICATION_BACKENDS = (
116118
"django.contrib.auth.backends.ModelBackend",
117119
"guardian.backends.ObjectPermissionBackend",
@@ -435,7 +437,7 @@
435437
SOCIAL_AUTH_DRYCC_OIDC_ENDPOINT = os.environ.get('SOCIAL_AUTH_DRYCC_OIDC_ENDPOINT')
436438
SOCIAL_AUTH_DRYCC_KEY = os.environ.get('SOCIAL_AUTH_DRYCC_CONTROLLER_KEY')
437439
SOCIAL_AUTH_DRYCC_SECRET = os.environ.get('SOCIAL_AUTH_DRYCC_CONTROLLER_SECRET')
438-
SOCIAL_AUTH_POSTGRES_JSONFIELD = True
440+
SOCIAL_AUTH_JSONFIELD_ENABLED = True
439441
SOCIAL_AUTH_PIPELINE = (
440442
'social_core.pipeline.social_auth.social_details',
441443
'social_core.pipeline.social_auth.social_uid',

rootfs/api/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ def get_object(self, **kwargs):
429429

430430
def attach(self, request, *args, **kwargs):
431431
try:
432-
if kwargs['domain'] is None and not request.data.get('domain'):
432+
if "domain" not in kwargs and not request.data.get('domain'):
433433
raise DryccException("domain is a required field")
434434
elif request.data.get('domain'):
435435
kwargs['domain'] = request.data['domain']

rootfs/requirements.txt

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
11
# Drycc controller requirements
2-
backoff==1.10.0
3-
django==2.2.24
2+
backoff==1.11.1
3+
django==3.2.5
44
django-cors-headers==3.7.0
5-
django-guardian==2.3.0
6-
djangorestframework==3.11.2
7-
docker==4.2.2
8-
gunicorn==20.0.4
9-
idna==2.10
5+
django-guardian==2.4.0
6+
djangorestframework==3.12.4
7+
docker==5.0.0
8+
gunicorn==20.1.0
9+
idna==3.2
1010
jmespath==0.10.0
1111
jsonfield==3.1.0
1212
jsonschema==3.2.0
1313
morph==0.1.4
1414
ndg-httpsclient==0.5.1
15-
packaging==20.4
15+
packaging==21.0
1616
pyasn1==0.4.8
17-
psycopg2-binary==2.8.5
18-
pyOpenSSL==19.1.0
19-
pytz==2020.1
20-
requests==2.24.0
17+
psycopg2-binary==2.9.1
18+
pyOpenSSL==20.0.1
19+
pytz==2021.1
20+
requests==2.26.0
2121
requests-toolbelt==0.9.1
22-
celery==5.0.2
23-
django_redis==4.12.1
24-
influxdb-client==1.13.0
25-
dj-database-url
26-
social-auth-app-django==4.0.0
27-
python-jose
28-
Authlib
22+
celery==5.1.2
23+
django_redis==5.0.0
24+
influxdb-client==1.19.0
25+
dj-database-url==0.5.0
26+
social-auth-app-django==5.0.0
27+
python-jose==3.3.0
28+
Authlib==0.15.4

0 commit comments

Comments
 (0)