Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
222 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
a5f4ada
Merge branch 'master' into feature/leaving-site-modal
JVickery-TBS Aug 20, 2026
0bf7463
Merge branch 'master' into feature/single-instance
JVickery-TBS Aug 21, 2026
e43f9ac
feat(js): styles,protocols;
JVickery-TBS Aug 25, 2026
abb7d87
Merge branch 'feature/leaving-site-modal' into feature/single-instance
JVickery-TBS Aug 25, 2026
725831f
revert(pd): service names;
JVickery-TBS Aug 25, 2026
12b032d
Merge branch 'feature/ds-reference-tables' into feature/single-instance
JVickery-TBS Aug 25, 2026
ccd26b7
fix(cli): load ref data;
JVickery-TBS Aug 25, 2026
02e780e
Merge branch 'feature/ds-reference-tables' into feature/single-instance
JVickery-TBS Aug 25, 2026
eafeacf
feat(js): styles,protocols;
JVickery-TBS Aug 25, 2026
f01db99
Merge branch 'feature/leaving-site-modal' into feature/single-instance
JVickery-TBS Aug 25, 2026
2dd38ce
fix(tests): service;
JVickery-TBS Aug 25, 2026
3abe17d
Merge branch 'feature/ds-reference-tables' into feature/single-instance
JVickery-TBS Aug 25, 2026
1ea6eee
feat(pd): service;
JVickery-TBS Aug 26, 2026
a06ef4f
Merge branch 'master' into feature/single-instance
JVickery-TBS Aug 26, 2026
a013c1f
Merge branch 'feature/ds-reference-tables' into feature/single-instance
JVickery-TBS Aug 26, 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
22 changes: 18 additions & 4 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ jobs:
printf "\n ${srcName}: pip info\n";
pip show ${srcName};
if [[ "${reslog}" == "" && "${DO_PIP_REINSTALL}" == "false" ]]; then
printf "${srcName}: Up to date. Skipping..."
printf "${srcName}: Up to date. Skipping..."
else
git pull --ff-only || true;
printf "\n${srcName}: Pulled updated code. Re-initializing in python environment..."
Expand All @@ -231,6 +231,15 @@ jobs:
python $dir/setup.py develop || true;
fi;
fi;
if [[ -f "$dir/dev-requirements.txt" ]]; then
pip install -r $dir/dev-requirements.txt || true;
fi;
if [[ -f "$dir/test-requirements.txt" ]]; then
pip install -r $dir/test-requirements.txt || true;
fi;
if [[ -f "$dir/setup.py" ]]; then
python $dir/setup.py develop || true;
fi;
else
printf "\n${srcName}: Not a source repository. Skipping..."
fi;
Expand All @@ -255,6 +264,8 @@ jobs:
pip install -r test-requirements.txt
pip install setuptools==70.0.0
python3 setup.py develop
npm install -D
npm run build
cd /srv/app/src/ckan
pip install -e .
python3 setup.py develop
Expand All @@ -267,13 +278,16 @@ jobs:
. /srv/app/src/ckan/bin/postgres_init/2_create_ckan_datastore_db.sh
ckan -c /srv/app/src/ckanext-canada/test-core.ini db init
ckan -c /srv/app/src/ckanext-canada/test-core.ini datastore set-permissions | psql -U postgres --set ON_ERROR_STOP=1
ckan -c /srv/app/src/ckanext-canada/test-core.ini xloader db-init
ckan -c /srv/app/src/ckanext-canada/test-core.ini validation init-db
ckan -c /srv/app/src/ckanext-canada/test-core.ini security migrate
ckan -c /srv/app/src/ckanext-canada/test-core.ini canada update-triggers
ckan -c /srv/app/src/ckanext-canada/test-core.ini recombinant create-triggers -a
ckan -c /srv/app/src/ckanext-canada/test-core.ini db upgrade
ckan -c /srv/app/src/ckanext-canada/test-core.ini db pending-migrations --apply
ckan -c /srv/app/src/ckanext-canada/test-core.ini db pending-migrations --apply
ckan -c /srv/app/src/ckanext-canada/test-core.ini recombinant create-ref-tables
ckan -c /srv/app/src/ckanext-canada/test-core.ini pd load-ref-data -v
- name: Download Test Durations
if: needs.define-matrix.outputs.restored == 'true'
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -384,7 +398,7 @@ jobs:
for dir in /srv/app/src/*; do
srcName=$(echo "$dir" | awk -F'/' '{print $NF}');
if [[ -d "$dir/.git" ]]; then
printf "\n${srcName}: Checking for updates..."
printf "\n\n${srcName}: Checking for updates..."
cd $dir;
current_branch=$(git rev-parse --abbrev-ref HEAD);
if [[ "$srcName" == "ckan" ]]; then
Expand All @@ -395,10 +409,10 @@ jobs:
reslog=$(git log HEAD..origin/$current_branch --oneline);
fi;
if [[ "${reslog}" == "" ]]; then
printf "\n${srcName}: Up to date. Skipping..."
printf " ${srcName}: Up to date. Skipping..."
else
git pull --ff-only || true;
printf "\n${srcName}: Pulled updated code. Re-initializing in python environment..."
printf "\n ${srcName}: Pulled updated code. Re-initializing in python environment..."
cd /srv/app;
if [[ -f "$dir/requirements.txt" ]]; then
pip install -r $dir/requirements.txt || true;
Expand Down
34 changes: 34 additions & 0 deletions .github/workflows/si_release_listener.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Service Inventory Release Listener
on:
issues:
types: [opened]

jobs:
make_pr:
if: startsWith(github.event.issue.title, '[SI-RELEASE]')
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Run Ref Data Generation
run: |
cd bin;
python service_generate_reference_data.py;

- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: |
build(pd): service inventory;

- Auto build ref data from issue ${{ github.event.issue.number }}.
branch: "si-release/${{ github.event.issue.number }}"
title: "[SI-RELEASE] Issue #${{ github.event.issue.number }}"
body: |
Newly generated reference data for Service Inventory.

This PR was created automatically from issue #${{ github.event.issue.number }}

cc: @ge-tbs
reviewers: JVickery-TBS, RabiaSajjad
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ ckanext_canada.egg-info
*.pyc
.project
.pydevproject
build
dist
*.swp
development.ini
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
| [Configurations](#configurations) |
| [SOLR](#solr) |
| [Localization](#localization) |
| [WebAssets](#webassets) |
| [Migrations](#migrations) |
| [Data Flows](#data-flows) |

Expand Down Expand Up @@ -259,6 +260,17 @@ updated translations by running:
python setup.py compile_catalog
```

## WebAssets

CKAN uses python webassets to compile and serve front-end assets like CSS stylesheets and JS scripts. Though webassets offers filters for Sass and JS Minify, it is better practice to not have Node build utilities on production servers. Thus we compile the assets locally via Node and commit to the source GitHub repository (though this is also not best practice, it is required due to deployment constraints).

If you change webassets, you will need to build them:

```
npm install -D
npm run build
```

## Migrations

### Creating a plugin migration
Expand Down
45 changes: 38 additions & 7 deletions bin/filter/filter_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import csv
import os
import sys
import yaml

from typing import Dict, Any

Expand Down Expand Up @@ -37,13 +36,31 @@

BOM = "\N{bom}"

PROGRAM_IDS_FILE = os.path.join(
os.path.split(__file__)[0],
'../../ckanext/canada/tables/choices'
'/service_program_ids.yaml')
SERVICE_ID_REF_DATA_FILE = os.path.join(
os.path.split(__file__)[0],
'../../ckanext/canada/tables/references'
'/data/ref_service_service_ids.csv')
SERVICE_IDS = {}
with open(SERVICE_ID_REF_DATA_FILE, 'r') as f:
c = csv.DictReader(f)
for row in c:
SERVICE_IDS[row['service_id']] = {
'en': row['label_en'],
'fr': row['label_fr']
}

PROGRAM_ID_REF_DATA_FILE = os.path.join(
os.path.split(__file__)[0],
'../../ckanext/canada/tables/references'
'/data/ref_service_program_ids.csv')
PROGRAM_IDS = {}
with open(PROGRAM_IDS_FILE, 'r') as f:
PROGRAM_IDS = yaml.safe_load(f)
with open(PROGRAM_ID_REF_DATA_FILE, 'r') as f:
c = csv.DictReader(f)
for row in c:
PROGRAM_IDS[row['program_id']] = {
'en': row['label_en'],
'fr': row['label_fr']
}


def test(record: Dict[str, Any]) -> Dict[str, Any]:
Expand Down Expand Up @@ -79,12 +96,26 @@ def process_row(row: Dict[str, Any]) -> Dict[str, Any]:
count = int(row[field])
row['num_applications_total'] += count

# populate service names from ids
# though part of service_id controlled list, still require
# users to input the Service Name. (2026-09-01;Sept.)
# row['service_name_en'] = SERVICE_IDS[row['service_id']]['en']
# row['service_name_fr'] = SERVICE_IDS[row['service_id']]['fr']

# populate program names from ids
row['program_name_en'] = []
row['program_name_fr'] = []
program_ids = row['program_id'].split(',')
for id in program_ids:
if id.endswith('-INV'):
# NOTE: not adding the suffix label to the published
# program_name_en and program_name_fr fields.
id = id.replace('-INV', '')
if id not in PROGRAM_IDS:
row['program_name_en'].append(
f'"Unknown Program Name for {id}"')
row['program_name_fr'].append(
f'"Inconnue désignation du programme pour {id}"')
continue
# NOTE: we add double quotes as Program Names can have
# single quotes and commas in them
Expand Down
20 changes: 20 additions & 0 deletions bin/filter/filter_service_std.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python3

import csv
import os
import sys

from typing import Dict, Any
Expand All @@ -25,6 +26,19 @@

BOM = "\N{bom}"

SERVICE_ID_REF_DATA_FILE = os.path.join(
os.path.split(__file__)[0],
'../../ckanext/canada/tables/references'
'/data/ref_service_service_ids.csv')
SERVICE_IDS = {}
with open(SERVICE_ID_REF_DATA_FILE, 'r') as f:
c = csv.DictReader(f)
for row in c:
SERVICE_IDS[row['service_id']] = {
'en': row['label_en'],
'fr': row['label_fr']
}


def test(record: Dict[str, Any]) -> Dict[str, Any]:
return process_row(record)
Expand Down Expand Up @@ -76,6 +90,12 @@ def process_row(row: Dict[str, Any]) -> Dict[str, Any]:
else:
row['target_met'] = 'N'

# populate service names from ids
# though part of service_id controlled list, still require
# users to input the Service Name. (2026-09-01;Sept.)
# row['service_name_en'] = SERVICE_IDS[row['service_id']]['en']
# row['service_name_fr'] = SERVICE_IDS[row['service_id']]['fr']

return row


Expand Down
Loading
Loading