Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to v2.10.1 #13

Open
wants to merge 3,259 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3259 commits
Select commit Hold shift + click to select a range
28d6b2c
Add changelog
pdelboca Nov 1, 2022
4a43842
Merge pull request #7167 from ckan/7166-old-and-new
pdelboca Nov 1, 2022
e54f0bc
Update activity stream icons to fontawesome
pdelboca Nov 2, 2022
3a57e66
Clean obsolete new class and add pull-right
pdelboca Nov 2, 2022
fd12969
Fix background position
pdelboca Nov 2, 2022
eb3e31b
Clean obsolete class
pdelboca Nov 2, 2022
5a4dd1c
Simplify scss file
pdelboca Nov 3, 2022
49effff
Move variables. Remove obsolete followee-popover css class.
pdelboca Nov 3, 2022
ff470c2
Move activity css to extensions folder
pdelboca Nov 3, 2022
95cc57a
Add changelog
pdelboca Nov 3, 2022
cb33e18
Added a `search-index` subcommand `list-unindexed`
JVickery-TBS Nov 3, 2022
0aa260c
Added changelog file.
JVickery-TBS Nov 3, 2022
b14d586
syntax fixes from flake8.
JVickery-TBS Nov 4, 2022
c7e6b74
Changed code to re-used `only-missing` code from the `rebuild` sub-co…
JVickery-TBS Nov 4, 2022
92cb117
Add closing quote
pdelboca Nov 6, 2022
60934c4
Merge pull request #7177 from pdelboca/add-closing-quotes
amercader Nov 8, 2022
7e2ad3e
Merge pull request #7161 from pdelboca/fix-boostrap3-webassets
amercader Nov 9, 2022
e16ff34
Merge pull request #7162 from pdelboca/fix-license-input-display
amercader Nov 9, 2022
279081a
Merge pull request #7163 from pdelboca/sync-css-files
amercader Nov 9, 2022
f7ddbf6
Merge pull request #7169 from pdelboca/fix-activity-stream-icons
amercader Nov 9, 2022
707a394
Merge pull request #7139 from ckan/use-api-tokens-in-datapusher
amercader Nov 9, 2022
bd151f7
Update version for 2.10b
amercader Nov 9, 2022
97ce030
[#7119] package_update performance backport version
wardi Oct 4, 2022
6631550
[#7119] filter first, then purge
wardi Nov 14, 2022
9a13946
[#7119] changelog
wardi Nov 14, 2022
6fc526b
Update control-label to BS5 form-label
pdelboca Nov 6, 2022
0d1194f
Update from control-label to form-label
pdelboca Nov 6, 2022
adcc5b2
Fix 404 when selecting the same date in the changes view
amercader Nov 9, 2022
6e86c20
add changelog
amercader Nov 9, 2022
4401e01
Fix social icons
pdelboca Nov 11, 2022
e80a529
Fix popular icon
pdelboca Nov 12, 2022
a503ff8
Clean icons of facet-list
pdelboca Nov 12, 2022
c6b7581
Remove no longer used template
pdelboca Nov 12, 2022
0baccde
Clean old ckan-icon css class
pdelboca Nov 12, 2022
ef5b2ff
Add changelog
pdelboca Nov 12, 2022
2b44331
Cleanup tertiary CSS class
pdelboca Nov 15, 2022
8243ef7
Clean unused nav-btn css class
pdelboca Nov 15, 2022
8346e01
Add close element in facet nav
pdelboca Nov 15, 2022
4e38115
Remove copied file
pdelboca Nov 12, 2022
f237880
Fix tag list css class
pdelboca Nov 10, 2022
16b51ae
[i18n] Update strings catalog (pot)
amercader Nov 16, 2022
e05a36a
[i18n] Update po files with latest strings for 2.10
amercader Nov 16, 2022
3ae6fa9
[i18n] Compile string files
amercader Nov 16, 2022
c5e441f
[i18n] Fix errors in po files
amercader Nov 16, 2022
0943254
[i18n] Update transifex resource id
amercader Nov 16, 2022
231686c
[i18n] Compile string files
amercader Nov 16, 2022
27a64e1
[#7119] explain reasons for changes to resource handling
wardi Nov 22, 2022
4b1c77f
[#7230] Add dev containers / codespaces config for CKAN 2.10
amercader Nov 29, 2022
04b02e4
config.get -> config.get_value / extra config declarations
smotornyuk Dec 5, 2022
22bcc12
fix tests
smotornyuk Dec 5, 2022
d1ca5a7
add changelog fragment
smotornyuk Dec 5, 2022
168c10f
Final update for types: 2022-12
smotornyuk Dec 5, 2022
868d1aa
fixes
smotornyuk Dec 5, 2022
4f86ece
remove unnecesarry type-ignore
smotornyuk Dec 5, 2022
3fd7a42
Merge pull request #7259 from ckan/types-2022-12
amercader Dec 6, 2022
00f7bc2
Add details to descritpion
smotornyuk Dec 8, 2022
7c18729
Merge pull request #7270 from JVickery-TBS/feature/list-unindexed-com…
smotornyuk Dec 8, 2022
7590afa
Merge pull request #7269 from ckan/7119-package_update-perf-purge
smotornyuk Dec 8, 2022
28871a3
[#6930] Fix robots.txt can no longer be easily customised by @TomeCirum
amercader Dec 22, 2022
2e0b785
Read ckan.datasets_per_page on group read handler
ddazal Oct 6, 2022
4850504
Fix typo in search-index command
evertramos Nov 16, 2022
908b8a3
Remove log warnings about ckan.requests.timeout not being declared
amercader Nov 17, 2022
a9d51e3
Add option to output token value without extra messages
amercader Nov 17, 2022
6e5a88f
changelog
amercader Nov 17, 2022
344ef11
Restore resource-icons scss file
pdelboca Nov 17, 2022
0406ad2
[#7222] Use parsed config values in Flask config
amercader Nov 18, 2022
fb737a5
[#7222] Add is_declared mehtod to config object
amercader Dec 6, 2022
b9b581e
[#7222] Use get_value on declared config options
amercader Dec 6, 2022
608f15f
Add ckan user clean command
pdelboca Nov 26, 2022
1414c4c
Add force option to user clean command
pdelboca Nov 26, 2022
d39f529
Add typing
pdelboca Nov 26, 2022
4043747
pep8 fixes
pdelboca Nov 26, 2022
ad017ff
Add docstring to user clean command
pdelboca Nov 26, 2022
cb5df40
Refactor to clean group command
pdelboca Nov 30, 2022
c698654
Fix typing
pdelboca Nov 30, 2022
3a55d78
Add change file
pdelboca Nov 30, 2022
9b8fd94
Write better change file
pdelboca Dec 5, 2022
23e2af7
Update message
pdelboca Dec 7, 2022
9a5324e
Update test to new output
pdelboca Dec 7, 2022
4d894d6
Add entity type to package get_index
Zharktas Dec 2, 2022
629c844
Fix package_update documentation
Zharktas Dec 13, 2022
83c7fe4
Fix imageview icon
pdekraker-epa Dec 16, 2022
7a5762a
Update reference to Bootstrap version in docs
pdelboca Dec 22, 2022
856f5d2
Fix config option call
pdelboca Dec 2, 2022
5aa8c04
Deprecate parameter limit
pdelboca Dec 2, 2022
cbb3e3e
Add side_effect_free to actions
pdelboca Dec 16, 2022
5bfbbc9
Update language
pdelboca Dec 16, 2022
d0376ed
Merge branch 'dev-v2.10' into missing-declarations-for-default-types
amercader Dec 22, 2022
c4b2adf
Merge branch 'missing-declarations-for-default-types' into dev-v2.10
amercader Dec 22, 2022
ac12b62
Fix wrong merge
amercader Jan 9, 2023
3e127d6
Add config values to test
pdelboca Jan 11, 2023
c88b7bd
Merge pull request #7322 from pdelboca/patch-config-test-2.10
amercader Jan 12, 2023
9859ab9
build: revert find.include in setup.cfg, fix bundling via MANIFEST.in
spwoodcock Jan 12, 2023
2923dbc
fix: add config/*.yaml to MANIFEST to bundle in pip package
spwoodcock Dec 16, 2022
7e68da0
Fix color contrast of btn-danger CSS to comply with WCAG 2 AA
shashigharti Jan 13, 2023
efd93a7
Add details about JWT secrets to docs
smotornyuk Jan 13, 2023
37eff2b
get_value -> get
smotornyuk Jan 17, 2023
be7f532
Merge pull request #7330 from ckan/api-token-secret-extra-doc-2.10
amercader Jan 18, 2023
c5d9dc0
fix types and codestyle
smotornyuk Jan 18, 2023
2bee6b6
fix indent
smotornyuk Jan 20, 2023
9c82375
Merge pull request #7339 from ckan/config-declaration-remove-get_valu…
amercader Jan 20, 2023
2afa448
[#7110] Enable DateTime to be returned through Actions by @EricSoroos
amercader Jan 23, 2023
80cc34a
add resource_view resource_id index
FuhuXia Oct 11, 2022
ab990f1
Add changelog
FuhuXia Oct 11, 2022
df32e19
Make heading semantic for bug report template
shashigharti Dec 28, 2022
29590ae
Added change log fragment
shashigharti Dec 31, 2022
90598ef
Adds title in iframe
shashigharti Dec 28, 2022
58369da
Update title of iframe in embed code
shashigharti Dec 28, 2022
ee5818a
Added changelog fragment
shashigharti Dec 31, 2022
7d28207
Fixed color contrast issue in add new dataset page
shashigharti Dec 29, 2022
d02bf66
Add to changelog
shashigharti Dec 31, 2022
3b171f1
Fix api_token_list parameter
amercader Jan 19, 2023
3afb8d5
Add changelog
amercader Jan 19, 2023
5c14a1e
Clean bs3 css migrated to ckanext-activity.
pdelboca Jan 20, 2023
6f2ebf6
Attach the actual config object to Click context
amercader Jan 12, 2023
727af46
Make skip to main content visible for keyboard-only users (#7299)
shashigharti Jan 24, 2023
df4cb01
Merge branch 'dev-v2.10' of github.com:ckan/ckan into dev-v2.10
amercader Jan 24, 2023
65ceb03
Logic for legacy_key
smotornyuk Jan 24, 2023
599e837
Tests for legacy_key
smotornyuk Jan 24, 2023
010803b
Mark ckan.route_after_login as a legacy option
smotornyuk Jan 24, 2023
bb84fdf
Documentation for legacy_key
smotornyuk Jan 24, 2023
cb7992b
Fix tests
smotornyuk Jan 24, 2023
4785438
Doc tweaks
amercader Jan 24, 2023
c555a97
Fix datapusher upload log icons and css (#7279)
shashigharti Jan 24, 2023
1fd991e
Update DataTables plugin file to avoid JS error (#7362)
amercader Jan 26, 2023
43e80e5
Provide a fallback value for WTF_CSRF_SECRET_KEY
amercader Jan 26, 2023
dc507c8
Remove requirement-setuptools, and all references
EricSoroos Jan 24, 2023
15c67dd
Added changelog entry
EricSoroos Jan 24, 2023
d93514a
Touch up ci for requirement-setuptools.txt removal
EricSoroos Jan 24, 2023
920ea4c
Merge pull request #7311 from shashigharti/7193-fix-color-contrast-ac…
tino097 Jan 27, 2023
79136b4
Fixes a two errors when dealing with a encoded url.
EricSoroos Sep 30, 2021
f4ae9a7
Fix urlparse function call
EricSoroos Jun 21, 2022
0ec43d6
Lint
EricSoroos Sep 27, 2022
def7910
changelog entry
EricSoroos Dec 8, 2022
8d5300d
[#5888] use normal keys for package_revise errors
wardi Sep 21, 2022
8324dc6
[#5888] changes
wardi Sep 21, 2022
ecfaa2f
Describe how to add models to existing metadata
smotornyuk Jan 24, 2023
2c34886
Note for v2.10
smotornyuk Jan 24, 2023
af676c2
Add BaseModel to toolkit
smotornyuk Jan 26, 2023
d81d3e9
Fix broken formatting for first item in the toolkit docs
smotornyuk Jan 26, 2023
99ac15b
Add changelog entry
smotornyuk Jan 26, 2023
5ef2eee
Doc tweaks
amercader Jan 31, 2023
6e53b60
Fix names of organization and sysadmin factory fixtures
smotornyuk Feb 6, 2023
b9f0eea
Add meta csrf_field_name logic to templates and js
pdelboca Jan 30, 2023
b6c5045
Fix bs3 csrf_field_name meta tag
pdelboca Jan 30, 2023
daa4cc6
Add tests for CSRF logic
pdelboca Jan 30, 2023
ba07193
Fix CSRF test syntax
pdelboca Jan 30, 2023
e1c82e6
Separate requirements install instruction
pdelboca Nov 15, 2022
30e1f24
Update install instructions
pdelboca Nov 17, 2022
d5ed661
Update solr section
pdelboca Nov 17, 2022
6e92c3b
Fix sentence
pdelboca Nov 17, 2022
b036014
Update versions in install docs
amercader Feb 7, 2023
d82c535
Remove outdated doc pages
amercader Feb 7, 2023
89d9dcb
Remove docker under contrib/ and the CKAN Dockerfile
kowh-ai Feb 1, 2023
a36f596
Create change file 7370.removal
kowh-ai Feb 1, 2023
c720d9f
Tweak changelog entry
amercader Feb 7, 2023
25f6fe2
[#7383] Add type to WTF_CSRF_TIME_LIMIT
smotornyuk Feb 9, 2023
a6d4f59
[#7383] Add type to WTF_CSRF_TIME_LIMIT
smotornyuk Feb 9, 2023
58ef21d
Update Solr manual install docs
amercader Feb 9, 2023
dcce2e0
Update package install docs
amercader Feb 13, 2023
4923541
Update default value for ckan.storage_path to match docs
amercader Feb 13, 2023
056a346
Update install-from-docker-compose.rst
kowh-ai Dec 15, 2022
4210b61
Another update to install-from-docker-compose.rst
kowh-ai Jan 11, 2023
50275e2
Update numbering
kowh-ai Jan 12, 2023
9d4823b
Update index.rst
kowh-ai Feb 1, 2023
e7006c6
Update doc/maintaining/installing/index.rst
kowh-ai Feb 6, 2023
b753619
Update doc/maintaining/installing/install-from-docker-compose.rst
kowh-ai Feb 6, 2023
49a4219
Complete re-haul to just link to repo docs
kowh-ai Feb 8, 2023
253683b
Another update
kowh-ai Feb 9, 2023
cfc37f2
Update install-from-docker-compose.rst
kowh-ai Feb 13, 2023
aac7251
Docker compose docs tweaks
amercader Feb 14, 2023
66fb848
Remove unnecessary orphan directive
amercader Feb 14, 2023
0372cef
Improve install index page
amercader Feb 14, 2023
9e2616d
Update package.json
amercader Feb 14, 2023
84da33a
Add CSRF docs to extension best practices
amercader Feb 14, 2023
bf441e5
Update changelog for 2.10.0
amercader Feb 14, 2023
8f69ed1
Update .tx/config file format
amercader Feb 14, 2023
17bbfb5
[i18n] Pull po files from Transifex before 2.10.0
amercader Feb 14, 2023
cdc99da
[i18n] Compile mo files
amercader Feb 14, 2023
e4457b3
Merge pull request #7385 from ckan/7383-incorrect-type-of-CSRF_TIME_L…
amercader Feb 14, 2023
7c2a73b
Add more stuff to the changelog, including flask-login changes
amercader Feb 14, 2023
995338c
Merge branch 'dev-v2.10' of github.com:ckan/ckan into dev-v2.10
amercader Feb 14, 2023
3657bd8
Changelog tweaks
amercader Feb 14, 2023
70bec66
Update version for 2.10.0
amercader Feb 15, 2023
4e9096b
[doc] Fix package name in docs
amercader Feb 15, 2023
ecf6574
Update version number for 2.10.1b0
amercader Feb 15, 2023
4ff5609
Update install-from-source and postgres rst files
kowh-ai Mar 6, 2023
09c887f
Correct numbering
kowh-ai Mar 6, 2023
f2790ee
Fix dashboard_activity_stream call
mutantsan Mar 21, 2023
5cab5f1
Custom middlewares break the app
smotornyuk Mar 6, 2023
02592bc
add changelog fragment
smotornyuk Mar 6, 2023
e402321
rename changelog fragment
smotornyuk Mar 6, 2023
e3f50aa
Report missing file in config chain
smotornyuk Mar 6, 2023
eccd179
add changelog fragment
smotornyuk Mar 6, 2023
2db03ec
Do not use templates from disabled plugins
smotornyuk Mar 21, 2023
4bd6d14
Add changelog record
smotornyuk Mar 21, 2023
e6b02f7
Restore pagination styles in BS5
smotornyuk Apr 9, 2023
5c94fa0
Add changelog entry
smotornyuk Apr 10, 2023
bc7a956
Add CSRF token to pkg groups form
pdelboca Feb 23, 2023
0c88d28
Add changes file
pdelboca Feb 23, 2023
e5e87a5
Fix missing resource URL on update resource with uploaded file
mutantsan Mar 15, 2023
4d4b325
Fix custom macro styles
mutantsan Mar 17, 2023
ad1f49a
Fix mobile layout styles
mutantsan Mar 20, 2023
15cb3d3
Fix promote sysadmin layout
mutantsan Mar 20, 2023
bb8f66a
Fix markdown macros regression
mutantsan Mar 22, 2023
c78118e
Modified the RequestResetView post error redirect to work with base_p…
JVickery-TBS Aug 9, 2022
fa5c9f2
Added changelog file.
JVickery-TBS Aug 9, 2022
1fec0c8
[fix] [m] env config read from helper
svetozarstojkovic Feb 20, 2023
6bb4643
fix for automated tests
svetozarstojkovic Feb 22, 2023
50a9a16
fix for lint
svetozarstojkovic Feb 24, 2023
165ddaf
fix for lint
svetozarstojkovic Feb 24, 2023
852d21c
fix lint
svetozarstojkovic Feb 24, 2023
fb5512b
fix return type
svetozarstojkovic Feb 27, 2023
614e2f7
added return type
svetozarstojkovic Feb 27, 2023
0d750dc
removed return type
svetozarstojkovic Mar 1, 2023
b8fcfb9
helpers added parameter
svetozarstojkovic Mar 1, 2023
4c2fde1
added return type to get_helpers
svetozarstojkovic Mar 10, 2023
cb0f940
Add note about target branches in contributing docs
amercader Mar 9, 2023
9bbe9e4
feat: Set session scope for migrate_db_for fixture
smotornyuk Apr 27, 2023
64bfe3b
Add changelog entry
smotornyuk Apr 27, 2023
fb7fbf7
[#7486] Fix error when calling user_create with defer_commit
amercader Mar 22, 2023
e56893a
[#7486] Don't autocreate Dashboard objects, respect defer_commit
amercader Mar 22, 2023
0c03ebb
[#7486] Make activities for user_create honour defer_commit
amercader Mar 22, 2023
4cf637c
[#7486] Support for defer_commit in package/group/org create
amercader Mar 22, 2023
c6fd14a
[#7486] Lint, types
amercader Mar 22, 2023
23a68fd
[#7486] More typing fixes
amercader Mar 22, 2023
acaebbf
[#7486] lint
amercader Mar 22, 2023
7ca6d5b
[#7486] Expand changelog
amercader Mar 22, 2023
2142ec5
[#7486] [#7486] Add defer_commit to fresh_context
amercader May 3, 2023
71e1244
[#7486] lint
amercader May 3, 2023
e9b5248
[#7508] Escape names in emails
bluepython508 Mar 30, 2023
8e3d79b
Fix test
bluepython508 Mar 30, 2023
856f4b0
Use `email.utils.formataddr` from stdlib to format name/address pairs
bluepython508 Mar 31, 2023
b3d645a
Add changelog
bluepython508 Apr 18, 2023
3ab941c
Fix fontawesome icons, replace unavailable FA v3 icons
mutantsan Mar 20, 2023
a65bbd2
Translate 'Groups' in header
smotornyuk Mar 27, 2023
903bb45
Changelog record
smotornyuk Mar 27, 2023
cf9f43c
use attribute access
TomeCirun Mar 16, 2023
65f8fa5
license dictize
TomeCirun Mar 17, 2023
8844ce9
Add changelog entry
amercader May 4, 2023
e2c785a
[i18n] Pull translations for 2.10.1
amercader May 4, 2023
ab1d04c
[i18n] Compile mo files
amercader May 4, 2023
7cfc714
Update changelog for 2.10.1
amercader May 4, 2023
8bd1191
Tighten checks around incoming resource ids
amercader May 24, 2023
7179cda
Don't use Resource factories when creating new Datasets
amercader May 24, 2023
9915ba0
Update version for 2.10.1
amercader May 24, 2023
a1d8356
Merge tag 'ckan-2.10.1' into josh/2.10.1
jrdh Sep 8, 2023
6c25d33
Allow plugin-defined chained auth funcs to override core auth funcs
jrdh Sep 8, 2023
60f6bc8
Tidy up accidental extra comma in previous patch
jrdh Sep 8, 2023
d31c408
Remove no longer needed setuptools requirements pin
jrdh Sep 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
52 changes: 6 additions & 46 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,52 +13,18 @@ defaults:
ckan -c test-core-circle-ci.ini datastore set-permissions | psql --host=ckan-postgres --username=ckan
psql --host=ckan-postgres --username=ckan --dbname=${CKAN_DATASTORE_POSTGRES_DB} --command="CREATE extension tablefunc;"
ckan -c test-core-circle-ci.ini db init
gunzip .test_durations.gz
install_deps: &install_deps
run: |
# OS Dependencies
apt update
case $CIRCLE_NODE_INDEX in
$NODE_TESTS_CONTAINER)
curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt install -y nodejs
apt install -y libgtk2.0-0 libgtk-3-0 libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb
npm install
;;
esac
apt install -y postgresql-client
run_tests: &run_tests
# Tests Backend, split across containers by segments
run: |
mkdir -p ~/junit
case $CIRCLE_NODE_INDEX in
0) python -m pytest $PYTEST_COMMON_OPTIONS --test-group 1
;;
1) python -m pytest $PYTEST_COMMON_OPTIONS --test-group 2
;;
2) python -m pytest $PYTEST_COMMON_OPTIONS --test-group 3
;;
3) python -m pytest $PYTEST_COMMON_OPTIONS --test-group 4
;;
esac
mkdir -p ~/junit/result
python -m pytest ${PYTEST_COMMON_OPTIONS} --splits 4 --group $((CIRCLE_NODE_INDEX+1)) --splitting-algorithm least_duration

# Tests Frontend, only in one container
start_test_server: &start_test_server
run:
command: |
case $CIRCLE_NODE_INDEX in
$NODE_TESTS_CONTAINER) ckan -c test-core-circle-ci.ini run
;;
esac
background: true
run_front_tests: &run_front_tests
run:
command: |
case $CIRCLE_NODE_INDEX in
$NODE_TESTS_CONTAINER)
sleep 5
$(npm bin)/cypress run
;;
esac
ckan_env: &ckan_env
environment:
CKAN_DATASTORE_POSTGRES_DB: datastore_test
Expand All @@ -70,8 +36,7 @@ defaults:
CKAN_POSTGRES_USER: ckan_default
CKAN_POSTGRES_PWD: pass
PGPASSWORD: ckan
NODE_TESTS_CONTAINER: 3
PYTEST_COMMON_OPTIONS: -v --ckan-ini=test-core-circle-ci.ini --cov=ckan --cov=ckanext --junitxml=/root/junit/junit.xml --test-group-count 4 --test-group-random-seed 1
PYTEST_COMMON_OPTIONS: -v --ckan-ini=test-core-circle-ci.ini --cov=ckan --cov=ckanext --junitxml=~/junit/result/junit.xml
pg_image: &pg_image
image: postgres:10
environment:
Expand All @@ -84,13 +49,13 @@ defaults:
name: ckan-redis

solr_image: &solr_image
image: ckan/ckan-solr:2.9
image: ckan/ckan-solr:master
name: ckan-solr

jobs:
test-python-3:
docker:
- image: python:3.9-buster
- image: python:3.7-bullseye
<<: *ckan_env
- <<: *pg_image
- <<: *redis_image
Expand All @@ -104,7 +69,6 @@ jobs:
- <<: *install_deps
- run: |
# Python Dependencies
pip install -r requirement-setuptools.txt
pip install -r requirements.txt
pip install -r dev-requirements.txt
python setup.py develop
Expand All @@ -115,10 +79,6 @@ jobs:
- <<: *run_tests
- store_test_results:
path: ~/junit
- <<: *start_test_server
- <<: *run_front_tests
- store_artifacts:
path: ~/project/cypress/screenshots
- run: coveralls
workflows:
version: 2
Expand Down
4 changes: 2 additions & 2 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
},

// Use 'postCreateCommand' to run commands after the container is created.
"onCreateCommand": "pip install --user --upgrade -r requirement-setuptools.txt && pip install --user -r requirements.txt && pip install --user -r dev-requirements.txt",
"onCreateCommand": "pip install --user -r requirements.txt && pip install --user -r dev-requirements.txt",
"postCreateCommand": "./.devcontainer/setup.sh",
"postAttachCommand": "ckan run",

Expand All @@ -67,4 +67,4 @@
]
}
}
}
}
2 changes: 1 addition & 1 deletion .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ services:
dockerfile: .devcontainer/Dockerfile
args:
# [Choice] Python version: 3, 3.8, 3.7, 3.6
VARIANT: 3.8
VARIANT: 3.9
# [Choice] Node.js version: none, lts/*, 16, 14, 12, 10
NODE_VERSION: "lts/*"
# On Linux, you may need to update USER_UID and USER_GID below if not your local UID is not 1000.
Expand Down
7 changes: 1 addition & 6 deletions .devcontainer/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ ckan generate config ckan.ini
mkdir /workspace/data
ckan config-tool ckan.ini ckan.storage_path=/workspace/data

# Set up Solr URL
ckan config-tool ckan.ini solr_url=http://localhost:8983/solr/ckan

# Set up site URL
ckan config-tool ckan.ini ckan.site_url=https://$CODESPACE_NAME-5000.$GITHUB_CODESPACES_PORT_FORWARDING_DOMAIN

Expand All @@ -28,7 +25,5 @@ ckan config-tool ckan.ini \
ckan.datastore.read_url=postgresql://datastore_default:pass@localhost/datastore_default \
ckan.datapusher.url=http://localhost:8800 \
ckan.datapusher.callback_url_base=http://localhost:5000 \
"ckan.plugins=datastore datapusher datatables_view" \
"ckan.views.default_views= image_view text_view datatables_view"

"ckan.plugins=activity datastore datapusher datatables_view"
ckan datastore set-permissions | psql $(grep ckan.datastore.write_url ckan.ini | awk -F= '{print $2}')
65 changes: 65 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
[flake8]
exclude =
.*
./contrib
./bin
per-file-ignores =
test_*.py:E501
extend-exclude =
ckan/__init__.py,ckan/config/middleware.py
ckan/lib/app_globals.py
ckan/lib/cli.py
ckan/lib/create_test_data.py
ckan/lib/dictization/__init__.py
ckan/lib/dictization/model_dictize.py
ckan/lib/dictization/model_save.py
ckan/lib/email_notifications.py
ckan/lib/hash.py
ckan/lib/jinja_extensions.py
ckan/lib/maintain.py
ckan/lib/navl/validators.py
ckan/lib/plugins.py
ckan/lib/search/__init__.py
ckan/lib/search/index.py
ckan/lib/search/query.py
ckan/logic/action/__init__.py
ckan/logic/action/delete.py
ckan/logic/action/get.py
ckan/logic/action/update.py
ckan/logic/auth/create.py
ckan/logic/auth/delete.py
ckan/logic/auth/get.py
ckan/logic/auth/update.py
ckan/logic/converters.py
ckan/logic/validators.py
ckan/model/__init__.py
ckan/model/dashboard.py
ckan/model/domain_object.py
ckan/model/follower.py
ckan/model/group.py
ckan/model/group_extra.py
ckan/model/license.py
ckan/model/meta.py
ckan/model/misc.py
ckan/model/modification.py
ckan/model/package.py
ckan/model/package_extra.py
ckan/model/package_relationship.py
ckan/model/resource.py
ckan/model/system_info.py
ckan/model/tag.py
ckan/model/task_status.py
ckan/model/term_translation.py
ckan/model/tracking.py
ckan/model/user.py
ckan/model/vocabulary.py
ckan/authz.py
ckanext/datastore/logic/action.py
ckanext/datastore/tests/test_create.py
ckanext/example_idatasetform/plugin.py
ckanext/example_itemplatehelpers/plugin.py
ckanext/multilingual/plugin.py
ckanext/stats/stats.py
ckanext/test_tag_vocab_plugin.py
doc/conf.py
setup.py
11 changes: 6 additions & 5 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,17 @@ assignees: ''

---

**CKAN version**
## CKAN version

**Describe the bug**
## Describe the bug
A clear and concise description of what the bug is.

**Steps to reproduce**
### Steps to reproduce
Steps to reproduce the behavior:

**Expected behavior**
### Expected behavior
A clear and concise description of what you expected to happen.

**Additional details**
### Additional details
If possible, please provide the full stack trace of the error raised, or add screenshots to help explain your problem.

6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ contact_links:
- name: Security Issues
url: mailto:[email protected]
about: Please report any security related vulnerabilities here.
- name: Ideas Repository
url: https://github.com/ckan/ideas
about: For new feature requests or discussion, please create an issue on the ideas repository.
- name: Ideas and Discussion
url: https://github.com/ckan/ckan/discussions
about: For new feature requests or discussion, please create use the discussion forum.
4 changes: 4 additions & 0 deletions .github/codeql/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: "CKAN CodeQL config"

paths-ignore:
- '**/vendor/**'
71 changes: 71 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
name: "CodeQL"

on:
push:
branches: [master]
pull_request:
# The branches below must be a subset of the branches above
branches: [master]
schedule:
- cron: '0 3 * * 2'

permissions:
contents: read

jobs:
analyze:
permissions:
actions: read # for github/codeql-action/init to get workflow details
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/autobuild to send a status report
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
# Override automatic language detection by changing the below list
# Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
language: ['python', 'javascript']
# Learn more...
# https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection

steps:
- name: Checkout repository
uses: actions/checkout@v2

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-config.yml
setup-python-dependencies: false
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
# queries: ./path/to/local/query, your-org/your-repo/queries@main

# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@v1

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl

# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
# and modify them (or add more) to build your code if your project
# uses a compiled language

#- run: |
# make bootstrap
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
73 changes: 73 additions & 0 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Cypress
on: [pull_request]
env:
NODE_VERSION: '16'
PYTHON_VERSION: '3.7'

permissions:
contents: read

jobs:
cypress:
runs-on: ubuntu-latest
services:
ckan-postgres:
image: postgres:10
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
POSTGRES_USER: ckan_default
POSTGRES_PASSWORD: pass
POSTGRES_DB: ckan_test

ckan-redis:
image: redis
ports:
- 6379:6379
ckan-solr:
image: ckan/ckan-solr:master
ports:
- 8983:8983

env:
CKAN_SQLALCHEMY_URL: postgresql://ckan_default:pass@localhost/ckan_test
CKAN_SOLR_URL: http://localhost:8983/solr/ckan
CKAN_REDIS_URL: redis://localhost:6379/1

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: ${{ env.PYTHON_VERSION }}
- uses: actions/setup-node@v2-beta
with:
node-version: ${{ env.NODE_VERSION }}

- name: Install python deps
run: pip install -r requirements.txt -r dev-requirements.txt -e.

- name: Init environment
run: |
ckan -c test-core-cypress.ini db init

- name: Run Cypress
uses: cypress-io/github-action@v2
with:
start: ckan -c test-core-cypress.ini run

- uses: actions/upload-artifact@v1
if: failure()
with:
name: cypress-screenshots
path: cypress/screenshots
# Test run video was always captured, so this action uses "always()" condition
- uses: actions/upload-artifact@v1
if: always()
with:
name: cypress-videos
path: cypress/videos
Loading