Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
368116e
Update version for 2.10.8b0
amercader Feb 5, 2025
3b6562c
fix: restrict pypi/test pypi deployments to repo ckan/ckan and no other
duttonw Feb 11, 2025
e4b0360
Merge pull request #8661 from ckan/backport-8659-to-dev-v2.10
amercader Feb 11, 2025
2f30a2c
Fix typing error in uploader module
amercader Feb 11, 2025
326a6b1
Fix linting in uploader module
amercader Feb 11, 2025
67184b1
Merge pull request #8665 from ckan/backport-8662-to-dev-v2.10
amercader Feb 12, 2025
4a259a8
Add sysadmin check to has_user_permission_for_some_org
Zharktas Feb 20, 2025
c332759
Add changelog entry
Zharktas Feb 20, 2025
baacc26
Catch error in datastore
avdata99 Apr 3, 2024
7973530
Changelog
avdata99 Apr 3, 2024
f1e3e3b
Add status codes
avdata99 Apr 3, 2024
e3c302d
Add 403 response
avdata99 Apr 3, 2024
c5f10e6
Ignore typing errors on dev-v2.10 branch
amercader Feb 26, 2025
362bde4
Merge pull request #8681 from ckan/backport-8679-to-dev-v2.10
amercader Feb 26, 2025
0bf1c7d
Bump setuptools requirement
amercader Feb 27, 2025
d6e2626
default_user_schema: add missing boolean_validator
wardi Feb 17, 2025
456270a
Changelog
amercader Feb 27, 2025
98a6086
Fix version parsing in docs
amercader Feb 27, 2025
4864a51
Merge branch 'dev-v2.10' of github.com:ckan/ckan into dev-v2.10
amercader Feb 27, 2025
b69391d
Remove deprecated bs wrapper
tychuang1211 Mar 25, 2025
68a8105
[#8379] Store `session["last_active"]` as an iso string instead of a …
JamieBeverley Mar 25, 2025
ca7bd11
Merge pull request #8761 from JamieBeverley/backport-8721-to-dev-v2.10
wardi Apr 2, 2025
88f8863
Fix wrongly migrated btn-light
Zharktas Apr 17, 2025
4c018ef
Add changelog
Zharktas Apr 17, 2025
7aedc79
GitHub Action CI (Part 1)
amercader Apr 23, 2025
904cb29
Port test-infrastructure to 2.10
amercader Apr 23, 2025
d00eff3
GitHub Actions CI (Part 2)
amercader Apr 23, 2025
dafc07c
Use 2.10 Solr images in CI
amercader Apr 23, 2025
d5bf0e3
Update github action versions
amercader Apr 23, 2025
400c1a6
Lint
amercader Apr 23, 2025
2bead92
Downgrade pytest-rerunfailures
amercader Apr 23, 2025
2e49fbd
Fix cypress workflow file
amercader Apr 23, 2025
9cb89f7
Remove unused ini file
amercader Apr 23, 2025
45c5099
Add missing ini file
amercader Apr 23, 2025
9b333b6
Fix python version in pyright workflow
amercader Apr 23, 2025
92f8c4e
Ignore type errors related to setuptools version for now
amercader Apr 24, 2025
7974cb1
Refactor test_admin.py tests to avoid dodgy mocks
amercader Mar 13, 2023
92becec
Lint
amercader Apr 24, 2025
85c2879
Changelog
amercader Apr 24, 2025
6cba5e4
[#8506] Register pytest plugins as entrypoints
amercader Nov 6, 2024
b0f6e5c
[#8506] Changelog
amercader Nov 6, 2024
15a7744
apply 'humanize_entity_type' to the submit button on dataset group li…
ThrawnCA Feb 26, 2025
f87783b
[#8709] datastore_search: sort on array column types fix
wardi Mar 7, 2025
19dca96
[#8709] datastore_search: sort on inner select
wardi Mar 8, 2025
a5cf720
[#8709] tests on array sort
wardi Mar 9, 2025
3b9c037
Merge branch 'dev-v2.10' of github.com:ckan/ckan into dev-v2.10
amercader Apr 24, 2025
cea624e
Merge pull request #8909 from ckan/github-actions-ci-2.10
wardi Apr 24, 2025
b25d31d
chore: Update old HTTP documentations links
smotornyuk Mar 28, 2025
ce14691
[#8195] remove unsupported legacy API keys from documentation
wardi Apr 16, 2025
1613fa8
Merge branch 'dev-v2.10' of github.com:ckan/ckan into dev-v2.10
amercader Apr 25, 2025
843a34e
Merge branch 'dev-v2.10' into backport-8149-to-dev-v2.10
amercader Apr 25, 2025
afd260a
Fix towncrier action python version
amercader Apr 25, 2025
254bc7d
Merge branch 'dev-v2.10' into backport-8149-to-dev-v2.10
amercader Apr 25, 2025
6f13f92
Avoid intermittent Cypress failures
amercader Apr 25, 2025
8f5f439
Fix js syntax
amercader Apr 25, 2025
74c34cd
Fix cypress server URL
amercader Apr 28, 2025
6b3f274
Merge pull request #8688 from ckan/backport-8149-to-dev-v2.10
amercader Apr 28, 2025
bcf8ec7
Merge branch 'dev-v2.10' of github.com:ckan/ckan into dev-v2.10
amercader Apr 28, 2025
9b1fbaf
Merge pull request #8828 from ckan/fix_btn_light_on_2.10
amercader Apr 28, 2025
858067b
Bump Jinja2 to address CVE-2025-27516
amercader Apr 29, 2025
6ec8992
[#8803] refresh CSRF token before it expires on forms
wardi Apr 15, 2025
260cf3a
[#8803] remove snippet comment tests
wardi Apr 15, 2025
713379c
[#8803] use load polling
wardi Apr 16, 2025
c6d0daf
[#8803] no refresh, use long default timeout instead
wardi Apr 23, 2025
b84f0b9
[#8803] lint
wardi Apr 23, 2025
f8f7f1d
[#8803] apply WTF_CSRF_ENABLED, WTF_CSRF_TIME_LIMIT from config
wardi Apr 28, 2025
1573433
Update changelog and fix sphinx warning
amercader May 5, 2025
9ad1ec0
Remove changelog fragments
amercader May 5, 2025
fd5068d
Update version for 2.10.8
amercader May 7, 2025
95853ef
Merge branch 'branch-2.10.8' into backport/patch-2.10.8
JVickery-TBS Jun 6, 2025
b641d45
feat(misc): disable github workflows, changelog;
JVickery-TBS Jun 6, 2025
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 .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ 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 Down
2 changes: 2 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ exclude =
./bin
per-file-ignores =
test_*.py:E501
ckan/lib/helpers.py:F824
ckan/lib/jobs.py:F824
extend-exclude =
ckan/__init__.py,ckan/config/middleware.py
ckan/lib/app_globals.py
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ jobs:

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

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
config-file: ./.github/codeql/codeql-config.yml
Expand All @@ -55,7 +55,7 @@ jobs:
# 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
uses: github/codeql-action/autobuild@v3

# ℹ️ Command-line programs to run using the OS shell.
# 📚 https://git.io/JvXDl
Expand All @@ -69,4 +69,4 @@ jobs:
# make release

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v3
43 changes: 27 additions & 16 deletions .github/workflows/cypress.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: Cypress
on:
workflow_dispatch: # (canada fork only): disable Core repo workflows
# on: [pull_request]
# (canada fork only): disable Core repo workflows
# pull_request:
# workflow_call:
workflow_dispatch:
env:
NODE_VERSION: '16'
PYTHON_VERSION: '3.8'
PYTHON_VERSION: '3.9'

permissions:
contents: read
Expand All @@ -13,8 +15,8 @@ jobs:
cypress:
runs-on: ubuntu-latest
services:
ckan-postgres:
image: postgres:10
ckan_postgres:
image: postgres:15
ports:
- 5432:5432
options: >-
Expand All @@ -27,12 +29,12 @@ jobs:
POSTGRES_PASSWORD: pass
POSTGRES_DB: ckan_test

ckan-redis:
ckan_redis:
image: redis
ports:
- 6379:6379
ckan-solr:
image: ckan/ckan-solr:master
ckan_solr:
image: ckan/ckan-solr:2.10-solr9
ports:
- 8983:8983

Expand All @@ -46,30 +48,39 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip'
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'

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

- name: Init environment
run: |
ckan -c test-core-cypress.ini db init
ckan -c test-core-ci.ini db init
#cypress testing requires activity plugin to be active
ckan config-tool test-core-ci.ini "ckan.plugins = activity"

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

- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
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()
if-no-files-found: ignore

- uses: actions/upload-artifact@v4
if: failure()
with:
name: cypress-videos
path: cypress/videos
if-no-files-found: ignore
34 changes: 34 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Docs
on:
# (canada fork only): disable Core repo workflows
# workflow_call:
workflow_dispatch:
env:
PYTHON_VERSION: '3.9'

permissions:
contents: read

jobs:
docs:
runs-on: ubuntu-latest
steps:

- uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history, including tags

- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip'

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

- name: Create Docs
run: |
sphinx-build doc build/sphinx
10 changes: 6 additions & 4 deletions .github/workflows/flake8.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Lint
on:
workflow_dispatch: # (canada fork only): disable Core repo workflows
# on: [pull_request]
# (canada fork only): disable Core repo workflows
# pull_request:
# workflow_call:
workflow_dispatch:

permissions:
contents: read
Expand All @@ -10,8 +12,8 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.8'
- name: Install requirements
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/publish-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
build:
if: github.repository == 'ckan/ckan'
name: Build distribution
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -48,3 +49,10 @@ jobs:
path: dist/
- name: Publish distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1

publishSkipped:
if: github.repository != 'ckan/ckan'
runs-on: ubuntu-latest
steps:
- run: |
echo "## Skipping PyPI publish on downstream repository" >> $GITHUB_STEP_SUMMARY
8 changes: 8 additions & 0 deletions .github/workflows/publish-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

jobs:
build:
if: github.repository == 'ckan/ckan'
name: Build distribution
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -54,3 +55,10 @@ jobs:
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/

publishSkipped:
if: github.repository != 'ckan/ckan'
runs-on: ubuntu-latest
steps:
- run: |
echo "## Skipping PyPI publish on downstream repository" >> $GITHUB_STEP_SUMMARY
12 changes: 8 additions & 4 deletions .github/workflows/pyright.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: Check types
on:
workflow_dispatch: # (canada fork only): disable Core repo workflows
# on: [pull_request]
# (canada fork only): disable Core repo workflows
# pull_request:
# workflow_call:
workflow_dispatch:
env:
NODE_VERSION: '16'
PYTHON_VERSION: '3.8'
NODE_VERSION: '18'
PYTHON_VERSION: '3.9'

permissions:
contents: read
Expand All @@ -17,9 +19,11 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip'
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
cache: 'npm'
- name: Install python deps
run: pip install -r requirements.txt -r dev-requirements.txt -e.
- name: Install node deps
Expand Down
Loading