Himanshu Garg
e02ca6ce62
fixes some of errors by removing directives
2024-07-18 23:13:26 +01:00
Sage Abdullah
6b5662cbdc
Release note for #12023
2024-07-18 18:26:38 +01:00
Sage Abdullah
9ac9a93e54
Reinstate canAddBlock assertions for StreamBlock and ListBlock's max_num
2024-07-18 18:26:14 +01:00
Matt Westcott
6eacfec4ec
Add tests for showing / hiding errors on per-block-type min_num
2024-07-18 18:26:14 +01:00
Matt Westcott
b2f49f64a1
Add tests for showing / hiding errors on per-block-type max_num
2024-07-18 18:26:13 +01:00
Matt Westcott
c510d7f720
Show error when ListBlock falls below min_num
2024-07-18 18:26:13 +01:00
Matt Westcott
14325d4615
Show error when StreamBlock falls below min_num
2024-07-18 18:26:13 +01:00
Matt Westcott
23df591435
Show error on exceeding ListBlock maxNum, rather than disabling addition
2024-07-18 18:26:13 +01:00
Matt Westcott
0fb10fb663
Show error on exceeding StreamBlock maxNum, rather than disabling addition
...
As per #9513 / #9784
2024-07-18 18:26:13 +01:00
smark-1
95eac5ab78
Allow page to change private page options
2024-07-18 17:23:30 +01:00
Albina
2d568dd825
Content checks design upgrade: help text and separate cards ( #12090 )
...
Co-authored-by: Thibaud Colas <thibaudcolas@gmail.com>
2024-07-16 22:27:27 +01:00
Albina
62674d3fbb
Add underscore as an alt text antipattern ( #12119 )
2024-07-16 08:53:23 +01:00
Thibaud Colas
707467503d
Release notes for #12092
2024-07-16 08:08:26 +01:00
Sage Abdullah
063c52e1f2
Move inline script for activating workflow actions to workflow-action.js
...
Also deprecate the `window.ActivateWorkflowActionsForDashboard` and
`window.ActivateWorkflowActionsForEditView` functions as they no longer
need to be globally-accessible
2024-07-16 08:08:26 +01:00
Sage Abdullah
d0bdb3f769
Revert "Fix workflow action buttons in awaiting review dashboard panel"
...
This reverts commit b3846a63fc
.
It's a partial revert as the changes to DropdownController itself is
still useful, since it allows us to target the 'shown' event on the more
specific element instead of the document.
2024-07-16 08:08:26 +01:00
Sage Abdullah
1dd45f1cb8
Keep actions dropdown mounted in the 'workflow objects to moderate' dashboard item
...
For the same reason as the change to the footer actions in the editor
2024-07-16 08:08:26 +01:00
Sage Abdullah
8da32170c2
Revert "Fix workflow action buttons initialisation in footer actions"
...
This reverts commit fa267c9b1a
.
2024-07-16 08:08:26 +01:00
Sage Abdullah
bbb083a183
Keep footer actions dropdown mounted
...
This allows us to more easily hook up any event listeners for elements in the dropdown on init. Without keeping it mounted, Tippy will immediately unmount the content, making it impossible for attaching event listeners without listening for the dropdown's show event
2024-07-16 08:08:26 +01:00
Sage Abdullah
9d1bf256a2
Simplify revision checking and the ordering of editing sessions
2024-07-12 09:43:56 +01:00
Sage Abdullah
5efef7e440
Only show the current user in other sessions if there is one that's editing or there's a new revision made by the user
2024-07-12 09:43:56 +01:00
Sage Abdullah
7b11422a55
Use a snippet model without RevisionMixin for testing EditingSession
...
We want to make sure the feature works (without the new version
detection) when using a snippet model that does not use RevisionMixin.
We don't have any tests that ensures the new version detection works
with a RevisionMixin-enabled snippet. We can add those later, but the
code itself doesn't make a special-case between snippet vs pages, so
it's probably okay to skip them.
2024-07-12 09:43:56 +01:00
Sage Abdullah
1f67b5ae1d
Add test for editing session ping when latest revision has no associated user
2024-07-12 09:43:56 +01:00
Sage Abdullah
c58e156cd9
Prioritise sessions with revision_id, is_editing, and oldest ID
2024-07-12 09:43:56 +01:00
Sage Abdullah
349d052bbe
Only annotate the newest revision in the editing sessions
2024-07-12 09:43:56 +01:00
Sage Abdullah
d302a51751
Handle validation error when saving EditingSession
2024-07-12 09:43:56 +01:00
Sage Abdullah
08bc2cd367
Require POST for editing session ping endpoint
2024-07-12 09:43:55 +01:00
Sage Abdullah
86b29fe588
Rename 'editing' query param to 'is_editing'
2024-07-12 09:43:55 +01:00
Matt Westcott
af830636b1
Include recently-saved revision data in other_sessions
2024-07-12 09:43:55 +01:00
Matt Westcott
23072c8dae
In ping response, merge multiple editing sessions by the same user
...
This will simplify the logic when we come to incorporate revision data, since A) we have a lookup by user ID to work with, and B) if a user has multiple sessions AND a revision, we'd have to arbitrarily choose one session to attach the revision data to.
2024-07-12 09:43:55 +01:00
Matt Westcott
cee7f389ab
Add is_editing flag to EditingSession
2024-07-12 09:43:55 +01:00
Albina
14f3d4607f
Add content metrics board ( #12058 )
2024-07-11 14:58:19 +01:00
Matt Westcott
15378899e2
Update latest.txt for 6.1.3 and 5.2.6
2024-07-11 12:59:43 +02:00
Matt Westcott
60d95b6f71
Add missing release notes for 6.1.3
2024-07-11 12:51:56 +02:00
Matt Westcott
3cbf7e01bc
Fix test syntax for Python<=3.11
2024-07-11 12:13:27 +02:00
Matt Westcott
323af126b7
Fetch new translations from Transifex
2024-07-11 11:56:07 +02:00
Matt Westcott
74b2f54e05
Add release notes / fill in release date for 6.1.3
2024-07-11 11:43:18 +02:00
Matt Westcott
26de9fdc19
Add release notes for 6.0.6
2024-07-11 11:41:57 +02:00
Matt Westcott
11c061e51e
Fill in release date for 5.2.6
2024-07-11 11:41:38 +02:00
Matt Westcott
7c16075342
Release note for CVE-2024-39317 in 5.2.6
2024-07-11 11:40:54 +02:00
Jake Howard
8667318326
Require word boundaries before search query filters (CVE-2024-39317)
...
Requiring a word boundary before the start of a filter prevents backtracking, as substrings of the filter name are no longer valid filter names.
This also makes matching around an order of magnitude faster.
2024-07-11 11:40:32 +02:00
Matt Westcott
0932ba395c
Release note for #11952
2024-07-10 17:12:12 +02:00
Sage Abdullah
f126a4860e
Deprecate user form-related settings
2024-07-10 17:10:36 +02:00
Sage Abdullah
449a48d7f9
Reorganise docs for custom user forms to prefer UserViewSet customisation
...
And make small tweaks to the GroupViewSet docs so the custom apps
examples align.
2024-07-10 17:10:36 +02:00
Sage Abdullah
b6fdd8c408
Move UserSearchArea registration to UserViewSet
...
In a similar fashion to how we register the menu items
2024-07-10 17:10:36 +02:00
Sage Abdullah
dc892ac232
Document UserViewSet customisation
2024-07-10 17:10:36 +02:00
Sage Abdullah
db99b839a7
Remove UsersMenuItem in favour of the default from ModelViewSet
...
The default implementation makes use of the permission policy, and since we supply the model via get_user_model(), it should automatically pick up the correct codenames
2024-07-10 17:10:36 +02:00
Sage Abdullah
71c357268a
Remove UserAdminURLFinder in favour of the default provided via ModelViewSet
2024-07-10 17:10:36 +02:00
Sage Abdullah
ff9f4d5bc1
Register Users and Groups menu items from the viewset
2024-07-10 17:10:36 +02:00
Sage Abdullah
60bf31c10e
Read UserViewSet class from wagtailusers AppConfig
2024-07-10 17:10:36 +02:00
Sage Abdullah
e453089a9b
Rename users view classes to use -View suffix
2024-07-10 17:10:36 +02:00