Skip to content

Commit 883bc44

Browse files
authored
Removed option related to unused pgbouncer (#3118)
1 parent 9bb4f27 commit 883bc44

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

main/settings.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -421,13 +421,6 @@
421421
default=0,
422422
description="Maximum age of connection to Postgres in seconds",
423423
)
424-
# If True, disables server-side database cursors to prevent invalid cursor errors when using pgbouncer
425-
DEFAULT_DATABASE_CONFIG["DISABLE_SERVER_SIDE_CURSORS"] = get_bool(
426-
name="MITX_ONLINE_DB_DISABLE_SS_CURSORS",
427-
default=True,
428-
description="Disables Postgres server side cursors",
429-
)
430-
431424

432425
if get_bool(
433426
name="MITX_ONLINE_DB_DISABLE_SSL",

main/settings_test.py

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -166,21 +166,3 @@ def test_semantic_version(settings):
166166
Verify that we have a semantic compatible version.
167167
"""
168168
semantic_version.Version(settings.VERSION)
169-
170-
171-
def test_server_side_cursors_disabled(settings_sandbox):
172-
"""DISABLE_SERVER_SIDE_CURSORS should be true by default"""
173-
settings_vars = settings_sandbox.get()
174-
assert (
175-
settings_vars["DEFAULT_DATABASE_CONFIG"]["DISABLE_SERVER_SIDE_CURSORS"] is True
176-
)
177-
178-
179-
def test_server_side_cursors_enabled(settings_sandbox):
180-
"""DISABLE_SERVER_SIDE_CURSORS should be false if MITX_ONLINE_DB_DISABLE_SS_CURSORS is false"""
181-
settings_vars = settings_sandbox.patch(
182-
{"MITX_ONLINE_DB_DISABLE_SS_CURSORS": "False"}
183-
)
184-
assert (
185-
settings_vars["DEFAULT_DATABASE_CONFIG"]["DISABLE_SERVER_SIDE_CURSORS"] is False
186-
)

0 commit comments

Comments
 (0)