jacobtoppm
5d3e9d7ecd
Register workflow and task permissions, add tests for workflow admin views with and without permissions, and ensure the workflow menu item is only shown if the workflow index is accessible ( #6159 )
2020-07-24 16:59:33 +01:00
jacobtoppm
0ed801244c
Prevent non-reviewers from locking the page during workflow ( #6156 )
2020-07-24 16:59:33 +01:00
jacobtoppm
eaa7b6d7a3
Fix id of clipboard list svg ( #6144 )
2020-07-24 16:59:33 +01:00
jacobtoppm
04f703268e
Change request.is_ajax to request.is_ajax() ( #6145 )
2020-07-24 16:59:33 +01:00
jacobtoppm
e70c309899
[Workflow] Commenting ( #6136 )
...
* Add comment to TaskState
* Add ability for Task on_action to accept kwargs, and a get_form_for_action method to request a form to enter addition kwargs for an action
* Refactor workflow_action to take more arguments rather than getting them from POST data, and add a GET version that returns a modal. Use this to add a way to add approve/reject comments on tasks
* Make tasks set finished_by
* Make workflow history timeline view the default, and fix comment display
* Add link to workflow history/comments on 'needs changes' message
* Fix tests to use new workflow action url
* Remove now-unnecessary check for TaskState copying on notifier
* Add comments to rejection emails
* Change needs changes banner to warning style, and reverse timeline order to show more recent events and crucially comments first
* Create template include for Wagtail standard form rendering, and use it in workflow action modal
2020-07-24 16:59:33 +01:00
jacobtoppm
f684bc7776
Workflow reviewable filter ( #6139 )
...
* Pass request into report filtersets
* Add reviewable filter to workflow and tasks reports
2020-07-24 16:59:33 +01:00
jacobtoppm
5be2d6df56
Fix task_states_with_status to get only latest task state status for task ( #6138 )
...
Get status from latest task state only when annotating task states with statuses
2020-07-24 16:59:33 +01:00
jacobtoppm
74a8cf8036
Workflow needs changes state ( #6047 )
...
Replace WorkflowState STATUS_REJECTED with STATUS_NEEDS_CHANGES, which does not end a workflow, and add cancellation and resubmit to rejector options. Make Workflows lock pages to non-reviewers. Make the linear mode of workflow the default.
2020-07-24 16:59:33 +01:00
Dan Braghis
f551dd3cfe
Fix icon sizes on workflow report
...
[skip ci]
2020-07-24 16:59:33 +01:00
Dan Braghis
ecdc4558c5
Use TemplateResponse for workflow-related views
2020-07-24 16:59:33 +01:00
Dan Braghis
ed2d9a0094
Add missing admin widgets changes
...
Missed because of the `admin/widgets.py` to `admin/widgets/*` split
2020-07-24 16:59:33 +01:00
Dan Braghis
dce5020e17
Add a 'uniform' icon style
2020-07-24 16:59:33 +01:00
Dan Braghis
53c5606ada
Fix icon use in workflow templates
2020-07-24 16:59:33 +01:00
Dan Braghis
0f58bd241a
Move workflow upgrade considerations to 2.10
2020-07-24 16:59:33 +01:00
Dan Braghis
8dd8f59a72
Fix merge conflict remnants
2020-07-24 16:59:33 +01:00
Dan Braghis
a30d3e87fd
Register new clipboard icon and use in Workflow menu
2020-07-24 16:59:33 +01:00
Matt Westcott
e6cd2b9483
Move pagination controls into base report
2020-07-24 16:59:33 +01:00
Matt Westcott
07ebbc24a4
Allow FilteredModelChoiceField to accept a callable or relation name as well as a property / method name for filter_accessor
2020-07-24 16:59:33 +01:00
Matt Westcott
ad37867bc6
Support optgroups in FilteredSelect
2020-07-24 16:59:33 +01:00
Matt Westcott
15114e8918
Add test for FilteredSelect
2020-07-24 16:59:33 +01:00
Matt Westcott
e182723371
More detailed docstring for FilteredSelect; also tweak it to accept filter_values as an actual list rather than a comma-delimited string
2020-07-24 16:59:33 +01:00
Matt Westcott
36780a9f56
Move FilteredSelect to wagtail.admin.widgets
2020-07-24 16:59:33 +01:00
Matt Westcott
35c55091af
Move button select widgets to wagtail.admin.widgets
2020-07-24 16:59:33 +01:00
Matt Westcott
19609ebd4d
Split up wagtail.admin.widgets into submodules
2020-07-24 16:59:33 +01:00
Matt Westcott
564e2097bb
Fix name of started_at filter in tasks report
2020-07-24 16:59:33 +01:00
Matt Westcott
8b1a304533
Filter the tasks dropdown by the chosen workflow
2020-07-24 16:59:33 +01:00
Matt Westcott
c0d2dd7aea
Add workflow filter to workflow tasks report
2020-07-24 16:59:33 +01:00
Karl Hobley
87d3213738
Mark translatable strings
2020-07-24 16:59:33 +01:00
Matt Westcott
bcbf6f0366
Add date range filters to workflow reports
2020-07-24 16:59:33 +01:00
Matt Westcott
3cb8b90a0d
Implement filtering on workflow reports
2020-07-24 16:59:33 +01:00
Karl Hobley
f46848e201
Add export configuration for workflow reports
2020-07-24 16:59:33 +01:00
Matt Westcott
984eb4efcf
Refactor workflow reports to be based on reports base template
2020-07-24 16:59:33 +01:00
jacobtoppm
b2fba99817
Raise 404 if failing to find specified page or task for previewing during moderation
2020-07-24 16:59:33 +01:00
jacobtoppm
dec7f8ed46
Make workflow states cancel their active task states on cancel()
2020-07-24 16:59:33 +01:00
jacobtoppm
e0699e0a67
Remove unused view
2020-07-24 16:59:33 +01:00
jacobtoppm
21e0371b67
Split get_next_task query into multiple lines for readability
...
Co-Authored-By: Matt Westcott <matthew@torchbox.com>
2020-07-24 16:59:33 +01:00
jacobtoppm
e809e1f262
Formatting
2020-07-24 16:59:33 +01:00
jacobtoppm
6647825d13
Wrap mail sending in try, except block in case of connection error
2020-07-24 16:59:33 +01:00
jacobtoppm
9946e39ea7
Make selection of a task type to create take account of the potential full inheritance tree rather than just the next level, and prevent creation of abstract tasks
2020-07-24 16:59:33 +01:00
jacobtoppm
cd4fa92a35
Fix query when retrieving next task to filter out only tasks that have task states that are both attached to the current revision and completed, rather than tasks that have task states that individually fulfil both criteria
2020-07-24 16:59:33 +01:00
jacobtoppm
3834195f79
Add safe filter to task and workflow names on plain text notification templates to prevent escaping. Ensure plain text templates inherit from the plain text base templates, rather than html.
2020-07-24 16:59:33 +01:00
Matt Westcott
38629160cc
Use full name for 'requested by' and test additional fields
2020-07-24 16:59:33 +01:00
Matt Westcott
7cde99e9b6
Use clipboard icon
2020-07-24 16:59:33 +01:00
Matt Westcott
69570044b1
Add test for workflow report and fix warning about paginating unordered queries
2020-07-24 16:59:33 +01:00
Matt Westcott
be8997bc18
Import bootstrap-tooltip.js instead of all of _editor_js.html
2020-07-24 16:59:33 +01:00
Karl Hobley
3ab3f5d171
Initial work on workflow report
2020-07-24 16:59:33 +01:00
jacobtoppm
c59cae51ee
Remove unused Notifier subclasses, and refactor EmailNotifier into EmailNotificationMixin
2020-07-24 16:59:33 +01:00
jacobtoppm
05fafff317
Changes to make subclassing notifications for Wagtail Review simpler
2020-07-24 16:59:33 +01:00
Karl Hobley
2bd0026d49
Added get_comment overridable method to TaskState
2020-07-24 16:59:33 +01:00
Karl Hobley
92a3423350
Replace a magic string
2020-07-24 16:59:33 +01:00