Skip to content

Commit 3d7a765

Browse files
committed
fix: add ckanext.dc_serve.tmp_dir
1 parent 721f645 commit 3d7a765

File tree

5 files changed

+10
-2
lines changed

5 files changed

+10
-2
lines changed

CHANGELOG

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
0.10.1
2+
- fix: add ckanext.dc_serve.tmp_dir, a temporary data location for
3+
condensing data before uploading to S3
14
0.10.0
25
- enh: update package located in /testing in dcor update
36
- enh: also check S3 storage for orphaned objects in `dcor inspect`

dcor_control/cli/inspect.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ def inspect(assume_yes=False):
2121
paths.get_ckan_storage_path() / "resources",
2222
paths.get_dcor_users_depot_path(),
2323
paths.get_ckan_webassets_path(),
24-
get_ckan_config_option("dcor_object_store.local_backup_location")
24+
get_ckan_config_option("dcor_object_store.local_backup_location"),
25+
get_ckan_config_option("ckanext.dc_serve.tmp_dir"),
2526
]:
2627
if path is not None:
2728
inspect_mod.check_permission(

dcor_control/inspect/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def ask(prompt):
1414
def check_permission(path, user=None, mode=None, recursive=False,
1515
autocorrect=False):
1616
path = pathlib.Path(path)
17-
if recursive:
17+
if recursive and path.is_dir():
1818
for pp in path.rglob("*"):
1919
if pp.is_dir():
2020
check_permission(path=pp,

dcor_control/resources/dcor_options.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ ckan.webassets.path = /var/lib/ckan/webassets
6565
# use "localhost" instead of "127.0.0.1".
6666
solr_url = http://localhost:8983/solr/ckan
6767

68+
# ckanext-dc_serve
69+
ckanext.dc_serve.tmp_dir = "/data/tmp/ckanext-dc_serve"
70+
6871
# ckanext-dcor_depot
6972
ckanext.dcor_depot.depots_path = /data/depots
7073

dcor_control/resources/server_options.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
"ckan.auth.create_user_via_api": "true",
2222
"ckan.site_title": "DCOR-dev",
2323
"ckan.site_url": "https://dcor-dev.mpl.mpg.de",
24+
"ckanext.dc_serve.tmp_dir": "/cache/ckanext-dc_serve",
2425
"dcor_object_store.endpoint_url": "https://objectstore.hpccloud.mpcdf.mpg.de",
2526
"dcor_object_store.bucket_name": "circle-dev-{organization_id}"
2627
},

0 commit comments

Comments
 (0)