8000 ci: Merge `develop` into `release/3.11.x` by fsbraun · Pull Request #7785 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

ci: Merge develop into release/3.11.x #7785

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

Merged
merged 35 commits into from
Jan 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
61a7367
ci: Merge back release 3.11.4 into `develop` (#7646)
fsbraun Sep 18, 2023
33847dc
fix: data-theme typo for 'auto' (#7649)
weber-s Sep 19, 2023
cb697e3
Create SECURITY.md (#7652)
marksweb Sep 21, 2023
caef9f3
docs: Writing an extensive docstring for view _clean_redirect_url in …
MidnightRoam Sep 22, 2023
4643353
Merge branch 'django-cms:develop' into develop
fsbraun Oct 16, 2023
bafe901
build: bump pillow from 9.3.0 to 10.0.1 in /test_requirements (#7660)
dependabot[bot] Oct 16, 2023
315340f
fix: change language url parameter to delete_language to prevent coll…
halitcelik Oct 17, 2023
7693883
feat: Add Python3.12 support (#7675)
Oct 17, 2023
f5292d1
fix: preserve `view_class` in decorated views (#7664)
Will-Hoey Oct 18, 2023
3576391
Bugfix: avoid InvalidCacheKey (memcached) for key-length ~249 (fixes …
wfehr Oct 19, 2023
a147dcb
Merge branch 'django-cms:develop' into develop
fsbraun Oct 23, 2023
159b49b
Update transifex pull strings script to first filter changes and THEN…
fsbraun Oct 23, 2023
0010b67
Merge branch 'django-cms:develop' into develop
fsbraun Nov 16, 2023
f7121be
fix: Use correct version of Django in GitHub CI actions (#7696)
fsbraun Nov 20, 2023
98d52d4
Merge branch 'django-cms:develop' into develop
fsbraun Nov 20, 2023
239dbf5
docs: Remove outdated link to djangocms-installer from docs (#7697)
fsbraun Nov 21, 2023
56b38d0
Update config.yml (#7701)
fsbraun Nov 22, 2023
a11a9d2
Merge branch 'django-cms:develop' into develop
fsbraun Nov 23, 2023
720a24c
Remove discontinued discourse server from docs (#7703)
fsbraun Nov 26, 2023
bb208af
build: bump browserify-sign from 4.2.1 to 4.2.2 (#7687)
dependabot[bot] Nov 29, 2023
7bbd10b
update certifi 2022.12.07 to 2023.7.22 (#7661)
realize096 Nov 29, 2023
70efd5f
Merge branch 'django-cms:develop' into develop
fsbraun Nov 30, 2023
04eaeaf
Add template-based install to django CMS v3 docs (#7709)
fsbraun Dec 4, 2023
63b614d
Restore overwrttten release notes (#7711)
fsbraun Dec 5, 2023
6e5bef7
Merge branch 'django-cms:develop' into develop
fsbraun Dec 7, 2023
6310a9b
Update docs for frontend testing (#7726)
protoroto Dec 21, 2023
0950714
feat: django 5 support for cms 3.11 (#7724)
protoroto Dec 21, 2023
20751e8
Update documentation CMS_CACHE_PREFIX default value (#7727)
protoroto Dec 22, 2023
32c2541
Merge branch 'django-cms:develop' into develop
fsbraun Jan 2, 2024
e12e26d
build: bump follow-redirects from 1.15.2 to 1.15.4 (#7749)
dependabot[bot] Jan 10, 2024
fc18e26
build: bump axios and browser-sync (#7751)
dependabot[bot] Jan 10, 2024
40fa8d9
fix: Add `--fix-paths` option to `./manage.py cms fix-tree` (#7744)
fsbraun Jan 14, 2024
0376a2f
feat: Add bot to remind to not squash merges into release/* branches …
fsbraun Jan 17, 2024
d90b23d
fix: readable messages in dark-mode (#7739)
fsbraun Jan 26, 2024
b12558d
Merge branch 'django-cms:develop' into develop
fsbraun Jan 26, 2024
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
3 changes: 0 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,3 @@ contact_links:
- name: Question
url: https://www.django-cms.org/en/support/
about: Please use our community channels to ask for questions.
- name: Feature Request
url: https://discourse.django-cms.org/c/feature-requests
about: Please submit and discuss feature requests via discourse forum.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
python-version: "3.12"
cache: 'pip'
- name: Cache dependencies
uses: actions/cache@v3
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,5 @@ jobs:
- run: |
gulp unitTest
gulp lint
- run: gulp icons
- run: gulp sass
2 changes: 1 addition & 1 deletion .github/workflows/linters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.12"
cache: 'pip'
- run: |
python -m pip install --upgrade pip
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-to-live-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: '3.10'
python-version: '3.12'

- name: Install pypa/build
run: >-
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-to-test-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: '3.10'
python-version: '3.12'

- name: Install pypa/build
run: >-
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/releases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Comment on PRs into release/* branches

on:
pull_request:
types: [opened, reopened]
branches:
- release/*

jobs:
comment:
runs-on: ubuntu-latest
continue-on-error: true
steps:
- name: Comment on PR
uses: actions/github-script@v7
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
try { github.rest.issues.createComment({
issue_number: context.issues.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '👋 Hi there!\n\nPlease remember to **MERGE COMMIT** pull requests from `develop` or `develop-4`!\n\n**Do not SQUASH** commits to preserve history for the changelog.'
}) } catch(e) { console.log(e) }
39 changes: 24 additions & 15 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,27 @@ concurrency:
cancel-in-progress: true

jobs:
database-postgres:
postgres:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11']
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12']
requirements-file: [
django-2.2.txt,
django-3.1.txt,
django-3.2.txt,
django-4.0.txt,
django-4.1.txt,
django-4.2.txt,
django-5.0.txt
]
os: [
ubuntu-20.04,
]
exclude:
- requirements-file: django-5.0.txt
python-version: 3.8
- requirements-file: django-5.0.txt
python-version: 3.9

services:
postgres:
Expand Down Expand Up @@ -52,7 +56,6 @@ jobs:
pip install pytest
pip install -r test_requirements/${{ matrix.requirements-file }}
pip install -r test_requirements/databases.txt
pip install -r docs/requirements.txt
python setup.py install

- name: Test with django test runner
Expand All @@ -62,23 +65,27 @@ jobs:
DATABASE_URL: postgres://postgres:postgres@127.0.0.1/postgres


database-mysql:
mysql:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11']
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12']
requirements-file: [
django-2.2.txt,
django-3.1.txt,
django-3.2.txt,
django-4.0.txt,
django-4.1.txt,
django-4.2.txt,
django-5.0.txt
]
os: [
ubuntu-20.04,
]
exclude:
- requirements-file: django-5.0.txt
python-version: 3.8
- requirements-file: django-5.0.txt
python-version: 3.9

services:
mysql:
Expand Down Expand Up @@ -107,7 +114,6 @@ jobs:
pip install pytest
pip install -r test_requirements/${{ matrix.requirements-file }}
pip install -r test_requirements/databases.txt
pip install -r docs/requirements.txt
python setup.py install


Expand All @@ -117,23 +123,27 @@ jobs:
env:
DATABASE_URL: mysql://root@127.0.0.1/djangocms_test

database-sqlite:
sqlite:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: [ '3.8', '3.9', '3.10', '3.11']
python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12']
requirements-file: [
django-2.2.txt,
django-3.1.txt,
django-3.2.txt,
django-4.0.txt,
django-4.1.txt,
django-4.2.txt,
django-5.0.txt
]
os: [
ubuntu-20.04,
]
exclude:
- requirements-file: django-5.0.txt
python-version: 3.8
- requirements-file: django-5.0.txt
python-version: 3.9

steps:
- uses: actions/checkout@v3
Expand All @@ -149,7 +159,6 @@ jobs:
python -m pip install --upgrade pip
pip install pytest
pip install -r test_requirements/${{ matrix.requirements-file }}
pip install -r docs/requirements.txt
python setup.py install

- name: Test with django test runner
Expand Down
8 changes: 5 additions & 3 deletions .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@
# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details
version: 2

build:
os: ubuntu-22.04
tools:
python: "3.11"

sphinx:
configuration: docs/conf.py
fail_on_warning: false
Expand All @@ -11,8 +16,5 @@ formats:
- pdf

python:
version: 3.8

install:
- requirements: docs/requirements.txt
system_packages: false
76 changes: 76 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,82 @@
Changelog
=========

3.11.4 (2023-09-06)
===================

Features:
---------
* Update dark mode switch to be compatible with Django 4.2 admin dark mode (#7549) (1106ae6d7) -- Fabian Braun

Bug Fixes:
----------
* Toolbar action button becomes hard to read in dark mode (c626022ba) -- Fabian Braun
* Backport v4.1.0rc4 fixes - Admin language and styling (#7630) (#7641) (90b72ebea) -- Fabian Braun
* diff-dom freezing on content refresh: #7460 (#7600) (d8e9c527e) -- Vinit Kumar
* Fixed RecursionError when extending templates (#7594) (c99f78759) -- mihalikv
* JS issues with running CMS under cypress (#7591) (ce4c29948) -- Vinit Kumar
* Mitigate performance hit due to deprecation warnings for v4.1 (#7587) (9908d7e70) -- Fabian Braun
* create page wizard fails with Asian page titles/unicode slugs (#7565) (0ab640ce3) -- Fabian Braun
* require Django >= 3.2 (#7562) (a77358b93) -- Fabian Braun
* respect pre-set (48353c2d6) -- Fabian Braun
* lint menus app (#7534) (927b60b47) -- Vinit Kumar
* remove curly bracket left behind on PR 7488 (#7529) (123f7df91) -- Corentin Bettiol

Statistics:
-----------

This release includes 46 pull requests, and was created with the help of the following contributors (in alphabetical order):

* ChengDaqi2023 (1 pull request)
* Corentin Bettiol (1 pull request)
* Fabian Braun (15 pull requests)
* Github Release Action (3 pull requests)
* Vinit Kumar (3 pull requests)
* caption (1 pull request)
* mihalikv (1 pull request)
* suryadev99 (1 pull request)

With the review help of the following contributors:

* Cage Johnson
* Christian Clauss
* Conrad
* Corentin Bettiol
* Danny Waser
* Dapo Adedire
* Fabian Braun
* Fabien MICHEL
* Florian Delizy
* G3RB3N
* Github Release Action
* Hussein Srour
* Ivo Branco
* Jasper
* Marco Bonetti
* Mark Walker
* Micah Denbraver
* Nihal
* Nihal Rahman
* Pankrat
* Patrick Mazulo
* Petr Klus
* Qijia Liu
* Shivan Sivakumaran
* Simon Krull
* Vinit Kumar
* code-review-doctor
* dependabot[bot]
* fsbraun
* jefe
* jillalberts
* pajowu
* ton77v
* viliam mihalik
* viliammihalik
* wesleysima

Thanks to all contributors for their efforts!

3.11.3 (2023-04-25)
===================

Expand Down
1 change: 0 additions & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ Community & Association
You can join us online:

* in our `django CMS Slack channel <https://www.django-cms.org/slack>`_
* on our `Discourse forum <https://discourse.django-cms.org>`_

You can join a work group and work collaboratively on django CMS

Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ The demo platform is kindly provided by Divio, platinum member of the django CMS
Getting Help
************

Please head over to our `Slack channel <https://www.django-cms.org/slack>`_ or our `discourse forum <https://discourse.django-cms.org/>`_ for support.
Please head over to our `Slack channel <https://www.django-cms.org/slack>`_ for support.

********************
Professional support
Expand Down
5 changes: 5 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Security Policy

## Reporting a Vulnerability

As ever, we remind our users and contributors that all security reports, patches and concerns be addressed only to our security team by email, at security@django-cms.org.
2 changes: 1 addition & 1 deletion cms/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '3.11.3'
__version__ = '3.11.4'

try:
import django
Expand Down
6 changes: 4 additions & 2 deletions cms/admin/pageadmin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1233,8 +1233,10 @@ def unpublish(self, request, page_id, language):
return HttpResponseRedirect(path)

def delete_translation(self, request, object_id, extra_context=None):
if 'language' in request.GET:
language = request.GET['language']
if 'delete_language' in request.GET:
language = request.GET['delete_language']
elif 'delete_language' in request.POST:
language = request.POST['delete_language']
else:
language = get_language_from_request(request)

Expand Down
8 changes: 7 additions & 1 deletion cms/cache/placeholder.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ def _get_placeholder_cache_version_key(placeholder, lang, site_id):
lang=str(lang),
site=site_id,
)
if len(key) > 250:
# django itself adds "version" add the end of cache-keys, e.g. "<key>:1".
# -> If `cache.set()` is for example called with `version=""`, it still adds
# `:` at the end. So if we check the length for `> 250`, a length of 249
# or even 250 ends up in an InvalidCacheKey-exception.
# In order to avoid these errors, we hash the keys at a lower length to also
# have a little buffer.
if len(key) > 200:
key = '{prefix}|{hash}'.format(
prefix=prefix,
hash=hashlib.sha1(key.encode('utf-8')).hexdigest(),
Expand Down
Loading
0