Sage Abdullah
e57a57dbaa
Mark legacy moderation system tests for removal
2023-10-05 10:35:27 +01:00
Sage Abdullah
bb5d45a0c4
Deprecate legacy moderation items for the userbar
2023-10-05 10:35:27 +01:00
Sage Abdullah
065fab50a3
Deprecate submitted_revisions manager and save_revision's submitted_for_moderation kwarg
2023-10-05 10:35:27 +01:00
Sage Abdullah
5f70ebeaa1
Deprecate Revision.approve_moderation() and Revision.reject_moderation()
2023-10-05 10:18:48 +01:00
Sage Abdullah
37455e9041
Deprecate preview_for_moderation view
2023-10-05 10:18:48 +01:00
Sage Abdullah
c5caec6345
Deprecate WAGTAIL_MODERATION_ENABLED setting in favour of WAGTAIL_WORKFLOW_ENABLED
...
The latter came later in #7218 , but existing parts that still use
the old setting were not migrated to use the new setting
2023-10-05 10:18:48 +01:00
Sage Abdullah
5f6366c494
Raise warning when editing a page that's in the legacy moderation system
2023-10-05 10:18:48 +01:00
Sage Abdullah
e7595ab91d
Raise warning if there are revisions for moderation
2023-10-05 10:18:47 +01:00
Matt Westcott
ea6ca67ae0
Release note for #10989 in 5.0.4
2023-10-04 13:53:06 +01:00
Sage Abdullah
b05705fa07
Release notes for #10940
2023-10-04 13:31:21 +01:00
Sage Abdullah
ded26f0d44
Pass the 'More' buttons list to construct_snippet_listing_buttons hook
...
This hook would mostly be used to remove the default buttons. Now that
we put the default buttons inside the "More" dropdown button, it makes
sense to pass that dropdown's buttons list instead of the top-level
buttons for the hook.
2023-10-04 12:06:46 +01:00
Sage Abdullah
60d0008c55
Rename get_list_dropdown_buttons to get_list_more_buttons
2023-10-04 11:34:37 +01:00
Sage Abdullah
059111c143
Add tests for default listing buttons in ModelViewSet IndexView
2023-10-04 11:34:35 +01:00
Sage Abdullah
97052d2e46
Add docs for context argument removal from construct_snippet_listing_buttons
2023-10-04 11:31:46 +01:00
Sage Abdullah
39ae5b2797
Add more tests for snippets listing button hooks
2023-10-04 11:30:50 +01:00
Sage Abdullah
bb5c669e54
Update snippets listing buttons hook tests to ensure they are rendered in the right places
2023-10-04 11:30:50 +01:00
Sage Abdullah
c4057917e5
Do not pass the Column class' parent_context in IndexView get_list_buttons
...
As a result, the construct_snippet_listing_buttons hook can (and should) no longer pass context variables
2023-10-04 11:30:50 +01:00
Sage Abdullah
77f6607218
Use intermediary method for injecting get_buttons to column class in IndexView
...
Instead of passing the get_list_buttons method that has been bound to the view
2023-10-04 11:30:50 +01:00
Sage Abdullah
2722ac7f2b
Preserve dropdown buttons added via snippets listing button hooks as top-level buttons
2023-10-04 11:30:49 +01:00
Sage Abdullah
d4b5ce8499
Move snippets listing buttons hooks handling to the IndexView class
2023-10-04 11:30:25 +01:00
Sage Abdullah
a7f1719f64
Use shared buttons.html include in generic title_cell.html template
2023-10-04 11:30:25 +01:00
Sage Abdullah
09d81eee9f
Replace pages/listing/_buttons.html template usage with shared/buttons.html
2023-10-04 11:30:24 +01:00
Sage Abdullah
62ddc43566
Move snippets listing_buttons.html to shared buttons.html template
2023-10-04 11:30:24 +01:00
Sage Abdullah
d34aba87b9
Sort listing buttons and dropdown_buttons before rendering
2023-10-04 11:30:24 +01:00
Sage Abdullah
1a1fc5c1a7
Refactor default snippets listing buttons to reuse the generic IndexView buttons
2023-10-04 11:30:24 +01:00
Sage Abdullah
e9dfca2cf7
Extract get_list_dropdown_buttons in generic IndexView
2023-10-04 11:30:24 +01:00
Sage Abdullah
360cebf518
Add delete button to generic IndexView
2023-10-04 11:30:23 +01:00
Sage Abdullah
ebe2c61600
Add default listing buttons handling in generic IndexView
...
It's not ideal that we are basically defining the column's method from
the IndexView, but it does allow us to use methods like get_edit_url()
which can be very useful for creating the buttons.
2023-10-04 11:30:21 +01:00
Sage Abdullah
8a22168367
Add action buttons rendering in title_cell.html template
2023-10-04 11:29:48 +01:00
Sage Abdullah
cbd82f06de
Create ButtonsColumnMixin
2023-10-04 11:29:48 +01:00
Sage Abdullah
b32c5c08cd
Release notes for #10930
2023-10-04 11:26:25 +01:00
Sage Abdullah
2eaa59da24
Add tests for ModelViewSet's usage view
2023-10-04 11:20:32 +01:00
Sage Abdullah
41abe3342c
Disable side panels on groups, locales, and sites edit view
2023-10-04 11:20:32 +01:00
Sage Abdullah
61c5f3e130
Add default last updated info to generic EditView's status side panel
2023-10-04 11:20:31 +01:00
Sage Abdullah
4c78ff8f09
Rename live_last_updated_info to last_updated_info
...
We want to reuse this without the context of live/draft state
2023-10-04 11:20:31 +01:00
Sage Abdullah
3a9e5a2680
Add StatusSidePanel to generic EditView
2023-10-04 11:20:31 +01:00
Sage Abdullah
e6bd210a0f
Rename BaseStatusSidePanel to StatusSidePanel
2023-10-04 11:20:31 +01:00
Sage Abdullah
7f131603ff
Add default content for no_results_message block in listing_results.html template
2023-10-04 11:20:30 +01:00
Sage Abdullah
4593eabff8
Add usage view to ModelViewSet
...
- Move permission_required from snippets' UsageView to generic UsageView
- Fix breadcrumbs item missing capfirst()
- Move usage view config in SnippetViewSet to ModelViewSet
2023-10-04 11:20:30 +01:00
Sage Abdullah
055485f0ab
Move usage_url resolution from snippets EditView to generic EditView
2023-10-04 11:20:30 +01:00
Sage Abdullah
7a045cc7e6
Pass last updated info from the view to the status side panel via __init__
2023-10-04 11:20:30 +01:00
Sage Abdullah
2b4a206d76
Remove unused preview_url context variable in the create/edit view mixin
...
Was mistakenly added in the PR that moved the side panels context variables to the view
2023-10-04 11:20:30 +01:00
Sage Abdullah
dab55a69fb
Move StatusSidePanel's history_url resolution to __init__
2023-10-04 11:20:29 +01:00
Sage Abdullah
9701be79e4
Move StatusSidePanel's usage_url resolution to __init__
2023-10-04 11:20:29 +01:00
MugoBrian
b1de0e5860
Python3-venv Installation Instructions For Ubuntu ( #10988 )
2023-10-04 11:12:02 +01:00
Sage Abdullah
5a0bd78e68
Release notes for #10919
2023-10-04 10:51:28 +01:00
Sage Abdullah
d73f48a735
Add tests for ModelViewSet's history view
2023-10-04 10:42:01 +01:00
Sage Abdullah
d7e32c79cc
Add link to history view in generic EditView
2023-10-04 10:42:01 +01:00
Sage Abdullah
31694dc141
Remove snippets edit_header.html in favour of generic slim_header.html
...
This is now possible now that the slim_header.html template has the history icon link include
2023-10-04 10:42:01 +01:00
Sage Abdullah
2b89685f80
Incorporate history icon link to slim_header.html template
2023-10-04 10:42:00 +01:00