Albina
e5da22586b
Update styles for block picker in dark mode ( #10644 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-07-14 14:42:12 +01:00
Matt Westcott
9881ec12b8
Update black target version to 3.8 in circleci config
2023-07-14 13:44:02 +01:00
Matt Westcott
aca754aa36
Release note for dropping Python 3.7 support ( #10676 )
2023-07-14 13:09:55 +01:00
Matt Westcott
1e49d2a63b
Remove redundant format string in test_move_page.py
...
Co-authored-by: Jake Howard <RealOrangeOne@users.noreply.github.com>
2023-07-14 13:06:41 +01:00
zerolab
5a6991dd8f
Run django-upgrade with a 3.2 target
...
`git ls-files --others --cached --exclude-standard -- '*.py' | xargs django-upgrade --target 3.2`
2023-07-14 13:06:41 +01:00
zerolab
ac10b36c7b
Run pyupgrade with --py38-plus
2023-07-14 13:06:41 +01:00
zerolab
adde8b66f6
Drop support for Python 3.7
2023-07-14 13:06:41 +01:00
Sage Abdullah
3d0282573d
Release notes for #10619
2023-07-14 10:20:45 +01:00
Sage Abdullah
12583d9c48
Allow purging revisions of only page/non-page models
2023-07-14 10:18:33 +01:00
Sage Abdullah
8074ed4bbc
Add not_page_revisions method to RevisionQuerySet and RevisionsManager
...
Also simplify RevisionsManager definition using Manager.from_queryset()
2023-07-14 10:18:33 +01:00
Sage Abdullah
2a888bcb30
Replace workflow support check with WAGTAIL_WORKFLOW_ENABLED setting check
...
The workflow models can always be imported via wagtail.models even if workflow is disabled.
Instead of checking the import with try/except, we should check the setting instead.
2023-07-14 10:18:32 +01:00
Sage Abdullah
690d0a740e
Purge revisions of non-page models in purge_revisions command
2023-07-14 10:18:32 +01:00
Albina
a84fdd4919
Update styles for critical buttons in dark mode ( #10643 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-07-14 09:35:43 +01:00
Shohan Dutta Roy
3a10f925a3
feat(elasticsearch6): Add support for field boosting ( #10653 )
2023-07-13 15:02:37 +01:00
LB (Ben Johnston)
c8823d62b7
Revert "Bump stylelint from 14.3.0 to 15.10.1"
...
This reverts commit 28290e8224
.
2023-07-13 18:12:20 +10:00
dependabot[bot]
d886e5eadb
Bump tough-cookie from 4.0.0 to 4.1.3 in /client/tests/integration
...
Bumps [tough-cookie](https://github.com/salesforce/tough-cookie ) from 4.0.0 to 4.1.3.
- [Release notes](https://github.com/salesforce/tough-cookie/releases )
- [Changelog](https://github.com/salesforce/tough-cookie/blob/master/CHANGELOG.md )
- [Commits](https://github.com/salesforce/tough-cookie/compare/v4.0.0...v4.1.3 )
---
updated-dependencies:
- dependency-name: tough-cookie
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-13 18:07:49 +10:00
dependabot[bot]
28290e8224
Bump stylelint from 14.3.0 to 15.10.1
...
Bumps [stylelint](https://github.com/stylelint/stylelint ) from 14.3.0 to 15.10.1.
- [Release notes](https://github.com/stylelint/stylelint/releases )
- [Changelog](https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md )
- [Commits](https://github.com/stylelint/stylelint/compare/14.3.0...15.10.1 )
---
updated-dependencies:
- dependency-name: stylelint
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-13 18:07:13 +10:00
Thibaud Colas
602cc6f334
Remove unused snippets _header_with_history.html
2023-07-13 18:05:16 +10:00
Albina
0b2ea1edac
Update rich text Link/Document Tooltip styles ( #10639 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2023-07-13 08:19:59 +01:00
Thibaud Colas
80b696c0d6
Release notes for #10598
2023-07-13 07:51:26 +01:00
LB Johnston
ae4c3c20c8
Update all snapshots to Jest 29 format
...
- See https://jestjs.io/docs/upgrading-to-jest29#snapshot-format
2023-07-13 07:51:26 +01:00
LB Johnston
f80e64989e
Update failing tests for Jest v29
...
- Use a console.error spy to avoid the console error bubbling into logs for FieldBlock.test.js (also allows us to confirm an error was thrown)
- Adopt proper approach to 'flush promises' now that API is available for JSDom usage of microtasks/animation frame
- Adapt to new Jest timer mocking approach, use legacy timers in one file as there is not a suitable setTimeout (with zero delay) while also using async await
2023-07-13 07:51:26 +01:00
LB Johnston
f90e03ab35
Update Jest to v29, uuid v9 & update stubs
...
- `uuid` update is required to avoid import errors - https://github.com/uuidjs/uuid/blob/main/CHANGELOG.md#900-2022-09-05
- Add stubs for window.scrollTo to avoid console errors when running tests
- Filter out warnings for Draftail React warnings, these are unlikely to be resolved anytime soon and add noise to the Jests tests that are unhelpful
- Closes #10043
2023-07-13 07:51:26 +01:00
Thibaud Colas
d86d889c76
Move Stimulus adoption changelog entries to their own section
2023-07-13 00:52:48 +01:00
Thibaud Colas
596a1363f5
Switch release notes to use semantic headings
2023-07-13 00:45:29 +01:00
Thibaud Colas
eb56a0c8bb
Release notes for #10620
2023-07-13 00:43:17 +01:00
LB Johnston
2ad71493a9
Add TooltipController (w-tooltip) & remove bootstrap tooltips
...
Adds a new Stimulus controller for Tippy.js tooltips to replace only the Bootstrap tooltip usage & removes the bootstrap JS tooltip code.
- Dashboard - moderation listing panel
- Reports - Workflow listing status tooltip
- Shared Avatar - user name tooltip
- Workflow listing - steps item tooltip
Closes #8565
2023-07-13 00:43:17 +01:00
LB Johnston
58377402bf
Replace ModelAdmin history header human readable date
...
- Snippet header with history appears to be unused, updated anyway
- Update ModelAdmin header with history to use the human readable (more accessible) timesince date, which uses Tippy.js
- Relates to #8565
- Builds on #8697 & #8566
2023-07-13 00:43:17 +01:00
Stefan Hammer
7962118dc0
Add missing TZ conversions and date formatting
...
* Usages of strftime("%d %b %Y %H:%M") have been replaced by usages of
django's timezone handling and date formatting, so the output is
similar to other dates rendered through the templating.
* Dates stored in the action logs are now parsed and converted
accordingly for the frontend.
* Improved tests to check those conversions
* Fixes #9581
* Add handling for wagtail.schedule.cancel with go_live_at=None
* Migrate log timestamps to ISO 8601 in UTC
* adapted new code from #9628
* replaced usages of test utility rendered_timestamp() with new core utility
* Replaced usages of django.utils.timezone.utc
* re-added migration on top of newest migrations
2023-07-13 08:13:54 +10:00
Sage Abdullah
f866cd1608
Fix flaky date test in wagtail.snippets.tests.test_viewset.TestListExport
2023-07-12 20:00:49 +01:00
zerolab
a57840de02
Fix test post rebase for #10612
2023-07-12 20:00:49 +01:00
zerolab
a096dd3ded
Fix headings levels for the 5.1 release notes
2023-07-12 20:00:49 +01:00
zerolab
6345c8c4c1
Release notes for #10612
2023-07-12 16:59:53 +01:00
Jake Howard
8767f40f45
Add Rendition.cache_backend
tests
...
- to ensure correct backend is selected
- for purging image renditions with cache
2023-07-12 16:43:25 +01:00
Jake Howard
b05e675ceb
Move rendition cache method to Rendition.cache_backend
...
This is more descriptive
2023-07-12 16:42:47 +01:00
Jake Howard
7a5ef80abd
Use hash of file to construct rendition cache
...
This means if the underlying file changes, the rendition cache is invalidated.
Also, ensure different images with the same file get cached separately. This mostly happens in tests
2023-07-12 16:40:24 +01:00
Jake Howard
ce04163be7
Use dummy cache in image tests
2023-07-12 16:35:06 +01:00
Jake Howard
27a203f697
Always cache renditions
...
This should provide a big performance boost to those who don't set the cache, with minimal extra overhead.
2023-07-12 16:35:06 +01:00
Jake Howard
e463c80250
Prevent memory exhaustion when running wagtail_update_image_renditions with many renditions
...
This reduces the memory overhead of the command, allowing it to be run on sites with lots of images.
Whilst that may reduce performance, I've also added a `select_related` and massively simplified the
`purge_only` path to counter
2023-07-12 16:31:57 +01:00
Thibaud Colas
366e7f0153
Add support for --template argument to wagtail start
2023-07-12 13:18:31 +01:00
Antoni Martyniuk
47df43d722
Finish attrs
support for FieldPanel and other Panels
...
- Closes #10133
- Rework from original PR #10323
- Add documentation
2023-07-12 20:25:09 +10:00
4the4ryushin
a1aeefa6ea
Add initial support for Panels with attrs
...
- Rename shared/attrs template for reuse in other files
- Add `attrs` to Panel and a `BASE_ATTRS` property for reuse
- Add initial unit tests
2023-07-12 20:25:09 +10:00
Sage Abdullah
a5bea1ccaf
Release notes for #10626
2023-07-12 09:21:12 +01:00
Sage Abdullah
db0b985484
Use flex display for listing header .right class
...
Workaround until #10148 is fixed
2023-07-12 09:18:11 +01:00
Sage Abdullah
0550b03dad
Allow customising the spreadsheet file name via SnippetViewSet.export_filename
2023-07-12 09:18:11 +01:00
Sage Abdullah
428b7914e2
Add docs and tests for exporting snippets listing
2023-07-12 09:18:09 +01:00
Sage Abdullah
0a731b37f4
Add the ability to export snippet listing via SnippetViewSet.list_export
2023-07-12 09:14:16 +01:00
Sage Abdullah
a2487fe6d9
Extract is_export and paginate_by configuration to SpreadsheetExportMixin
2023-07-12 09:14:16 +01:00
Sage Abdullah
45ab2630ef
Extract spreadsheet export buttons to shared export_buttons.html template
2023-07-12 09:14:16 +01:00
Sage Abdullah
85dfb2c7e7
Remove unused addbutton class usage
...
There is no mention of this class anywhere in the codebase.
2023-07-12 09:14:15 +01:00