Skip to content

Conversation

@JVickery-TBS
Copy link

Going from 2.10.7 -> 2.10.8

amercader and others added 30 commits February 5, 2025 13:06
[Backport dev-v2.10] fix: restrict pypi/test pypi deployments to repo ckan/ckan and no other
(cherry picked from commit 8fba084)
(cherry picked from commit a3d6751)
[Backport dev-v2.10] Fix lint and typing errors in master
(cherry picked from commit 45f9c30)
(cherry picked from commit 984e811)
(cherry picked from commit dd90e65)
(cherry picked from commit 652076d)
(cherry picked from commit ff1b9d7)
[Backport dev-v2.10] Add sysadmin check to has_user_permission_for_some_org
To avoid this error:

```
Collecting pysolr==3.9.0
  Downloading pysolr-3.9.0.tar.gz (55 kB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 55.8/55.8 kB 10.9 MB/s eta 0:00:00
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [68 lines of output]
      /tmp/pip-install-pl2nz61h/pysolr_b1ed4c82cb7742cebd1d09257f8ff2a6/.eggs/setuptools_scm-8.2.0-py3.8.egg/setuptools_scm/_integration/setuptools.py:31: RuntimeWarning:
      ERROR: setuptools==57.5.0 is used in combination with setuptools-scm>=8.x

      Your build configuration is incomplete and previously worked by accident!
      setuptools-scm requires setuptools>=61

      Suggested workaround if applicable:
       - migrating from the deprecated setup_requires mechanism to pep517/518
         and using a pyproject.toml to declare build dependencies
         which are reliably pre-installed before running the build tools

        warnings.warn(
      WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
      Traceback (most recent call last):
        File "/tmp/pip-install-pl2nz61h/pysolr_b1ed4c82cb7742cebd1d09257f8ff2a6/.eggs/setuptools_scm-8.2.0-py3.8.egg/setuptools_scm/_integration/pyproject_reading.py", line 36, in read_pyproject
          section = defn.get("tool", {})[tool_name]
      KeyError: 'setuptools_scm'
```
(cherry picked from commit f161718)
…f a `datetime`

Currently in CKAN 2.10, `beaker.session.type=json` with
`beaker.session.type=cookie` fails because the `last_active` attribute
stored on the cookie is a `datetime` (and can't be serialized to JSON).

This change addresses this by setting `session["last_active"]` as an iso
string instead.

(cherry picked from commit 40c1abd)
…v2.10

[ckan#8379] backport 2.10: Store `session["last_active"]` as an iso string instead of a …
This is a backport of ckan#8744

One difference is that we bumped pytest to latest 7.x minor
version, not the latest 8.x one to keep compatibility
This is a backport of ckan#8783
wardi and others added 22 commits April 24, 2025 15:58
[Backport dev-v2.10] Catch error in datastore
(cherry picked from commit 69b488c)
(cherry picked from commit b7f0904)
# Conflicts:
#	.github/workflows/cypress.yml
#	.github/workflows/flake8.yml
#	.github/workflows/pyright.yml
#	ckan/logic/schema.py
#	ckan/public-bs3/base/javascript/client.js
#	ckan/templates-bs3/admin/config.html
#	ckan/templates-bs3/admin/index.html
#	ckan/templates-bs3/footer.html
#	ckan/templates-bs3/package/search.html
#	ckan/templates/snippets/search_form.html
#	ckanext/datatablesview/blueprint.py
#	test-core.ini
### RESOLVED.
- Added change log file.
- Disabled github workflows.
@JVickery-TBS JVickery-TBS merged commit d607d31 into canada-v2.10 Jun 9, 2025
1 check passed
@JVickery-TBS JVickery-TBS deleted the backport/patch-2.10.8 branch June 9, 2025 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.