Skip to content

Commit 73dbff8

Browse files
committed
Merge branch 'hotfix/24.07.1' into develop
2 parents ff828d8 + 4eefa52 commit 73dbff8

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

.github/workflows/test-build.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
postgres:
4040
image: postgres
4141
env:
42-
POSTGRES_PASSWORD: postgres
42+
POSTGRES_PASSWORD: ${{ env.OSF_DB_PASSWORD }}
4343
options: >-
4444
--health-cmd pg_isready
4545
--health-interval 10s
@@ -66,7 +66,7 @@ jobs:
6666
postgres:
6767
image: postgres
6868
env:
69-
POSTGRES_PASSWORD: postgres
69+
POSTGRES_PASSWORD: ${{ env.OSF_DB_PASSWORD }}
7070
options: >-
7171
--health-cmd pg_isready
7272
--health-interval 10s
@@ -93,7 +93,7 @@ jobs:
9393
postgres:
9494
image: postgres
9595
env:
96-
POSTGRES_PASSWORD: postgres
96+
POSTGRES_PASSWORD: ${{ env.OSF_DB_PASSWORD }}
9797
options: >-
9898
--health-cmd pg_isready
9999
--health-interval 10s
@@ -122,7 +122,7 @@ jobs:
122122
postgres:
123123
image: postgres
124124
env:
125-
POSTGRES_PASSWORD: postgres
125+
POSTGRES_PASSWORD: ${{ env.OSF_DB_PASSWORD }}
126126
options: >-
127127
--health-cmd pg_isready
128128
--health-interval 10s
@@ -150,7 +150,7 @@ jobs:
150150
image: postgres
151151

152152
env:
153-
POSTGRES_PASSWORD: postgres
153+
POSTGRES_PASSWORD: ${{ env.OSF_DB_PASSWORD }}
154154
options: >-
155155
--health-cmd pg_isready
156156
--health-interval 10s

admin/base/filters.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from django import template
2-
from django.utils.safestring import mark_safe
32
import json
43

54

@@ -8,4 +7,4 @@
87

98
@register.filter
109
def jsonify(o):
11-
return mark_safe(json.dumps(o))
10+
return json.dumps(o)

admin/base/templatetags/filters.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
# h/t https://djangosnippets.org/snippets/1250/
22
from django import template
3-
from django.utils.safestring import mark_safe
43
import json
54

65
register = template.Library()
76

87
@register.filter
98
def jsonify(o):
10-
return mark_safe(json.dumps(o))
9+
return json.dumps(o)

api/base/settings/local-ci.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
ENABLE_VARNISH = True
66
ENABLE_ESI = False
77

8-
OSF_DB_PASSWORD = 'postgres'
8+
OSF_DB_PASSWORD = os.environ.get('OSF_DB_PASSWORD')
99

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

website/settings/local-ci.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import os
1111

1212
DB_PORT = 5432
13-
OSF_DB_PASSWORD = 'postgres'
13+
OSF_DB_PASSWORD = os.environ.get('OSF_DB_PASSWORD')
1414

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

0 commit comments

Comments
 (0)