Skip to content

Commit

Permalink
Merge pull request #207 from ministryofjustice/LGA-2296-Update-insecu…
Browse files Browse the repository at this point in the history
…re-packages

LGA-2296: Update insecure packages flagged by Snyk and Dependabot
  • Loading branch information
Pheonnexx committed Dec 13, 2022
2 parents 445c193 + 4bf7d75 commit 0446519
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 15 deletions.
2 changes: 1 addition & 1 deletion docker/run_worker.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash
set -e
exec celery worker -A laalaa --concurrency=${WORKER_APP_CONCURRENCY:-4} --loglevel=${LOG_LEVEL:-INFO}
exec celery -A laalaa worker --concurrency=${WORKER_APP_CONCURRENCY:-4} --loglevel=${LOG_LEVEL:-INFO}
3 changes: 3 additions & 0 deletions laalaa/apps/advisers/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ def log_error(err):
locations.update(point=point)
self.update_state(state="RUNNING", meta={"count": n, "total": tot, "errors": self.errors})

# clean up task errors
self.errors = []


class ProgressiveAdviserImport(Task):
name = "advisers.tasks.ProgressiveAdviserImport"
Expand Down
2 changes: 2 additions & 0 deletions laalaa/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,8 @@ def traces_sampler(sampling_context):
TEST_RUNNER = "xmlrunner.extra.djangotestrunner.XMLTestRunner"
TEST_OUTPUT_DIR = "test-reports"

DEFAULT_AUTO_FIELD = 'django.db.models.AutoField'

# .local.py overrides all the common settings.
try:
from laalaa.settings.local import * # noqa: F401,F403
Expand Down
2 changes: 1 addition & 1 deletion laalaa/templates/admin_index.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{% extends "admin/base_site.html" %}
{% load i18n admin_static %}
{% load i18n static %}

{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}" />{% endblock %}

Expand Down
20 changes: 10 additions & 10 deletions requirements/base.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
requests==2.20.0
boto3==1.9.159
celery[redis]==4.4.0
django-celery-results==1.1.2
django-filter==1.1
django==2.2.28
django-storages==1.7.1
djangorestframework-gis==0.14.0
requests==2.28.1
boto3==1.24.95
celery[redis]==5.2.3
django-celery-results==2.4.0
django-filter==2.4.0
django==3.2.15
django-storages==1.13.1
djangorestframework-gis==0.15.0
djangorestframework==3.11.2
logstash-formatter==0.5.9
psycopg2-binary==2.8.6
psycopg2-binary==2.9.4
sentry-sdk==0.19.3
uwsgi==2.0.17.1
xlrd==1.2.0
django-moj-irat>=0.4
dj-database-url==0.5.0
importlib_metadata==4.11.4
importlib_metadata==4.13.0
2 changes: 1 addition & 1 deletion requirements/dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ responses==0.9.0
pre-commit==1.14.2
unittest-xml-reporting==3.0.2
coverage==5.0.3
coveralls==1.11.0
coveralls==3.3.1
2 changes: 0 additions & 2 deletions requirements/jenkins.txt

This file was deleted.

0 comments on commit 0446519

Please sign in to comment.