Skip to content

Commit 80adef2

Browse files
committed
Publish v2 pull enabled flag
1 parent 54a6f16 commit 80adef2

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

server/mergin/sync/config.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,5 @@ class Configuration(object):
7575
UPLOAD_CHUNKS_EXPIRATION = config(
7676
"UPLOAD_CHUNKS_EXPIRATION", default=86400, cast=int
7777
)
78+
# whether client can pull using v2 apis
79+
V2_PULL_ENABLED = config("V2_PULL_ENABLED", default=True, cast=bool)

server/mergin/tests/fixtures.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ def flask_app(request):
3636
"COLLECT_STATISTICS",
3737
"USER_SELF_REGISTRATION",
3838
"V2_PUSH_ENABLED",
39+
"V2_PULL_ENABLED",
3940
]
4041
)
4142
register(application)

server/mergin/tests/test_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ def test_config(client):
2222
"user_self_registration",
2323
"build_hash",
2424
"v2_push_enabled",
25+
"v2_pull_enabled",
2526
}
2627
resp = client.get("/config")
2728
assert resp.status_code == 200

0 commit comments

Comments
 (0)