Skip to content

Commit

Permalink
Merge branch 'master' into feat/improve_default_copy
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun authored Oct 29, 2024
2 parents b04488e + d51f806 commit 9d3ca00
Show file tree
Hide file tree
Showing 48 changed files with 1,409 additions and 307 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
python-version: '3.11'
cache: 'pip'
- name: Cache dependencies
uses: actions/cache@v4.0.2
uses: actions/cache@v4.1.2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}
Expand All @@ -44,7 +44,7 @@ jobs:
python-version: '3.11'
cache: 'pip'
- name: Cache dependencies
uses: actions/cache@v4.0.2
uses: actions/cache@v4.1.2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('docs/requirements.txt') }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
- run: python -Im pip install --user ruff

- name: Run ruff
run: ruff --output-format=github djangocms_versioning tests
run: ruff check --output-format=github djangocms_versioning tests
41 changes: 28 additions & 13 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,15 @@ jobs:
python-version: [ 3.9, "3.10", "3.11", "3.12" ] # latest release minus two
requirements-file: [
dj32_cms41.txt,
dj40_cms41.txt,
dj41_cms41.txt,
dj42_cms41.txt,
dj50_cms41.txt,
dj51_cms41.txt,
]
exclude:
- requirements-file: dj50_cms41.txt
python-version: 3.9
- requirements-file: dj51_cms41.txt
python-version: 3.9

steps:
- uses: actions/checkout@v4
Expand All @@ -34,7 +39,7 @@ jobs:
python setup.py install
- name: Run coverage
run: coverage run setup.py test
run: coverage run ./test_settings.py

- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v4
Expand All @@ -47,14 +52,19 @@ jobs:
python-version: [ 3.9, "3.10", "3.11", "3.12" ] # latest release minus two
requirements-file: [
dj32_cms41.txt,
dj40_cms41.txt,
dj41_cms41.txt,
dj42_cms41.txt,
dj50_cms41.txt,
dj51_cms41.txt,
]
exclude:
- requirements-file: dj50_cms41.txt
python-version: 3.9
- requirements-file: dj51_cms41.txt
python-version: 3.9

services:
postgres:
image: postgres:12
image: postgres:13
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
Expand All @@ -78,7 +88,7 @@ jobs:
python setup.py install
- name: Run coverage
run: coverage run setup.py test
run: coverage run ./test_settings.py
env:
DATABASE_URL: postgres://postgres:[email protected]/postgres

Expand All @@ -93,10 +103,15 @@ jobs:
python-version: [ 3.9, "3.10", "3.11", "3.12" ] # latest release minus two
requirements-file: [
dj32_cms41.txt,
dj40_cms41.txt,
dj41_cms41.txt,
dj42_cms41.txt,
dj50_cms41.txt,
dj51_cms41.txt,
]
exclude:
- requirements-file: dj50_cms41.txt
python-version: 3.9
- requirements-file: dj51_cms41.txt
python-version: 3.9

services:
mysql:
Expand All @@ -122,7 +137,7 @@ jobs:
python setup.py install
- name: Run coverage
run: coverage run setup.py test
run: coverage run ./test_settings.py
env:
DATABASE_URL: mysql://[email protected]/djangocms_test

Expand All @@ -135,7 +150,7 @@ jobs:
fail-fast: false
matrix:
python-version: ['3.11']
requirements-file: ['dj42_cms41.txt']
requirements-file: ['dj51_cms41.txt']
cms-version: [
'https://github.com/django-cms/django-cms/archive/develop-4.tar.gz'
]
Expand All @@ -158,7 +173,7 @@ jobs:
python setup.py install
- name: Run coverage
run: coverage run setup.py test
run: coverage run ./test_settings.py

- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v4
Expand Down Expand Up @@ -194,7 +209,7 @@ jobs:
python setup.py install
- name: Run coverage
run: coverage run setup.py test
run: coverage run ./test_settings.py

- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v4
47 changes: 47 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,53 @@
Changelog
=========

2.1.0 (2024-07-12)
==================

* feat: add support for Django 5.0 and 5.1 (#429) by @fsbraun in https://github.com/django-cms/djangocms-versioning/pull/429
* feat: Add versioning actions to settings (admin change view) of versioned objects by @fsbraun in https://github.com/django-cms/djangocms-versioning/pull/408
* fix: Remove workaround for page-specific rendering by @fsbraun in https://github.com/django-cms/djangocms-versioning/pull/411
* fix: Compare versions' back button sometimes returns to invalid URL by @fsbraun in https://github.com/django-cms/djangocms-versioning/pull/413


* feat: Add versioning actions to settings (admin change view) of versioned objects by @fsbraun in https://github.com/django-cms/djangocms-versioning/pull/408
* feat: Optimize db evaluation by @fsbraun in https://github.com/django-cms/djangocms-versioning/pull/416
* feat: Prefetch page content version objects for faster page tree by @fsbraun in https://github.com/django-cms/djangocms-versioning/pull/418
* fix: Remove workaround for page-specific rendering by @fsbraun in https://github.com/django-cms/djangocms-versioning/pull/411
* fix: Compare versions' back button sometimes returns to invalid URL by @fsbraun in https://github.com/django-cms/djangocms-versioning/pull/413
* fix: Preparation for changes in django CMS 4.2 by @jrief in https://github.com/django-cms/djangocms-versioning/pull/419
* fix: Unnecessary complexity in ``current_content`` query set by @fsbraun in https://github.com/django-cms/djangocms-versioning/pull/417
* fix: get_page_content retrieved non page-content objects from the toolbar by @fsbraun in https://github.com/django-cms/djangocms-versioning/pull/423


**Full Changelog**: https://github.com/django-cms/djangocms-versioning/compare/2.0.2...2.1.0

2.0.2 (2024-05-03)
==================

* fix: Do not show edit action for version objects where editing is not possible by @fsbraun in https://github.com/django-cms/djangocms-versioning/pull/405
* feat: Add Arabic locale

2.0.1 (2024-03-29)
==================

* feat: Add content object level publish permissions by @fsbraun in https://github.com/django-cms/djangocms-versioning/pull/390
* fix: Create missing __init__.py in management folder by @fsbraun in https://github.com/django-cms/djangocms-versioning/pull/366
* fix #363: Better UX in versioning listview by @jrief in https://github.com/django-cms/djangocms-versioning/pull/364
* fix: Several fixes for the versioning forms: #382, #383, #384 by @fsbraun in https://github.com/django-cms/djangocms-versioning/pull/386
* fix: For Django CMS 4.1.1 and later do not automatically register versioned CMS Menu by @fsbraun in https://github.com/django-cms/djangocms-versioning/pull/388
* fix: Post requests from the side frame were sent to wrong URL by @fsbraun in https://github.com/django-cms/djangocms-versioning/pull/396
* fix: Consistent use of action buttons by @fsbraun in https://github.com/django-cms/djangocms-versioning/pull/392
* fix: Avoid duplication of placeholder checks for locked versions by @fsbraun in https://github.com/django-cms/djangocms-versioning/pull/393
* ci: Add testing against django main by @marksweb in https://github.com/django-cms/djangocms-versioning/pull/353
* ci: Improve efficiency of ruff workflow by @marksweb in https://github.com/django-cms/djangocms-versioning/pull/378
* Chore: update ruff and pre-commit hook by @raffaellasuardini in https://github.com/django-cms/djangocms-versioning/pull/381
* build(deps): bump actions/cache from 4.0.1 to 4.0.2 by @dependabot in https://github.com/django-cms/djangocms-versioning/pull/397

New Contributors

* @raffaellasuardini made their first contribution in https://github.com/django-cms/djangocms-versioning/pull/381
* @jrief made their first contribution in https://github.com/django-cms/djangocms-versioning/pull/364

2.0.0 (2023-12-29)
==================
Expand Down
6 changes: 4 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,11 @@ Add ``djangocms_versioning`` to your project's ``INSTALLED_APPS``.

Run::

python manage.py migrate djangocms_versioning
python -m manage migrate djangocms_versioning
python -m manage create_versions --user-id <user-id-of-migration-user>

to perform the application's database migrations.
to perform the application's database migrations and (only if you have an existing database) add version objects
needed to mark existing versions as draft.


=====
Expand Down
2 changes: 1 addition & 1 deletion djangocms_versioning/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "2.0.0"
__version__ = "2.1.0"
Loading

0 comments on commit 9d3ca00

Please sign in to comment.