Skip to content

Commit

Permalink
Merge branch 'hotfix/24.07.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
mfraezz committed Sep 18, 2024
2 parents 5b31809 + 4eefa52 commit b128472
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 11 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
POSTGRES_PASSWORD: ${{ env.OSF_DB_PASSWORD }}
options: >-
--health-cmd pg_isready
--health-interval 10s
Expand All @@ -66,7 +66,7 @@ jobs:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
POSTGRES_PASSWORD: ${{ env.OSF_DB_PASSWORD }}
options: >-
--health-cmd pg_isready
--health-interval 10s
Expand All @@ -93,7 +93,7 @@ jobs:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
POSTGRES_PASSWORD: ${{ env.OSF_DB_PASSWORD }}
options: >-
--health-cmd pg_isready
--health-interval 10s
Expand Down Expand Up @@ -122,7 +122,7 @@ jobs:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
POSTGRES_PASSWORD: ${{ env.OSF_DB_PASSWORD }}
options: >-
--health-cmd pg_isready
--health-interval 10s
Expand Down Expand Up @@ -150,7 +150,7 @@ jobs:
image: postgres

env:
POSTGRES_PASSWORD: postgres
POSTGRES_PASSWORD: ${{ env.OSF_DB_PASSWORD }}
options: >-
--health-cmd pg_isready
--health-interval 10s
Expand Down
3 changes: 1 addition & 2 deletions admin/base/filters.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
from django import template
from django.utils.safestring import mark_safe
import json


Expand All @@ -8,4 +7,4 @@

@register.filter
def jsonify(o):
return mark_safe(json.dumps(o))
return json.dumps(o)
3 changes: 1 addition & 2 deletions admin/base/templatetags/filters.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# h/t https://djangosnippets.org/snippets/1250/
from django import template
from django.utils.safestring import mark_safe
import json

register = template.Library()

@register.filter
def jsonify(o):
return mark_safe(json.dumps(o))
return json.dumps(o)
2 changes: 1 addition & 1 deletion api/base/settings/local-ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
ENABLE_VARNISH = True
ENABLE_ESI = False

OSF_DB_PASSWORD = 'postgres'
OSF_DB_PASSWORD = os.environ.get('OSF_DB_PASSWORD')

SESSION_ENGINE = 'django.contrib.sessions.backends.db'

Expand Down
2 changes: 1 addition & 1 deletion website/settings/local-ci.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import os

DB_PORT = 5432
OSF_DB_PASSWORD = 'postgres'
OSF_DB_PASSWORD = os.environ.get('OSF_DB_PASSWORD')

DEV_MODE = True
DEBUG_MODE = True # Sets app to debug mode, turns off template caching, etc.
Expand Down

0 comments on commit b128472

Please sign in to comment.