From 8021676b0ffccff033be5c5cf3eb2670ca1b6f1b Mon Sep 17 00:00:00 2001 From: Jesse Vickery Date: Wed, 7 Oct 2026 11:06:32 -0400 Subject: [PATCH 1/2] fix(logic): info for ref tables; - Skip resource check. --- ckanext/datastore/logic/action.py | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/ckanext/datastore/logic/action.py b/ckanext/datastore/logic/action.py index 0b82c985eb5..679d4eaad16 100644 --- a/ckanext/datastore/logic/action.py +++ b/ckanext/datastore/logic/action.py @@ -356,7 +356,16 @@ def datastore_info(context: Context, data_dict: dict[str, Any] data_dict['id'] = id p.toolkit.check_access('datastore_info', context, data_dict) - p.toolkit.get_action('resource_show')(context, {'id': id}) + # (canada fork only): pass resource_show check + # TODO: upstream contrib?? + check_resource = True + public_search_tables = p.toolkit.config.get( + 'ckan.datastore.public_table_search', []) + if resource_id in public_search_tables and resource_id != '_table_metadata': + check_resource = False + + if check_resource: + p.toolkit.get_action('resource_show')(context, {'id': id}) info = backend.resource_fields(id) From 172a6e793a227b052978c3fab1035d45d4d960a6 Mon Sep 17 00:00:00 2001 From: Jesse Vickery Date: Wed, 7 Oct 2026 11:49:30 -0400 Subject: [PATCH 2/2] feat(misc): changelog; - Added change log file. --- changes/237.canada.changes | 1 + 1 file changed, 1 insertion(+) create mode 100644 changes/237.canada.changes diff --git a/changes/237.canada.changes b/changes/237.canada.changes new file mode 100644 index 00000000000..4278e3d7734 --- /dev/null +++ b/changes/237.canada.changes @@ -0,0 +1 @@ +Allow `datastore_info` for custom DataStore tables.