8000 build: Prepare v3.11.2 by merging develop into release/3.11.x by fsbraun · Pull Request #7525 · django-cms/django-cms · GitHub
[go: up one dir, main page]

Skip to content

build: Prepare v3.11.2 by merging develop into release/3.11.x #7525

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 78 commits into from
Apr 17, 2023
Merged
Show file tree
Hide file tree
Changes from 63 commits
Commits
Show all changes
78 commits
Select commit Hold shift + click to select a range
28f45b6
ci: stale bot added (#7298)
marksweb Jun 29, 2022
c1290c9
ci: Added codespell (#7355)
marksweb Jul 3, 2022
d5a9f49
fix: Added language to page cache key (#7354)
marksweb Jul 3, 2022
b80b4de
ci: Remove a superfluous installation of codespell (#7356)
cclauss Jul 3, 2022
908b800
build: bump django from 3.2.13 to 3.2.14 in /docs (#7358)
dependabot[bot] Jul 6, 2022
9948c68
typo (#7360)
Husseinfo Jul 14, 2022
3c7c9bd
Update install.rst (#7368)
dapoadedire Jul 24, 2022
3b2dc10
ci: Flake8 fixes (#7372)
marksweb Aug 1, 2022
3c01311
build: bump django from 3.2.14 to 3.2.15 in /docs (#7379)
dependabot[bot] Aug 11, 2022
abc6e6c
fix: default light mode (#7381)
viliammihalik Aug 15, 2022
fef9158
ci: Merging release/3.11.0 (#7377)
marksweb Aug 19, 2022
9858b77
docs: Bump requirements (#7382)
marksweb Sep 3, 2022
cdcf260
fix: CMS check management command fixed [#7386]
mbi Sep 12, 2022
b8750eb
ci: sync isort line length (#7353)
marksweb Sep 12, 2022
1ec5698
docs: fixing a link (#7393)
shivan-s Sep 16, 2022
a7f8cd4
refactor: Move js API functions to CMS.Helpers to make them available…
fsbraun Sep 27, 2022
162ff8d
fix: Allow partially overriding CMS_CACHE_DURATIONS (#7339)
eagleoflqj Oct 8, 2022
49bd066
Adjust paste label in pt-br locale (#7376)
wesleysima Oct 8, 2022
0fd058e
feat: Add support for tel: and mailto: URIs in Advanced Page Settings…
marksweb Oct 8, 2022
6d83a9f
docs: Correction of headings around CMSPlugin & CMSPluginBase (#7406)
cagejsn Oct 9, 2022
9e3c579
fix: Unlocalize page and node ids when rendering the page tree in the…
mbi Oct 9, 2022
e59c179
fix: Clear page permission cache on page create (#6866)
g3rb3n Oct 12, 2022
fcfe77f
fix: Changing color scheme resets session settings to defaults (#7407)
fsbraun Oct 14, 2022
64ae4ad
ci: Added pre-commit ci config (#7409)
marksweb Oct 16, 2022
7ca1b61
perf: Don't count users when CMS_RAW_ID_USERS=True (#7414)
fsbraun Oct 20, 2022
dcf394b
fix: CMS check management command fixed [#7412] (#7413)
ton77v Oct 20, 2022
27515cc
ci: Some tests misusing assertTrue for comparisons fix (#7241)
code-review-doctor Oct 20, 2022
777864a
feat: Support for Django 4.1 (#7404)
fsbraun Oct 21, 2022
7cc6e78
build: bump django from 3.2.15 to 3.2.16 in /docs (#7417)
dependabot[bot] Oct 26, 2022
068e115
build: bump minimatch and gulp-if (#7416)
dependabot[bot] Oct 26, 2022
2788f75
fix: Added deprecation warning to `get_current_language()` (#7410)
marksweb Oct 29, 2022
3fe1449
feat: add Python 3.11 support for Django CMS (#7422)
Oct 30, 2022
d38f4a1
fix: Adds a deprecation warning for SEND_BROKEN_LINK_EMAILS (#7420)
fsbraun Nov 3, 2022
06c9a85
fix: Prefer titles matching request language (#7144)
macro1 Nov 4, 2022
3e4bad2
build: bump pillow from 8.3.2 to 9.3.0 in /test_requirements (#7443)
dependabot[bot] Nov 22, 2022
c68eed1
build: bump loader-utils from 1.4.0 to 1.4.2 (#7435)
dependabot[bot] Nov 24, 2022
892baa8
build: bump certifi from 2022.6.15 to 2022.12.7 in /docs (#7452)
dependabot[bot] Dec 9, 2022
c25ecc2
ci: Add GitHub action to make a release (#7454)
fsbraun Dec 12, 2022
cbb855a
Update setup.py (#7462)
fsbraun Dec 21, 2022
0c75223
build: bump minimatch from 3.0.4 to 3.1.2 (#7453)
dependabot[bot] Dec 24, 2022
1cd5b1a
build: bump wheel from 0.37.1 to 0.38.1 in /docs (#7463)
dependabot[bot] Dec 27, 2022
2aa2f89
build: bump decode-uri-component from 0.2.0 to 0.2.2 (#7451)
dependabot[bot] Dec 27, 2022
7132ee3
fix: cms-messages background color (#7465)
fsbraun Dec 29, 2022
6443da8
ci: Update develop with 3.11.1 release (#7469)
fsbraun Jan 5, 2023
fdda2a2
ci: Add deprecations for functions not available in cms v4 (#7458)
fsbraun Jan 6, 2023
8c91e33
fix: Build docs always from the current local version (#7472)
fsbraun Jan 10, 2023
6860a13
ci: Add CodeQL workflow for GitHub code scanning (#7432)
lgtm-com[bot] Jan 10, 2023
99e9ab0
feat: add download statistics to readme (#7474)
fsbraun Jan 11, 2023
2cd93e9
docs: Added note to publish_pages API docs about it being a generator…
jasperbok Jan 22, 2023
5135ca3
fix: Link both user and group from global page permissions to change …
fsbraun Jan 24, 2023
6a96b7c
Make messages readable in dark mode, remove iOS9 compatibility trick …
fsbraun Jan 24, 2023
99c8843
fix: replace ' by ′ in fr translation − no more "page d\u0027accueil"…
corentinbettiol Jan 25, 2023
ff94c5d
fix/merge_errors (#7487)
fsbraun Jan 27, 2023
86a9a14
docs: Update formatting in how-to/install.rst to avoid misunderstandi…
fsbraun Feb 5, 2023
4d7ed46
feat: add setting so redirect preserve params (#7489)
igobranco Feb 7, 2023
c7fc2f2
improved code readability (#7503)
deepbluesquirrel Feb 13, 2023
7e852ec
feat: add setting to redirect slugs to lowercase (#7509)
pajowu Mar 8, 2023
31ea031
docs: Update incomplete color scheme docs (#7512)
fsbraun Mar 23, 2023
9e33167
fix typos (#7514)
wasertech Mar 28, 2023
89a42dd
feat: add django 4.2 support (#7481)
Apr 10, 2023
4c0b3a8
ci: more deprecations in light of upcoming v4 (#7480)
fsbraun Apr 10, 2023
ceadcaa
ci: introduce ruff in place of flake8 for improved speed (#7504)
vinitkumar Apr 10, 2023
25b2303
feat: add download statistics to readme (#7474)
fsbraun Jan 11, 2023
ca8f75b
docs: Added note to publish_pages API docs about it being a generator…
jasperbok Jan 22, 2023
6cb4762
fix: Link both user and group from global page permissions to change …
fsbraun Jan 24, 2023
bdd10ae
Make messages readable in dark mode, remove iOS9 compatibility trick …
fsbraun Jan 24, 2023
b4acc9a
fix: replace ' by ′ in fr translation − no more "page d\u0027accueil"…
corentinbettiol Jan 25, 2023
45e78dd
docs: Update formatting in how-to/install.rst to avoid misunderstandi…
fsbraun Feb 5, 2023
dcb9c4b
feat: add setting so redirect preserve params (#7489)
igobranco Feb 7, 2023
327a86f
improved code readability (#7503)
deepbluesquirrel Feb 13, 2023
01aedee
feat: add setting to redirect slugs to lowercase (#7509)
pajowu Mar 8, 2023
9a3d647
docs: Update incomplete color scheme docs (#7512)
fsbraun Mar 23, 2023
04a85d3
fix typos (#7514)
wasertech Mar 28, 2023
5478faa
feat: add django 4.2 support (#7481)
Apr 10, 2023
187ea98
ci: more deprecations in light of upcoming v4 (#7480)
fsbraun Apr 10, 2023
6833976
ci: introduce ruff in place of flake8 for improved speed (#7504)
vinitkumar Apr 10, 2023
f57d516
Merge branch 'develop' of github.com:fsbraun/django-cms into fsbraun-…
fsbraun Apr 16, 2023
41da65d
Merge branch 'fsbraun-develop' into develop
fsbraun Apr 16, 2023
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
42 changes: 42 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: "CodeQL"

on:
push:
branches: [ "develop", "develop-4", "release/0.10.x", "release/2.1.x", "release/2.2.x", "release/2.3.x", "release/2.4.x", "release/3.0.x", "release/3.1.x", "release/3.2.x", "release/3.3.x", "release/3.4.x", "release/3.5.x", "release/3.6.x", "release/3.7.x", "release/3.8.x", "release/3.9.x", "release/3.10.x", "release/3.11.x", "release/4.0.x", "release/4.0.0.x", "release/4.0.1.x", "release/4.1.x" ]
pull_request:
branches: [ "develop" ]
schedule:
- cron: "40 4 * * 6"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write

strategy:
fail-fast: false
matrix:
language: [ python, javascript ]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
queries: +security-and-quality

- name: Autobuild
uses: github/codeql-action/autobuild@v2
if: ${{ matrix.language == 'python' || matrix.language == 'javascript' }}

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
with:
category: "/language:${{ matrix.language }}"
27 changes: 27 additions & 0 deletions .github/workflows/make-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Create a django CMS release

on:
workflow_dispatch:
inputs:
version:
description: 'Version number to create, e.g., "3.11.1rc1"'
required: true
type: string
branches:
- 'develop*'
- 'release/**'

jobs:
make-release:
if: github.actor == 'marksweb' || github.actor == 'fsbraun'
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
- name: Start building version ${{ inputs.version }}
env:
BUILD_BRANCH: release/build
TX_TOKEN: ${{ secrets.TX_TOKEN }}
run: ./scripts/make-release ${{ inputs.version }} ${GITHUB_REF}
11 changes: 6 additions & 5 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[main]
host = https://www.transifex.com

[django-cms.js]
[o:divio:p:django-cms:r:core]
file_filter = cms/locale/<lang>/LC_MESSAGES/django.po
source_file = cms/locale/en/LC_MESSAGES/django.po
source_lang = en

[o:divio:p:django-cms:r:js]
file_filter = cms/locale/<lang>/LC_MESSAGES/djangojs.po
source_file = cms/locale/en/LC_MESSAGES/djangojs.po
source_lang = en

[django-cms.core]
file_filter = cms/locale/<lang>/LC_MESSAGES/django.po
source_file = cms/locale/en/LC_MESSAGES/django.po
source_lang = en
8 changes: 4 additions & 4 deletions cms/locale/nl/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -416,10 +416,10 @@ msgid "User guide"
msgstr "Gebruikershandleiding"

msgid "Support Forum"
msgstr ""
msgstr "Helpforum"

msgid "Support Slack"
msgstr ""
msgstr "Help bij Slack"

msgid "What's new"
msgstr "Wat is nieuw"
Expand Down Expand Up @@ -1588,7 +1588,7 @@ msgid "Add plugin to %(plugin_name)s"
msgstr "Voeg plugin toe aan %(plugin_name)s"

msgid "Community forum"
msgstr ""
msgstr "Gemeenschapsforum"

msgid "Getting started"
msgstr "Aan de slag"
Expand All @@ -1614,7 +1614,7 @@ msgstr "Deze placeholder bevat al het maximale aantal (%(limit)s) van toegestane

#, python-format
msgid "This placeholder already has the maximum number of child plugins (%s)."
msgstr ""
msgstr "Deze placeholder bevat al het maximale aantal (%s) van toegestane plugins."

#, python-brace-format
msgid "Unable to find the specified CMS_REQUEST_IP_RESOLVER module: \"{0}\"."
Expand Down
6 changes: 6 additions & 0 deletions cms/models/pluginmodel.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import inspect
import json
import os
import warnings
Expand Down Expand Up @@ -310,6 +311,11 @@ def copy_plugin(self, target_placeholder, target_language, parent_cache, no_sign
then overwriting its ID at step 5, the ORM will copy the custom
fields for us.
"""

warnings.warn(f"{inspect.stack()[0][3]} is deprecated and will be removed in django CMS 4.1. "
f"From version 4 on, please use cms.utils.copy_plugins_to_placeholder instead.",
DeprecationWarning, stacklevel=2)

try:
plugin_instance, cls = self.get_plugin_instance()
except KeyError: # plugin type not found anymore
Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion cms/static/cms/js/dist/3.11.1/bundle.admin.base.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion cms/static/cms/js/dist/3.11.1/bundle.admin.pagetree.min.js

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions cms/static/cms/sass/components/_toolbar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@
margin: 0;
padding: $messages-padding;
border-radius: 0 0 $messages-border-radius $messages-border-radius;
background: rgba($messages-bgcolor, 0.74);
background: $messages-bgcolor;
transition: top $speed-base;
* {
color: $messages-color;
Expand Down Expand Up @@ -578,7 +578,6 @@
width: 100%;
height: 100%;
background-color: $screenblock-bgcolor;
background: rgba($screenblock-bgcolor, 0.9);
}

.cms-screenblock-inner {
Expand Down
10 changes: 10 additions & 0 deletions cms/utils/moderator.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import inspect
import warnings


def use_draft(request):
warnings.warn(f"{inspect.stack()[0][3]} is deprecated and will be removed in django CMS 4.1",
DeprecationWarning, stacklevel=2)
is_staff = (request.user.is_authenticated and request.user.is_staff)
return is_staff and not request.session.get(&# 83CB 39;cms_preview')

Expand All @@ -9,6 +13,8 @@ def get_model_queryset(model, request=None):
"""Decision function used in frontend - says which model should be used.
Public models are used unless looking at preview or edit versions of the page.
"""
warnings.warn(f"{inspect.stack()[0][3]} is deprecated and will be removed in django CMS 4.1",
DeprecationWarning, stacklevel=2)
if request and use_draft(request):
return model.objects.drafts()
return model.objects.public()
Expand All @@ -17,10 +23,14 @@ def get_model_queryset(model, request=None):
def get_title_queryset(request=None):
from cms.models import Title

warnings.warn(f"{inspect.stack()[0][3]} is deprecated and will be removed in django CMS 4.1",
DeprecationWarning, stacklevel=2)
return Title.objects.all()


def get_cmsplugin_queryset(request=None):
from cms.models import CMSPlugin

warnings.warn(f"{inspect.stack()[0][3]} is deprecated and will be removed in django CMS 4.1",
DeprecationWarning, stacklevel=2)
return CMSPlugin.objects.all()
12 changes: 6 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
0