Skip to content
Open
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
208 commits
Select commit Hold shift + click to select a range
9dc480b
removal(dev): tear it out;
JVickery-TBS Jun 18, 2025
41c979d
removal(dev): tear it out;
JVickery-TBS Jun 18, 2025
380699a
Merge branch 'refactor/is-registry' into feature/single-instance
JVickery-TBS Oct 7, 2025
3c052ea
Merge branch 'refactor/is-registry' into feature/single-instance
JVickery-TBS Oct 7, 2025
db9fabb
Merge branch 'refactor/is-registry' into feature/single-instance
JVickery-TBS Oct 7, 2025
cdc4f75
feat(dev): validators, facets, syntax;
JVickery-TBS Oct 7, 2025
6bf2a1b
feat(dev): validators;
JVickery-TBS Oct 8, 2025
978bb86
Merge branch 'master' into feature/single-instance
JVickery-TBS Oct 8, 2025
b996589
fix(logic): user show;
JVickery-TBS Oct 8, 2025
3c210e9
removal(js): webassets;
JVickery-TBS Oct 8, 2025
1e815eb
fix(dev): misc logic;
JVickery-TBS Oct 9, 2025
2d3fd89
fix(dev): misc logic;
JVickery-TBS Oct 10, 2025
d9493b2
feat(dev): everything;
JVickery-TBS Oct 10, 2025
0cc412e
feat(dev): some TODOs;
JVickery-TBS Oct 14, 2025
5243dd8
Merge branch 'master' into feature/single-instance
JVickery-TBS Oct 14, 2025
9502402
Merge branch 'master' into feature/single-instance
JVickery-TBS Oct 14, 2025
11187cd
Merge branch 'master' into feature/single-instance
JVickery-TBS Oct 14, 2025
8334f52
Merge branch 'master' into feature/single-instance
JVickery-TBS Oct 14, 2025
91d6ef4
Merge branch 'master' into feature/single-instance
JVickery-TBS Oct 14, 2025
4033abe
fix(dev): language switcher;
JVickery-TBS Oct 16, 2025
44e80c4
fix(logic): dataset search;
JVickery-TBS Oct 16, 2025
b4dd6d1
fix(syntax): lint;
JVickery-TBS Oct 16, 2025
376d77f
refactor(plugins): limit plugin count;
JVickery-TBS Oct 20, 2025
420da78
refactor(plugins): limit plugin count;
JVickery-TBS Oct 24, 2025
147ab7b
refactor(plugins): limit plugin count;
JVickery-TBS Oct 24, 2025
08dfa9d
refactor(plugins): limit plugin count;
JVickery-TBS Oct 24, 2025
5229f54
refactor(assets): improve webassets;
JVickery-TBS Oct 24, 2025
ffbebfd
refactor(assets): improve webassets;
JVickery-TBS Nov 18, 2025
754c59f
Merge branch 'master' into feature/single-instance
JVickery-TBS Dec 15, 2025
7334425
feat(css,js): build assets;
JVickery-TBS Dec 15, 2025
3100d48
feat(dev): npm build scripts;
JVickery-TBS Dec 15, 2025
de26b84
fix(github): gulp build;
JVickery-TBS Dec 16, 2025
7a40d84
refactor(css): sassify;
JVickery-TBS Dec 16, 2025
a86fcb9
refactor(css): sassify;
JVickery-TBS Dec 17, 2025
76c0c49
refactor(js): file prefix;
JVickery-TBS Dec 17, 2025
6d7b14b
fix(tests): id;
JVickery-TBS Dec 17, 2025
f544cb1
feat(js,css): track build files;
JVickery-TBS Dec 17, 2025
9bec095
Merge branch 'master' into feature/single-instance
JVickery-TBS Dec 23, 2025
fe47424
fix(dev): middleware;
JVickery-TBS Dec 23, 2025
88b2b9c
fix(logic): dev;
JVickery-TBS Jan 6, 2026
19b9665
fix(types): typing;
JVickery-TBS Jan 7, 2026
cf85a01
Merge branch 'master' into feature/single-instance
JVickery-TBS Jan 12, 2026
46d2430
feat(templates): check activity plugin;
JVickery-TBS Jan 12, 2026
2c94fc5
Merge branch 'master' into feature/single-instance
JVickery-TBS Jan 15, 2026
a94f9df
Merge branch 'master' into feature/single-instance
JVickery-TBS Jan 15, 2026
3ee1057
temp(misc): schema;
JVickery-TBS Jan 16, 2026
746d1ef
Merge branch 'master' into feature/single-instance
JVickery-TBS Jan 26, 2026
1ff461b
Merge branch 'master' into feature/single-instance
JVickery-TBS Feb 2, 2026
296931f
Merge branch 'master' into feature/single-instance
JVickery-TBS Feb 3, 2026
c64bbbc
Merge branch 'master' into feature/single-instance
JVickery-TBS Feb 3, 2026
b4904c1
Merge branch 'master' into feature/single-instance
JVickery-TBS Feb 4, 2026
a747715
Merge branch 'master' into feature/single-instance
JVickery-TBS Feb 4, 2026
5f83dbf
Merge branch 'master' into feature/single-instance
JVickery-TBS Feb 18, 2026
2957fd2
feat(migrate): new alembic;
JVickery-TBS Feb 18, 2026
d5dc8a0
fix(logic): middleware;
JVickery-TBS Feb 18, 2026
37dc7cf
Merge branch 'master' into feature/single-instance
JVickery-TBS Feb 18, 2026
505d76e
feat(dev): ref tables;
JVickery-TBS Mar 27, 2026
ec4635d
Merge branch 'master' into feature/ds-reference-tables
JVickery-TBS Mar 30, 2026
45fae29
Merge branch 'master' into feature/ds-reference-tables
JVickery-TBS Mar 30, 2026
2e72b9c
feat(dev): ds ref tables cont;
JVickery-TBS Mar 30, 2026
10256b8
feat(dev): ds ref tables cont;
JVickery-TBS Apr 2, 2026
fc740de
feat(dev): ds ref tables cont;
JVickery-TBS Apr 9, 2026
433e216
feat(dev): ds ref tables cont;
JVickery-TBS Apr 16, 2026
bcf369b
feat(dev): ds fiscal year func;
JVickery-TBS Apr 16, 2026
65e40a8
feat(dev): ds fiscal year func;
JVickery-TBS Apr 17, 2026
9af0578
feat(misc): changelog;
JVickery-TBS Apr 20, 2026
163fd73
fix(misc): syntax;
JVickery-TBS Apr 20, 2026
eb89a03
feat(pd): service inventory;
JVickery-TBS Apr 20, 2026
dfd01d8
fix(pd): service inventory;
JVickery-TBS Apr 20, 2026
046e8f1
fix(pd): service inventory;
JVickery-TBS Apr 20, 2026
1bd0da2
feat(dev): github action;
JVickery-TBS Apr 21, 2026
6a9a1d1
fix(tests): service inventory;
JVickery-TBS Apr 21, 2026
9a82bb7
fix(pd): service inventory;
JVickery-TBS Apr 22, 2026
8a1ad33
Merge branch 'master' into feature/single-instance
JVickery-TBS Apr 22, 2026
80cb65c
Merge branch 'master' into feature/single-instance
JVickery-TBS Apr 23, 2026
70a1eab
fix(pd): service inventory;
JVickery-TBS Apr 27, 2026
9a3b5f9
fix(dev): resource views;
JVickery-TBS Apr 28, 2026
3df2e5f
feat(schema): ckanapi dump;
JVickery-TBS May 7, 2026
6889cb7
Merge branch 'grants-agreement-value' into feature/single-instance
JVickery-TBS May 13, 2026
8f3daf8
fixes for loading service.csv
wardi May 30, 2026
67b7d50
Merge branch 'master' into feature/single-instance
JVickery-TBS Jun 1, 2026
b6eef95
Merge branch 'master' into feature/single-instance
JVickery-TBS Jun 4, 2026
26cac34
fixes for loading service-std.csv
wardi Jun 6, 2026
e842434
compatible program_id ORDER BY
wardi Jun 6, 2026
04aa81c
feat(dev): misc improvements;
JVickery-TBS Jun 8, 2026
ea0ae71
feat(dev): misc improvements;
JVickery-TBS Jun 8, 2026
4a2d1b3
feat(db): ref data hash;
JVickery-TBS Jun 9, 2026
d61b54e
revert(schema): ckanapi dump;
JVickery-TBS Jun 10, 2026
3c7fe41
feat(misc): syntax;
JVickery-TBS Jun 10, 2026
061042a
Merge branch 'feature/package-type-display' into feature/single-instance
JVickery-TBS Jun 10, 2026
755885e
Merge branch 'feature/embed-host-list' into feature/single-instance
JVickery-TBS Jun 10, 2026
949dc57
Merge branch 'master' into feature/single-instance
JVickery-TBS Jun 10, 2026
39e7c84
fix(css): portal button;
JVickery-TBS Jun 10, 2026
df90660
Merge branch 'feature/embed-host-list' into feature/single-instance
JVickery-TBS Jun 10, 2026
46f4320
Merge branch 'feature/sysadmin-ui-default-user-limit' into feature/si…
JVickery-TBS Jun 10, 2026
7e7a533
Merge branch 'feature/package-type-display' into feature/single-instance
JVickery-TBS Jun 12, 2026
b347c25
feat(templates): misc fixes;
JVickery-TBS Jun 15, 2026
923b836
Merge branch 'master' into feature/single-instance
JVickery-TBS Jun 16, 2026
f75c7b6
Merge branch 'master' into feature/single-instance
JVickery-TBS Jun 18, 2026
e8c78d8
Merge branch 'master' into feature/single-instance
JVickery-TBS Jun 19, 2026
62958e5
feat(dev): templates/views;
JVickery-TBS Jun 23, 2026
43a317b
Merge branch 'master' into feature/single-instance
JVickery-TBS Jun 23, 2026
1296db7
Merge branch 'feature/user-opt-ins' into feature/single-instance
JVickery-TBS Jun 24, 2026
a7f9e44
feat(build): gulp;
JVickery-TBS Jun 24, 2026
6f8b751
feat(templates): facets;
JVickery-TBS Jun 24, 2026
fb1ae64
feat(dev): search params;
JVickery-TBS Jun 25, 2026
f1e134c
fix(templates): autocomplete;
JVickery-TBS Jun 25, 2026
b999746
fix(tests): domain languages;
JVickery-TBS Jun 26, 2026
8004d6a
fix(tests): domain languages;
JVickery-TBS Jun 29, 2026
64ac3ca
feat(tests): domain languages;
JVickery-TBS Jun 29, 2026
efa7861
feat(tests): domain languages cont;
JVickery-TBS Jun 30, 2026
cdc24c6
feat(tests): domain languages cont;
JVickery-TBS Jul 2, 2026
33c6bfc
feat(tests): domain languages cont;
JVickery-TBS Jul 3, 2026
46aa077
feat(tests): domain languages cont;
JVickery-TBS Jul 13, 2026
bd9a6f2
feat(tests): domain languages cont;
JVickery-TBS Jul 14, 2026
9f5f8eb
Merge branch 'master' into feature/single-instance
JVickery-TBS Jul 14, 2026
1401f07
Merge branch 'master' into feature/single-instance
JVickery-TBS Jul 14, 2026
479c092
Merge branch 'master' into feature/single-instance
JVickery-TBS Jul 14, 2026
8f3efd1
fix(misc): syntax;
JVickery-TBS Jul 14, 2026
4c40204
feat(tests): repo config;
JVickery-TBS Jul 14, 2026
fd301b2
feat(tests): repo config;
JVickery-TBS Jul 14, 2026
0ca49cd
debug github wokflow;
JVickery-TBS Jul 14, 2026
ba90458
debug github wokflow;
JVickery-TBS Jul 15, 2026
4cbd414
debug github wokflow;
JVickery-TBS Jul 15, 2026
17b3d3d
debug github wokflow;
JVickery-TBS Jul 15, 2026
d770875
debug github wokflow;
JVickery-TBS Jul 15, 2026
e04a94f
debug github wokflow;
JVickery-TBS Jul 15, 2026
b5c13ae
debug github wokflow;
JVickery-TBS Jul 15, 2026
e25741a
debug github wokflow;
JVickery-TBS Jul 15, 2026
620d456
debug github wokflow;
JVickery-TBS Jul 15, 2026
9db2009
fix(tests): test app host;
JVickery-TBS Jul 16, 2026
9305418
fix(tests): test app host;
JVickery-TBS Jul 16, 2026
b720e12
fix(tests): test app host;
JVickery-TBS Jul 16, 2026
06dde4f
fix(tests): test app host;
JVickery-TBS Jul 16, 2026
b926b69
fix(tests): test app host;
JVickery-TBS Jul 16, 2026
10059f3
fix(tests): test app host;
JVickery-TBS Jul 16, 2026
7440fe9
fix(tests): test app host;
JVickery-TBS Jul 16, 2026
20fb440
fix(tests): test app host;
JVickery-TBS Jul 16, 2026
1fa3b08
fix(tests): test app host;
JVickery-TBS Jul 16, 2026
292074f
fix(tests): test app host;
JVickery-TBS Jul 16, 2026
369b533
fix(tests): test app host;
JVickery-TBS Jul 16, 2026
f46a31c
fix(tests): test app host;
JVickery-TBS Jul 16, 2026
b80891a
fix(tests): test app host;
JVickery-TBS Jul 16, 2026
81ef725
fix(tests): test app host;
JVickery-TBS Jul 16, 2026
6239e1e
fix(tests): test app host;
JVickery-TBS Jul 16, 2026
1f9a83e
fix(tests): test app host;
JVickery-TBS Jul 16, 2026
e9a1995
fix(tests): test app host;
JVickery-TBS Jul 16, 2026
52cd8d3
debug github wokflow;
JVickery-TBS Jul 17, 2026
1e6d8cb
debug github wokflow;
JVickery-TBS Jul 17, 2026
6b4ca04
debug github wokflow;
JVickery-TBS Jul 17, 2026
0469d7f
debug github wokflow;
JVickery-TBS Jul 17, 2026
4f72efb
debug github wokflow;
JVickery-TBS Jul 17, 2026
3077045
debug github wokflow;
JVickery-TBS Jul 17, 2026
087afd2
debug github wokflow;
JVickery-TBS Jul 17, 2026
355a5c8
Merge branch 'master' into feature/single-instance
JVickery-TBS Jul 20, 2026
74e453d
Merge branch 'master' into feature/ds-reference-tables
JVickery-TBS Jul 21, 2026
a157b56
Merge pull request #1676 from open-data/ds-reference-tables-fixes
JVickery-TBS Jul 21, 2026
1e2d0b1
Merge remote-tracking branch 'origin/feature/ds-reference-tables' int…
JVickery-TBS Jul 21, 2026
78f5705
feat(tests): coverage;
JVickery-TBS Jul 21, 2026
5b7d542
fix(syntax): lint;
JVickery-TBS Jul 21, 2026
2663137
fix(test): make test;
JVickery-TBS Jul 21, 2026
ce3fa40
fix(test): make test;
JVickery-TBS Jul 22, 2026
504b3c7
fix(test): make test;
JVickery-TBS Jul 22, 2026
396d4c7
fix(test): debug;
JVickery-TBS Jul 22, 2026
f1e2ab5
fix(test): debug;
JVickery-TBS Jul 22, 2026
92e3b31
Merge branch 'master' into feature/ds-reference-tables
JVickery-TBS Jul 22, 2026
3eea3bb
Merge branch 'master' into feature/ds-reference-tables
JVickery-TBS Jul 22, 2026
4cbccf5
Merge branch 'master' into feature/single-instance
JVickery-TBS Jul 22, 2026
2ecece6
Merge branch 'master' into feature/single-instance
JVickery-TBS Jul 22, 2026
4147a2a
Merge branch 'master' into feature/ds-reference-tables
JVickery-TBS Jul 22, 2026
b2ce3a6
feat(comments,build): script fix, ref data;
JVickery-TBS Jul 24, 2026
8549cdc
Merge branch 'master' into feature/ds-reference-tables
JVickery-TBS Jul 28, 2026
675ad7a
fix(bin): service ref data gen;
JVickery-TBS Jul 28, 2026
bf92612
feat(db): max length new lines;
JVickery-TBS Jul 29, 2026
183cdf3
feat(db,pd): recombinant markers, service suffixes;
JVickery-TBS Jul 29, 2026
ee8d7cc
Merge branch 'master' into feature/ds-reference-tables
JVickery-TBS Jul 30, 2026
adf0e53
refactor(db): datastore temp table;
JVickery-TBS Jul 30, 2026
c422648
feat(js): pd datatables;
JVickery-TBS Jul 30, 2026
e4cf9f1
feat(misc): changelog;
JVickery-TBS Jul 30, 2026
cb720c5
fix(lint): syntax;
JVickery-TBS Jul 30, 2026
62e3cd3
fix(lint): syntax;
JVickery-TBS Jul 30, 2026
9f48e74
Merge branch 'master' into feature/single-instance
JVickery-TBS Jul 30, 2026
611d7cd
refactor(dev): feedback;
JVickery-TBS Aug 4, 2026
bdc4ef4
feat(pd): suffix choices;
JVickery-TBS Aug 4, 2026
19757bd
fix(tests): service filter;
JVickery-TBS Aug 4, 2026
31c160d
fix(syntax): lint;
JVickery-TBS Aug 4, 2026
f0977ba
Merge branch 'master' into feature/single-instance
JVickery-TBS Aug 5, 2026
f960c4b
Merge branch 'master' into feature/single-instance
JVickery-TBS Aug 5, 2026
fc9fe0e
Merge branch 'master' into feature/single-instance
JVickery-TBS Aug 6, 2026
5c66c0b
Merge branch 'master' into feature/single-instance
JVickery-TBS Aug 6, 2026
f20ae09
fix(tests): domain map;
JVickery-TBS Aug 6, 2026
a7d4e53
Merge branch 'master' into feature/single-instance
JVickery-TBS Aug 7, 2026
9b62682
Merge branch 'master' into feature/single-instance
JVickery-TBS Aug 7, 2026
32988f1
dev
JVickery-TBS Aug 7, 2026
1c087ac
Merge branch 'master' into feature/single-instance
JVickery-TBS Aug 10, 2026
971b7bf
Merge branch 'master' into feature/single-instance
JVickery-TBS Aug 10, 2026
5ba54f3
Merge branch 'master' into feature/ds-reference-tables
JVickery-TBS Aug 18, 2026
4dd7c21
Merge branch 'master' into feature/ds-reference-tables
JVickery-TBS Aug 18, 2026
aa7cbb3
Merge branch 'master' into feature/ds-reference-tables
JVickery-TBS Aug 18, 2026
6ee7ee1
Merge branch 'master' into feature/single-instance
JVickery-TBS Aug 18, 2026
9b6def8
feat(schema): logic;
JVickery-TBS Aug 18, 2026
4ea56b9
Merge branch 'feature/ds-reference-tables' into feature/single-instance
JVickery-TBS Aug 18, 2026
248e75b
fix(misc): syntax;
JVickery-TBS Aug 18, 2026
e366ae7
feat(js): exit site warning;
JVickery-TBS Aug 20, 2026
cec1dfc
feat(misc): changelog;
JVickery-TBS Aug 20, 2026
029e347
Merge branch 'master' into feature/single-instance
JVickery-TBS Aug 20, 2026
9fc9a6a
Merge branch 'feature/leaving-site-modal' into feature/single-instance
JVickery-TBS Aug 20, 2026
0bf7463
Merge branch 'master' into feature/single-instance
JVickery-TBS Aug 21, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes/1583.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Reworked the Public Publishing Flow to use Core CKAN public/private. This assumes that the Registry and Portal share a database.
5 changes: 0 additions & 5 deletions ckanext/canada/assets/internal/webassets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@ cascading_select:
- cascading_select.js
output: canada_internal/%(version)s_cascading_select.js

geomap_zoom:
contents:
- geomapzoom.js
output: canada_internal/%(version)s_geomapzoom.js

organization_edit:
contents:
- registry_organization_edit.js
Expand Down
8 changes: 8 additions & 0 deletions ckanext/canada/assets/public/canada_public.css
Original file line number Diff line number Diff line change
Expand Up @@ -1622,6 +1622,14 @@ body .canada-admin-trash #accordion-group{
}
}
/* BS4+ Fix. TODO: remove after upgrade to BS4+ */
body .float-right{
float: right;
}
/* BS4+ Fix. TODO: remove after upgrade to BS4+ */
body .float-left{
float: left;
}
/* BS4+ Fix. TODO: remove after upgrade to BS4+ */
body .modal.fade,
body .popover.fade{
animation: modal-fade-out 0.325s ease-in 0s forwards !important;
Expand Down
5 changes: 0 additions & 5 deletions ckanext/canada/assets/public/webassets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@ check_all:
- check_all.js
output: canada_public/%(version)s_check_all.js

geomap_zoom:
contents:
- geomapzoom.js
output: canada_public/%(version)s_geomapzoom.js

i18n:
contents:
- i18n.js
Expand Down
44 changes: 16 additions & 28 deletions ckanext/canada/auth.py
Original file line number Diff line number Diff line change
@@ -1,40 +1,46 @@
from ckan.types import Context, DataDict, AuthResult

from ckan.plugins.toolkit import config
from ckan.plugins.toolkit import config, h
from ckan.authz import has_user_permission_for_group_or_org


def _is_reporting_user(context: Context):
# type_ignore_reason: underscored method
def _is_reporting_user(context: Context): # type: ignore
if not context.get('user') or not config.get('ckanext.canada.reporting_user'):
return False
return context.get('user') == config.get('ckanext.canada.reporting_user')


def _registry_org_perms(context: Context, data_dict: DataDict) -> AuthResult:
Comment thread
JVickery-TBS marked this conversation as resolved.
Outdated
try:
if h.is_registry_domain():
return {'success': bool(context.get('user'))}
except RuntimeError:
pass
return {'success': True}


def view_org_members(context: Context, data_dict: DataDict) -> AuthResult:
user = context.get('user')
can_view = has_user_permission_for_group_or_org(
data_dict.get('id'), user, 'manage_group')
return {'success': can_view}


def registry_jobs_running(context: Context, data_dict: DataDict) -> AuthResult:
return {'success': _is_reporting_user(context)}


def group_list(context: Context, data_dict: DataDict) -> AuthResult:
return {'success': bool(context.get('user'))}
return _registry_org_perms(context, data_dict)


def group_show(context: Context, data_dict: DataDict) -> AuthResult:
return {'success': bool(context.get('user'))}
return _registry_org_perms(context, data_dict)


def organization_list(context: Context, data_dict: DataDict) -> AuthResult:
return {'success': bool(context.get('user'))}
return _registry_org_perms(context, data_dict)


def organization_show(context: Context, data_dict: DataDict) -> AuthResult:
return {'success': bool(context.get('user'))}
return _registry_org_perms(context, data_dict)


def recently_changed_packages_activity_list(
Expand All @@ -44,21 +50,3 @@ def recently_changed_packages_activity_list(
Legacy, anyone can view.
"""
return {'success': True}


def portal_sync_info(context: Context, data_dict: DataDict) -> AuthResult:
"""
Registry users have to be logged in.

Anyone on public Portal can access.
"""
# TODO: remove during PortalUpdater removal/rework
return {'success': True}


def list_out_of_sync_packages(context: Context,
data_dict: DataDict) -> AuthResult:
"""
Only sysadmins can list the out of sync packages.
"""
return {'success': False}
Loading
Loading