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

[pull] master from ckan:master #4

Merged
merged 605 commits into from
Jun 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
605 commits
Select commit Hold shift + click to select a range
1d9cc79
[#8108] ckanext-dsaudit compat
wardi Mar 15, 2024
5a0d3bb
[#8108] fix for field ids with spaces
wardi Mar 15, 2024
d9d3868
[QOLDEV-744] add reCAPTCHA protection to login and password reset
ThrawnCA Mar 18, 2024
869d404
[QOLDEV-744] allow sysadmins to update usernames
ThrawnCA Mar 18, 2024
a6f815b
[#8108] no accordion when no extra data
wardi Mar 18, 2024
1c6e1ec
[#8108] no accordion when no extra data
wardi Mar 18, 2024
eb80a5b
[#8108] fix for field ids with spaces
wardi Mar 15, 2024
be174d9
[#8108] ckanext-dsaudit compat
wardi Mar 15, 2024
c7543b7
[#8108] ckanext-dsaudit compat
wardi Mar 15, 2024
3d10489
[QOLSVC-4988] fix email notification checkbox, #8124
ThrawnCA Mar 19, 2024
ef07375
add changelog entry for #8124
ThrawnCA Mar 19, 2024
b0ed536
Merge pull request #8125 from qld-gov-au/github-8124-email-notificati…
wardi Mar 19, 2024
fae6879
Merge pull request #8110 from ckan/8108-data-dictionary-preview
smotornyuk Mar 20, 2024
4a51415
Merge remote-tracking branch 'origin/master' into 6118-table-designer
wardi Mar 21, 2024
27b9164
[#6118] obligation in dictionary view
wardi Mar 21, 2024
198ac45
[#6118] ckanext-dsaudit screenshots
wardi Mar 21, 2024
3c9fd6e
Evaluate use_default_schema as boolean
Zharktas Mar 22, 2024
3522bba
Add changelog entry
Zharktas Mar 22, 2024
7926c62
Merge pull request #8130 from ckan/fix_use_default_schema_parameter
wardi Mar 26, 2024
c7a4047
use translated notes field in meta block
wardi Mar 27, 2024
f444a91
fix: Allow using `.` in solr local params
smotornyuk Apr 1, 2024
e72b6b9
Hide invite user form if can't create users
avdata99 Apr 2, 2024
22f24ae
Add test
avdata99 Apr 2, 2024
4f599cd
Add changelog
amercader Apr 3, 2024
d124e33
Merge branch 'allow-dot-in-solr-local-params'
amercader Apr 3, 2024
15b8c34
Upgrade requirements
amercader Apr 3, 2024
b07da91
Upgrade requirements' requirements
amercader Apr 3, 2024
e701479
Upgrade dev requirements
amercader Apr 3, 2024
7854506
Add an error notification when rebuilding the search index for a pack…
EricSoroos Apr 3, 2024
7ca456d
Merge pull request #8135 from ckan/translate-notes-meta
tino097 Apr 3, 2024
a1e53d3
lint
EricSoroos Apr 4, 2024
84bb65f
changelog
EricSoroos Apr 4, 2024
c634d42
Merge pull request #8148 from EricSoroos/search_rebuild_message
wardi Apr 4, 2024
b9f8bcd
feat(templates): css classes;
JVickery-TBS Apr 4, 2024
6f60c78
feat(dev): changelog;
JVickery-TBS Apr 4, 2024
df5353e
Remove setup method in queues test class
amercader Apr 5, 2024
e3a4bfa
Replace setup methods with fixtures
amercader Apr 5, 2024
65d887c
Typing
amercader Apr 5, 2024
ffc7925
Upgrade js requirements
amercader Apr 5, 2024
b6d9eec
lint, types
amercader Apr 5, 2024
1352674
Fix version handling in docs configuration
amercader Apr 5, 2024
9a9777c
Merge branch 'requirements-april-2024' into requirements-april-2024-js
amercader Apr 5, 2024
012c44d
Update cypress tests to disable test isolation
amercader Apr 8, 2024
4a6c8dd
Replace fontawesome fonts to avoid errors
amercader Apr 8, 2024
a198c72
Revert Bootstrap back to 5.1
amercader Apr 8, 2024
81aeaa0
Add distinct style for link text
amercader Apr 8, 2024
5b12b87
Revert pyright to previous version
amercader Apr 8, 2024
6f1e1c4
Sync package.json - package-lock.json
amercader Apr 8, 2024
501d011
Adapt test for Python 3.11 support
amercader Apr 9, 2024
18cda5e
Merge pull request #8154 from JVickery-TBS/feature/view-list-classes
wardi Apr 9, 2024
3b74c0b
Add ipv6 test
amercader Apr 10, 2024
7fdf689
Update base.html
tkallady Apr 11, 2024
700fb01
Update css.rst
tkallady Apr 11, 2024
7389cc8
Clarify installation assumptions in getting started
jjohnston-aims Apr 15, 2024
95da08f
Merge pull request #8094 from TomeCirun/fix-dataset-respond-200-when-…
pdelboca Apr 16, 2024
4da81ee
Merge pull request #8171 from ckan/fix-test-on-py3.11
smotornyuk Apr 17, 2024
f53daad
Merge branch 'master' of https://github.com/ckan/ckan into add-login-…
ThrawnCA Apr 17, 2024
1d0a97f
redirect to view name instead of hardcoded path
ThrawnCA Apr 17, 2024
ce0de1f
add changelog for reCAPTCHA protection #8121
ThrawnCA Apr 17, 2024
5d4f107
[#8179] Correct package_patch docstring re: updating resources
wardi Apr 17, 2024
8a516e6
Merge branch 'master' into remove-pyutillib
smotornyuk Apr 17, 2024
31d87e7
Add workflow for backporting pull requests
amercader Apr 17, 2024
7850fab
Merge pull request #8180 from jjohnston-aims/jjohnston-aims-patch-1
wardi Apr 17, 2024
594f29e
feat: support interface subclassing as implementation
smotornyuk Apr 17, 2024
05ae4af
Merge branch 'master' of https://github.com/ckan/ckan into add-login-…
ThrawnCA Apr 17, 2024
7046c6d
include request context when running authenticator tests
ThrawnCA Apr 17, 2024
a565baa
Merge branch 'add-login-recaptcha' of https://github.com/qld-gov-au/c…
ThrawnCA Apr 17, 2024
3c16ce3
chore: add changelog entry
smotornyuk Apr 18, 2024
13b0bc1
Merge pull request #8121 from qld-gov-au/add-login-recaptcha
smotornyuk Apr 18, 2024
d28c121
Merge branch 'master' of https://github.com/ckan/ckan into github-419…
ThrawnCA Apr 18, 2024
b7ca756
Document the backports action
amercader Apr 18, 2024
d0e8bab
Fix doc build issue
amercader Apr 18, 2024
0d035e9
Add changelog
amercader Apr 18, 2024
cb26a6c
Fix docs again
amercader Apr 18, 2024
ab7ce51
Merge pull request #8186 from ckan/8179-patch-docstring
kowh-ai Apr 18, 2024
4f04000
adjust test syntax to match other tests, #4193
ThrawnCA Apr 18, 2024
2dfd6b5
Merge pull request #8036 from TomeCirun/8021-datatables-does-not-impl…
pdelboca Apr 19, 2024
a638395
Merge pull request #8122 from qld-gov-au/github-4193-username-editing
amercader Apr 19, 2024
85bda1a
connection error message less details
FuhuXia Apr 24, 2024
1039c82
Merge branch 'master' into remove-beaker
amercader Apr 24, 2024
239f91b
Add packaging as first level requirement
amercader Apr 24, 2024
04b2daf
Update lock files
amercader Apr 24, 2024
04104e8
Remove beaker that snuck back in previous merge
amercader Apr 24, 2024
e194b1e
Bump Flask-session to 0.8.0
amercader Apr 24, 2024
d081f58
Update sessions documentation
amercader Apr 24, 2024
7287d62
Merge pull request #8141 from avdata99/hide_invite_if_no_crete
tino097 Apr 24, 2024
f9bd198
less details; extend Exception
FuhuXia Apr 24, 2024
c2b4d70
Merge pull request #8146 from ckan/requirements-april-2024
smotornyuk Apr 25, 2024
5baee81
Merge pull request #8157 from ckan/requirements-april-2024-js
smotornyuk Apr 25, 2024
ce6f837
Merge pull request #8178 from tkallady/patch-1
tino097 Apr 25, 2024
6e92d1c
Merge branch 'master' into 6118-table-designer
amercader Apr 26, 2024
b09be9a
[#6118] align create/edit text
wardi Apr 30, 2024
75568cd
[#6118] alert for empty table
wardi Apr 30, 2024
4fc42e6
[#6118] datastore_upsert: no fail on no fields
wardi Apr 30, 2024
4a11723
[#6118] move add button to datatable
wardi Apr 30, 2024
b166fa2
Merge branch 'solr-connection-error-message' of https://github.com/GS…
amercader Apr 30, 2024
539a434
[#6118] remove upgrade cli (only pre-release users affected)
wardi Apr 30, 2024
c125d07
[#6118] add docs link to DataStore
wardi Apr 30, 2024
224a5e2
[#6118] update add row docs, s/linked/referenced/
wardi Apr 30, 2024
492f768
[#6118] fix missing datatables_view, deleted table view cases
wardi Apr 30, 2024
7477bac
[#6118] flake8
wardi Apr 30, 2024
526ca1e
[#6118] accordion for data dictionary form
wardi Apr 30, 2024
f79d99c
[#6118] better-looking deleted field message
wardi Apr 30, 2024
73a7b8c
[#6118] Data API: use example values from ColumnTypes
wardi May 1, 2024
694479a
Remove hard requirement on password fields
avdata99 May 2, 2024
18b8245
Changelog
avdata99 May 2, 2024
2c9990b
fix(js): datatables last view;
JVickery-TBS May 2, 2024
bc461a2
feat(misc): changelog;
JVickery-TBS May 2, 2024
9dea85c
[#6118] css fix from @amercader
wardi May 2, 2024
add57cd
[#6118] move js to templates that need them
wardi May 2, 2024
956297e
Catch connection errors in package_search
amercader May 3, 2024
5c61ff9
Merge branch 'GSA-solr-connection-error-message'
amercader May 3, 2024
2a59ad5
Merge branch 'master' into 6118-table-designer
amercader May 3, 2024
dcb1d01
lint
amercader May 3, 2024
e0eb92a
Merge branch '6118-table-designer'
amercader May 3, 2024
3190204
Bump sqlparse from 0.4.4 to 0.5.0
dependabot[bot] May 3, 2024
f18cc07
Merge branch 'master' into remove-beaker
amercader May 3, 2024
4325d3a
Remove ability to load custom Session interfaces for now
amercader May 3, 2024
4db37bf
Merge pull request #8211 from ckan/dependabot/pip/sqlparse-0.5.0
amercader May 3, 2024
e12db84
feat: add logic.validate and schema.validator_args to toolkit
smotornyuk May 7, 2024
7ad869f
chore: add changelog entry
smotornyuk May 7, 2024
357805c
Tweak changelog
amercader May 8, 2024
71d84d6
Merge branch 'master' into remove-beaker
amercader May 8, 2024
df4b1a9
Merge branch 'remove-beaker'
amercader May 8, 2024
c2b5449
Bump jinja2 from 3.1.3 to 3.1.4
dependabot[bot] May 8, 2024
c725c1d
Merge pull request #8217 from ckan/dependabot/pip/jinja2-3.1.4
amercader May 8, 2024
f09b09c
Bump werkzeug
amercader May 8, 2024
5ea92e0
Merge branch 'master' of github.com:ckan/ckan
amercader May 8, 2024
bc4fc08
Tweak changelog
amercader May 8, 2024
ff9afc5
Merge pull request #8218 from ckan/bump-werkzeug
amercader May 8, 2024
2d7733a
Merge branch 'master' into remove-pyutillib
amercader May 8, 2024
96fd1dd
[#8219] plugins_update only with plugins changes
wardi May 8, 2024
b35e05f
[#8219] fix docs circular import, changes file
wardi May 8, 2024
44633e5
[#8219] pyright
wardi May 8, 2024
97daf18
[#8219] cli: skip make_app for --help
wardi May 8, 2024
42a62ae
[#8219] update js translations only when required
wardi May 9, 2024
8965ea3
cry
avdata99 May 10, 2024
0ffc7a7
cry
avdata99 May 10, 2024
acde04b
Update changes/8215.feature
smotornyuk May 11, 2024
096ba05
[#8219] msgspec for faster yaml parsing
wardi May 12, 2024
794457c
Merge remote-tracking branch 'origin/master' into 8219-start-up-perfo…
wardi May 12, 2024
d062d78
ckan profile profile^W /url
wardi May 13, 2024
97d4c33
profile hot requests, best-of-n
wardi May 14, 2024
15f32e5
Merge pull request #7976 from ckan/remove-pyutillib
amercader May 14, 2024
d9968bb
Merge branch 'master' into shashigharti-7604/tighten-validation-for-i…
amercader May 14, 2024
48cde8e
Re-add schema calls lost during last merge
amercader May 14, 2024
f3c2469
[#6164] interpret snippets as with, include tags
wardi May 14, 2024
6522494
[#6164] fix for cached snippet, changes
wardi May 15, 2024
0c7daf9
Add schema methods to IGroupForm
amercader May 15, 2024
3758551
lint
amercader May 15, 2024
d9ee63c
[#6164] prefer snippet tag in core templates
wardi May 15, 2024
6ff573e
[#6164] fix snippet syntax
wardi May 15, 2024
01dcc9c
User autocomplete by email
tino097 May 16, 2024
71f50e5
Test when user searching is not sysadmin
tino097 May 16, 2024
ccf4436
Lint
tino097 May 16, 2024
be9d5a6
improved feature description changes/8219.feature
wardi May 16, 2024
0feff54
[#8219] revert unrelated requirements.txt changes
wardi May 16, 2024
5dd3831
[#6146] complete feature text
wardi May 16, 2024
d25b94f
[#6146] disable snippet caching
wardi May 16, 2024
6cb5cad
[#6146] undo caching-related template changes
wardi May 16, 2024
372ff69
Merge branch 'master' into 8219-start-up-performance
amercader May 17, 2024
a7e16b1
Changelog tweaks
amercader May 17, 2024
6bbbfd8
[#8219] lint
amercader May 17, 2024
d77ceb7
Merge branch '8219-start-up-performance'
amercader May 17, 2024
5c0bdfe
Move check logic in the actions
tino097 May 17, 2024
c7a8479
type: ignore
wardi May 20, 2024
b8b99b3
changes
wardi May 20, 2024
62ae8ae
[#6146] import/macro-based snippet
wardi May 20, 2024
e258bc7
[#6146] fix for dynamic/list of snippet templates
wardi May 20, 2024
af00805
[#6146] move context_processors to globals
wardi May 21, 2024
bd720fd
Fall back to old IGroupForm methods for compatibility
amercader May 21, 2024
517a8ee
lint
amercader May 21, 2024
7e08b7a
[#6146] update docs
wardi May 21, 2024
5334bab
Merge pull request #8215 from ckan/extend-toolkit-with-validation
wardi May 21, 2024
dbbf0fa
Better plugin schema methods checks
amercader May 22, 2024
b64b621
[#6146] Actionable changes
wardi May 22, 2024
5745cb4
[#6146] move c to globals as well
wardi May 22, 2024
405c7d3
[#8235] restore ckan db create-from-model command
wardi May 23, 2024
73dfa66
Merge pull request #8069 from ckan/shashigharti-7604/tighten-validati…
amercader May 23, 2024
f8e9b1f
Merge pull request #8223 from ckan/profile-profile
amercader May 23, 2024
b1b37f3
[#8238] add ckan generate migration --autogenerate
wardi May 23, 2024
f469942
feat(cli): jobs max time;
JVickery-TBS May 23, 2024
9162e58
feat(misc): changelog;
JVickery-TBS May 23, 2024
0f8fc53
fix(misc): updated click help;
JVickery-TBS May 27, 2024
ad66c76
more to SOLR connection error handling
FuhuXia May 28, 2024
6572aa4
Merge pull request #8240 from JVickery-TBS/feature/job-workers-options
tino097 May 29, 2024
afbb09e
Merge pull request #8236 from ckan/8235-create-from-model
tino097 May 30, 2024
ba1a23a
Merge pull request #8191 from ckan/backport-action
amercader May 31, 2024
acdf7c0
Add extra details in backport action docs
amercader May 31, 2024
02f88ba
Merge branch 'master' into user-autocomplete-by-email
tino097 Jun 2, 2024
7a7f2ad
Revert back the logic for sysadmin in model
tino097 Jun 3, 2024
aea51c4
Merge pull request #8245 from ckan/backport-action-docs
wardi Jun 4, 2024
37311ed
[#8238] try ignoring
wardi Jun 5, 2024
4e4eb9b
[#8238] create missing FKs
wardi Jun 5, 2024
8c52bac
[#8238] remove webstore fields, duplicate FK constraint
wardi Jun 5, 2024
f16ebb5
[#8238] sync models with indexes from migrations
wardi Jun 5, 2024
d105c55
[#8238] style
wardi Jun 5, 2024
7583de0
[#8238] resources should have package_id values
wardi Jun 6, 2024
4bb7da2
[#8238] sync tracking, rating tables
wardi Jun 6, 2024
7749769
[#8238] lint
wardi Jun 6, 2024
137c42a
[#8238] remove redundant indexes
wardi Jun 6, 2024
7f040cb
remove override of group_dict['package_count'] to display the correct…
TomeCirun Jun 10, 2024
413cf2b
add test
TomeCirun Jun 10, 2024
df62c0d
[#8238] update docs
wardi Jun 10, 2024
a3ebd55
fix linter
TomeCirun Jun 10, 2024
228ad84
chore: mention new inheritance rules in changelog
smotornyuk Jun 11, 2024
b2f6375
fix for IClick users and #8221
wardi Jun 13, 2024
e380569
Merge pull request #8257 from ckan/pyutilib-changelog-update
amercader Jun 13, 2024
f932c2d
fix: Group update fails when using name instead of id
smotornyuk Jun 13, 2024
74c3b05
Merge pull request #8259 from ckan/fix-iclick-8221
smotornyuk Jun 13, 2024
bf95a8d
chore: remove extra empty line
smotornyuk Jun 13, 2024
c525b83
Merge pull request #8243 from FuhuXia/solr-error-handling
amercader Jun 14, 2024
516d160
Merge pull request #8226 from ckan/6164-fast-snippets
amercader Jun 14, 2024
a1223a1
Merge remote-tracking branch 'upstream/master' into user-autocomplete…
tino097 Jun 14, 2024
e1a6ae0
Add changelog entry
tino097 Jun 14, 2024
bbc9426
Merge pull request #8208 from avdata99/allow_hide_pass_change_fields
amercader Jun 14, 2024
7e1bbe4
Merge pull request #8228 from tino097/user-autocomplete-by-email
amercader Jun 14, 2024
ab27262
fix(models): license attributes;
JVickery-TBS Jun 14, 2024
ba84766
feat(misc): changelog;
JVickery-TBS Jun 14, 2024
31d446c
fix: TableDesigner shows incorrect data-dictionary link for new resource
smotornyuk Jun 15, 2024
a82f345
Merge pull request #8270 from ckan/tabledesigner-proper-message-for-n…
wardi Jun 17, 2024
e8d7e3e
[#8238] fix migration name
wardi Jun 17, 2024
dd680b4
[#8238] special case env for activity and tracking tables
wardi Jun 17, 2024
2d2daf1
[#8238] migrations for plugins from @smotornyuk
wardi Jun 18, 2024
28f7cf1
Merge pull request #8239 from ckan/8238-sync-migrations
smotornyuk Jun 18, 2024
0628ead
Merge pull request #8268 from JVickery-TBS/fix/license-attribute-errors
amercader Jun 18, 2024
0ef6693
fix: do not allow using empty names
smotornyuk Jun 18, 2024
e9bc06d
fix: flake8
smotornyuk Jun 18, 2024
ac5d00f
Merge branch 'master' into group-update-by-name
smotornyuk Jun 18, 2024
3a50fc1
Prevent exception in Datatables view when the `size` field is missing
amercader Jun 19, 2024
d154cfe
Add changelog
amercader Jun 20, 2024
e38d659
Merge pull request #8284 from ckan/fix-datatables-view-no-size
wardi Jun 20, 2024
09935a9
Merge pull request #8261 from ckan/group-update-by-name
wardi Jun 20, 2024
24e5e87
Merge pull request #8252 from TomeCirun/8007-fix-incorrect-organizati…
smotornyuk Jun 24, 2024
160ac74
fix: restore configuration state after environment patches
smotornyuk Jun 24, 2024
d0668c1
Merge pull request #8209 from JVickery-TBS/fix/datatables-last-view
smotornyuk Jun 24, 2024
1db42d7
Merge branch 'master' into register-factories-as-fixtures
smotornyuk Jun 25, 2024
cae15db
Merge branch 'master' into dev-server-extra-glob
smotornyuk Jun 25, 2024
67f026b
Merge branch 'master' into remove-group-tags
smotornyuk Jun 25, 2024
cb7cb67
Merge pull request #8043 from JVickery-TBS/feature/resource-view-acti…
smotornyuk Jun 25, 2024
6382b4f
Merge pull request #8065 from JVickery-TBS/fix/datatables-responsive-…
smotornyuk Jun 25, 2024
ef05382
Merge pull request #8070 from JVickery-TBS/feature/job-list-limit
smotornyuk Jun 25, 2024
55dc91f
Merge pull request #8297 from ckan/broken-tesst-after-env-modifications
wardi Jun 25, 2024
cab4000
Merge pull request #5592 from DataShades/remove-group-tags
wardi Jun 25, 2024
f0df37b
Merge pull request #6254 from ckan/dev-server-extra-glob
wardi Jun 25, 2024
ed95326
Merge remote-tracking branch 'origin/master' into register-factories-…
smotornyuk Jun 25, 2024
e0d6031
fix: reduce amount of changes
smotornyuk Jun 25, 2024
40ae3f7
chore: add missing fixtures
smotornyuk Jun 25, 2024
97c34ad
chore: switch to existing name for package factory
smotornyuk Jun 25, 2024
be6d897
Merge pull request #7633 from ckan/register-factories-as-fixtures
wardi Jun 25, 2024
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
  •  
  •  
  •  
73 changes: 73 additions & 0 deletions .github/workflows/backports.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
name: Backport merged pull request
on:
pull_request_target:
types: [closed]
issue_comment:
types: [created]
permissions:
contents: write # so it can comment
pull-requests: write # so it can create pull requests
jobs:
backport:
name: Backport pull request
runs-on: ubuntu-latest
# Only run when a pull request is merged
# or when a comment starting with `/backport` is created by a Tech Team member
if: |-
${{
(
github.event_name == 'pull_request_target' &&
github.event.pull_request.merged
) || (
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
contains(fromJSON(vars.TECH_TEAM_USER_IDS), github.event.comment.user.id) &&
startsWith(github.event.comment.body, '/backport')
)
}}
steps:
- uses: actions/checkout@v4
- name: Create backport pull requests
uses: korthout/backport-action@v2
with:
# Token to authenticate requests to GitHub. This is a Personal Access Token
# from the ckanbot user
github_token: ${{ secrets.BACKPORT_ACTION_PAT }}
# Run when there is one or more "Backport <branch>" labels,
# excluding "Backport pending"
label_pattern: "Backport (?!pending)([^ ]+)$"
merge_commits: skip
copy_assignees: true
pull_description: |-
This is an automated backport pull request 🏗️.

### Details
| | |
| --- | --- |
| Original pull request | #${pull_number} (${pull_title}) |
| Original author | @${pull_author} |
| Target branch | **${target_branch}** |

Please make sure that all relevant checks pass before merging it.
backport-labels:
name: Backport failed labels
runs-on: ubuntu-latest
if: |-
${{
github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
github.event.comment.user.id == vars.CKANBOT_USER_ID &&
startsWith(github.event.comment.body, 'Backport failed for')
}}
steps:
- name: Add Backport failed label to PR
uses: actions/github-script@v7
with:
github-token: ${{ secrets.BACKPORT_ACTION_PAT }}
script: |
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
labels: ["Backport failed"]
});
6 changes: 5 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ version: 2
build:
os: ubuntu-22.04
apt_packages:
- libmagic-dev
- libmagic-dev
- libmagic1
tools:
python: "3.10"
jobs:
post_checkout:
- git fetch --tags || true

sphinx:
configuration: doc/conf.py
Expand Down
203 changes: 202 additions & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,169 @@ Changelog
---------

.. towncrier release notes start


v.2.10.4 2024-03-13
===================

Migration notes
---------------

- The default format for accepted uploads for user, groups and organization
images is now limited to PNG, GIF anf JPG. If you need to add additional
foramts you can use the :ref:`ckan.upload.user.mimetypes` and
:ref:`ckan.upload.group.mimetypes`) (`#7028
<https://github.com/ckan/ckan/pull/7028>`_)
- Public user registration is disabled by default, ie users can not create
new accounts from the UI. With this default value, new users can be created
by being invited by an organization admin, being created directly by a
sysadmin in the ``/user/register`` endpoint or being created in the CLI
using ``ckan user add``. To allow public registration see
:ref:`ckan.auth.create_user_via_web`, but it's strongly encouraged to put
some measures in place to avoid spam. (`#7028
<https://github.com/ckan/ckan/pull/7028>`_) (`#7208
<https://github.com/ckan/ckan/pull/7208>`_)

Minor changes
-------------
- Define allowed alternative Solr query parsers via the :ref:`ckan.search.solr_allowed_query_parsers`
config option (`#8053 <https://github.com/ckan/ckan/pull/8053>`_)

Bugfixes
--------
- `CVE-2024-27097 <https://github.com/ckan/ckan/security/advisories/GHSA-8g38-3m6v-232j>`_: fixed
potential log injection in reset user endpoint.
- use custom group type from the activity object if it's not supplied, eg on
user activity streams (`#7980 <https://github.com/ckan/ckan/pull/7980>`_)
- Removes extra <<<HEAD from resources list template (`#7998
<https://github.com/ckan/ckan/pull/7998>`_)
- CKAN does not start without ``beaker.session.validate_key`` option introduced
in v2.10.3 (`#8023 <https://github.com/ckan/ckan/pull/8023>`_)
- Editing of resources unavailable from package view page. (`#8025
<https://github.com/ckan/ckan/pull/8025>`_)
- Pass custom package types through to the 'new resource' activity item (`#8034
<https://github.com/ckan/ckan/pull/8034>`_)
- Fix Last Modified sort parameter for bulk-process page (`#8048
<https://github.com/ckan/ckan/pull/8048>`_)
- Detect XLSX mimetypes correctly in uploader (`#8088
<https://github.com/ckan/ckan/pull/8088>`_)
- Remove nginx cache as configuration from documentation (`#8031
<https://github.com/ckan/ckan/pull/8031>`_)
- Fix `clean_db` fixtures breaking when tables are missing (`#8054
<https://github.com/ckan/ckan/pull/8054>`_)
- Fix JS error in flash message when adding a Member (`#8104
<https://github.com/ckan/ckan/pull/8104>`_)


v.2.10.3 2023-12-13
===================


Minor changes
-------------
- New sites now default to cookie-based sessions (the default value for ``beaker.session.type``
is now ``cookie``. The ``beaker.session.samesite`` configuration option has been introduced,
allowing you to specify the ``SameSite`` attribute for session cookies. This attribute determines
how cookies are sent in cross-origin requests, enhancing security and privacy.

.. note:: When using cookie-based sessions, it is now required to
set ``beaker.session.validate_key`` appropriately.

- Skip interactive mode of ``ckan user setpass`` using ``-p``/``--password``
option. (`#7530 <https://github.com/ckan/ckan/pull/7530>`_)
- Added support for Solr 9. Users of the `official Docker images
<https://github.com/ckan/ckan-solr>`_ can use the
``ckan/ckan-solr:2.10-solr9`` tag. (`#7693
<https://github.com/ckan/ckan/pull/7693>`_)
- Update requirements to support more Python versions (`#7935
<https://github.com/ckan/ckan/issues/7935>`_)
- Add tooltips when links are truncated, to show the full text. (`#7743
<https://github.com/ckan/ckan/pull/7743>`_)
- Added pages to confirm User delete and Dataset Collaborator delete.
Fixed cancellation of Group Member delete. (`#7813
<https://github.com/ckan/ckan/pull/7813>`_)
- The ``validators`` attribute of a declared config option makes tries to parse
arguments to validators as python literals. If **all** arguments can be
parsed, they are passed to a validator factory with original types. If at least one
argument is not a valid Python literal, all values are passed as a string
(this was the previous behavior). Space characters are still not allowed inside
arguments, use the ``\\x20`` symbol if you need a space in a literal (`#7615
<https://github.com/ckan/ckan/pull/7615>`_)::

# Not changed
`validators: v(xxx)` # v("xxx")
`validators: v("xxx",yyy)` # v("xxx", "yyy")
`validators: v(1,2,none)` # v("1", "2", "none")
`validators: v("hello\\x20world")` # v("hello world")

# Changed
`validators: v("xxx")` # v("xxx")
`validators: v("xxx",1)` # v("xxx", 1)
`validators: v(1,2,None)` # v(1, 2, None)

- Automatically add the ``not_empty`` validator to any config option declared
with ``required: true`` (`#7658 <https://github.com/ckan/ckan/pull/7658>`_)


Bugfixes
--------
- `CVE-2023-50248 <https://github.com/ckan/ckan/security/advisories/GHSA-7fgc-89cx-w8j5>`_: fix potential
out of memory error when submitting the dataset form with a specially-crafted field.
- Fix ``deprecated`` decorator (`#7939
<https://github.com/ckan/ckan/pull/7939>`_)
- Fix for missing Tag facets on Home page (`#7520
<https://github.com/ckan/ckan/pull/7520>`_)
- Fix errors when running the `ckan db upgrade` command (`#7681
<https://github.com/ckan/ckan/pull/7681>`_)
- Fix datastore_search + downloading datastore resources as json with null
values (`#6713 <https://github.com/ckan/ckan/pull/6713>`_)
- ``CONFIG_FROM_ENV_VARS`` takes precedence over config file and extensions but
those settings are not normalized. (`#7502
<https://github.com/ckan/ckan/pull/7502>`_)
- Fixed server not recognizing SSL settings in configuration .ini file
(`#7758 <https://github.com/ckan/ckan/pull/7758>`_)
- Fix error when indexing a full ISO date with timezone info (`#7775
<https://github.com/ckan/ckan/pull/7775>`_)
- Aligned `member_create` with `group_member_save` to prevent possible member
duplication. (`#7804 <https://github.com/ckan/ckan/pull/7804>`_)
- datastore-only resources now have a visible download button on the resource
page (`#7806 <https://github.com/ckan/ckan/pull/7806>`_)
- update resource ``datastore_active`` with a single statement on
``datastore_create/delete`` (`#7832 <https://github.com/ckan/ckan/pull/7832>`_)
- Fixed Octet Streaming for Datastore Dump requests. (`#7839
<https://github.com/ckan/ckan/pull/7839>`_)
- Fixed restricting anonymous users in actions to check user in context.
(`#7871 <https://github.com/ckan/ckan/pull/7871>`_)
- Empty string in ``beaker.session.timeout`` produces an error instead of
never-expiring session (`#7881 <https://github.com/ckan/ckan/pull/7881>`_)
- Updated Bootstrap alert-error class to alert-danger (`#7901
<https://github.com/ckan/ckan/pull/7901>`_)
- Changed dataset query to check for ``+state:`` in the ``fq_list`` as well as the
`fq` parameter before forcing ``state:active`` (`#7905
<https://github.com/ckan/ckan/pull/7905>`_)
- View modules use pluggable ``ckan.plugins.toolkit.h`` instead of
`ckan.lib.helpers` (`#7923 <https://github.com/ckan/ckan/pull/7923>`_)
- Fix HTML5 validation failing on resource uploads (`#7925
<https://github.com/ckan/ckan/pull/7925>`_)
- Fixed issues with the ``ckan views create`` CLI sub-command. (`#7944
<https://github.com/ckan/ckan/pull/7944>`_)
- Improve handling of date fields in Solr (`#7775
<https://github.com/ckan/ckan/pull/7775>`_)
- Fix URL validator does not support ":" for specifying ports (`#7891
<https://github.com/ckan/ckan/pull/7891>`_)
- Fix user_show for ``ckan.auth.public_user_details`` (`#7866
<https://github.com/ckan/ckan/pull/7866>`_)
- Add missing translations to aria-label attributes (`#7947
<https://github.com/ckan/ckan/pull/7947>`_)
- Catch AttributeErrors in license retrieval (`#7931
<https://github.com/ckan/ckan/pull/7948>`_)
- Fix downloading datastore resources as json with null values in json columns
(`#7545 <https://github.com/ckan/ckan/pull/7545>`_)

v.2.10.2
========

Unreleased

v.2.10.1 2023-05-24
===================

Expand Down Expand Up @@ -570,6 +732,45 @@ Removals and deprecations
- ``ckan.route_after_login`` renamed to ``ckan.auth.route_after_login`` (`#7350
<https://github.com/ckan/ckan/pull/7350>`_)

v.2.9.11 2024-03-13
===================

Minor changes
-------------
- Define allowed alternative Solr query parsers via the :ref:`ckan.search.solr_allowed_query_parsers`
config option (`#8053 <https://github.com/ckan/ckan/pull/8053>`_). Note that the 2.9 version of this
patch does not use pyparsing to parse the local parameters string, so some limitations are in place,
mainly that no quotes are allowed in the local paramaters definition.
- Get default formats for DataStore views from config (`#8095 <https://github.com/ckan/ckan/pull/8095>`_)

Bugfixes
--------
- `CVE-2024-27097 <https://github.com/ckan/ckan/security/advisories/GHSA-8g38-3m6v-232j>`_: fixed
potential log injection in reset user endpoint.
- Fixed Octet Streaming for Datastore Dump requests. (`#7899 <https://github.com/ckan/ckan/pull/7899>`_)
- Fix Password Reset Keys with multiple accounts (`#8079 <https://github.com/ckan/ckan/pull/8079>`_)
- Detect XLSX mimetypes correctly in uploader (`#8088 <https://github.com/ckan/ckan/pull/8088>`_)


v.2.9.10 2023-12-13
===================

Bugfixes
--------

- `CVE-2023-50248 <https://github.com/ckan/ckan/security/advisories/GHSA-7fgc-89cx-w8j5>`_: fix potential
out of memory error when submitting the dataset form with a specially-crafted field.
- Update resource datastore_active with a single statement (`#7833 <https://github.com/ckan/ckan/pull/7833>`_)
- Fix downloading datastore resources as json with null values in json columns
(`#7545 <https://github.com/ckan/ckan/pull/7545>`_)
- Fix errors when running the `ckan db upgrade` command (`#7681
<https://github.com/ckan/ckan/pull/7681>`_)
- Fix ``deprecated`` decorator (`#7939
<https://github.com/ckan/ckan/pull/7939>`_)
- Changed dataset query to check for ``+state:`` in the ``fq_list`` as well as the
`fq` parameter before forcing ``state:active`` (`#7905
<https://github.com/ckan/ckan/pull/7905>`_)

v.2.9.9 2023-05-24
==================

Expand Down
1 change: 1 addition & 0 deletions changes/4193.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Allow sysadmins to change usernames of other accounts
10 changes: 10 additions & 0 deletions changes/6118.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
Table Designer: UI for datastore-first datasets

Use Table Designer option on resource url/upload control for:
- automatic creation of datatable view for new Table Designer resources
- add/delete columns and edit schema via Data Dictionary page
- primary keys and required columns fully supported
- add individual rows with an auto-generated form based on the schema
- data validation enforced by postgresql triggers, rendered as friendly errors in forms
- extended datatable preview with "edit row" and "delete rows" buttons for managing data
- automatic API documentation for upsert/delete with examples from real data when available
1 change: 1 addition & 0 deletions changes/6146.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Render snippets faster through better use of existing jinja2 tags. Use ``{% snippet 'path/to/snippet.html', arg1=test %}`` instead of ``{{ h.snippet('path/to/snippet.html', arg1=test) }}`` in templates for better performance.
1 change: 1 addition & 0 deletions changes/6254.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`ckan.devserver.watch_patterns` config option supports glob patterns
1 change: 1 addition & 0 deletions changes/7402.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
update documenatation for CKAN SHELL command.
1 change: 1 addition & 0 deletions changes/7631.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
`user_with_token` / `sysadmin_with_token` factory fixtures added to test suite.
18 changes: 18 additions & 0 deletions changes/7893.removal
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
The sessions handling has been refactored, dropping the Beaker library in favour of
`Flask-Session <https://flask-session.readthedocs.io/en/latest/config.html>`_.
Note that the default session backend for new sites remains the client-side browser
cookie based. See :ref:`SESSION_TYPE` for alternative backends available.
The following configuration options need to be updated:

================================= ==============================================
Old configuration key New configuration key
================================= ==============================================
``beaker.session.type`` :ref:`SESSION_TYPE`
``beaker.session.key`` :ref:`SESSION_COOKIE_NAME`
``beaker.session.cookie_expires`` :ref:`SESSION_PERMANENT` (with opposite value)
``beaker.session.timeout`` :ref:`PERMANENT_SESSION_LIFETIME`
``beaker.session.cookie_domain`` :ref:`SESSION_COOKIE_DOMAIN`
``beaker.session.secure`` :ref:`SESSION_COOKIE_SECURE`
``beaker.session.httponly`` :ref:`SESSION_COOKIE_HTTPONLY`
``beaker.session.samesite`` :ref:`SESSION_COOKIE_SAMESITE`
================================= ==============================================
2 changes: 2 additions & 0 deletions changes/7927.removal
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Move datastore-specific download logic from ckan/templates/package/resource_read.html
to ckanext/datastore/templates/package/resource_read.html
2 changes: 2 additions & 0 deletions changes/7932.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Introducing a new parameter to the user_create action - with_apitoken.
When set, this parameter triggers the creation of an API token for the user.
8 changes: 8 additions & 0 deletions changes/7971.feature
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
IDataDictionaryForm for extending and validating new keys in the `fields`
dicts. Unlike the `info` free-form dict these new keys are possible to
tightly control with a schema. The schema is built by combining schemas
from from all plugins implementing this interface so plugins implementing
different features may all contribute to the same schema.

The underlying storage for data dictionary fields has changed. Use:
`ckan datastore upgrade` after upgrading to this release.
35 changes: 35 additions & 0 deletions changes/7976.removal
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
- PyUtilib dependency removed. All the primitives for the plugin system are now defined in CKAN.
- The deprecated methods with the form ``after_<action>`` and ``before_<action>`` of the :py:class:`~ckan.plugins.interfaces.IPackageController` and :py:class:`~ckan.plugins.interfaces.IResourceController` interfaces have been removed. The form ``after_<type>_<action>`` must be used from now on. E.g. ``after_create()`` -> ``after_dataset_create()`` or ``after_resource_create()``.
- It is now possible to extend interface classes directly when implementing plugins, which provides better integration with development tools, e.g.::

class Plugin(p.SingletonPlugin, IClick):
pass

This is equivalent to::

class Plugin(p.SingletonPlugin):
p.implements(p.IClick, inherit=True)

- All plugins need to be instances of p.SingletonPlugin, they can't inherit
from a base class that is an instance itself. For example, you need to move
from this::

class FirstPlugin(p.SingletonPlugin):
p.implements(ISomething)
def some_method(self):
pass

class SecondPlugin(FirstPlugin):
p.implements(IAnything)

To this::

class BasePlugin():
def some_method(self):
pass

class FirstPlugin(p.SingletonPlugin, BasePlugin):
p.implements(ISomething)

class SecondPlugin(p.SingletonPlugin, BasePlutin):
p.implements(IAnything)
1 change: 1 addition & 0 deletions changes/7980.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
use custom group type from the activity object if it's not supplied, eg on user activity streams
Loading