Karl Hobley
|
623ea70ffc
|
Retrieve tasks in order they are on the workflow
|
2020-07-24 16:59:33 +01:00 |
Karl Hobley
|
35cb4ab0f5
|
Fix crash when WorkflowState.current_task_state is null
|
2020-07-24 16:59:33 +01:00 |
Karl Hobley
|
86be460ef5
|
Return responses from TaskState.on_action
This allows workflow actions to redirect somewhere for the review to
take place.
|
2020-07-24 16:59:33 +01:00 |
Karl Hobley
|
8152423622
|
Allow task state class to be specified as an attribute
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
8664d7cea7
|
Set blank=True on current_task_state, and address issue with MySQL backend not recogning conditional unique 'one in progress workflow' constraint by adding an additional check in pre-save validation.
|
2020-07-24 16:59:33 +01:00 |
Karl Hobley
|
514bc7de20
|
Make isort see unknown modules as third party by default
|
2020-07-24 16:59:33 +01:00 |
Karl Hobley
|
6a2715cc27
|
Show last workflow
|
2020-07-24 16:59:33 +01:00 |
Karl Hobley
|
cb692e5c79
|
Fix JavaScript errors when page is not in workflow
|
2020-07-24 16:59:33 +01:00 |
Karl Hobley
|
e962ad6004
|
Use latest revision that's relevant to the workflow
|
2020-07-24 16:59:33 +01:00 |
Karl Hobley
|
fdaa99e4f9
|
Remove a magic-string
|
2020-07-24 16:59:33 +01:00 |
Karl Hobley
|
7bcd10208f
|
Get task number from list inex (instead of Task.sort_order)
This fixes inaccuracies if there are any inactive tasks
|
2020-07-24 16:59:33 +01:00 |
Karl Hobley
|
ab101f3503
|
Only use WorkflowState's from latest revision when reporting progress
Also, annotate status_display so we don't use slugs
|
2020-07-24 16:59:33 +01:00 |
Karl Hobley
|
8487742df8
|
Remove unnecessary workflow_name/task_name variables
|
2020-07-24 16:59:33 +01:00 |
Karl Hobley
|
d7b2e06ece
|
Implemented WorkflowState.all_tasks_with_status
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
b2a6274a79
|
Replace .intersection() uses with id__in filters to avoid failure on MySQL backend
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
0fbc40bd41
|
Tweak icon alignment in nav to raise icons relative to text by 5%, as previously looked like clipboard icon was misaligned
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
b4ea951ab3
|
Use new workflow icon in add to page view
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
b10ba56b26
|
Add new clipboard-list icon and use for workflows. Fix if statement in views/pages to add buttons outside main conditional clauses
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
b01ba985c4
|
Remove reference to old field on GroupApprovalTask
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
95cb76996d
|
Fix data migration setting of sort order to set 0 rather than 1
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
6ea10a8f1a
|
Include auto_now_add change to started_at in migrations
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
a0818bc49f
|
Get steplen from Page model rather than hardcoding in migration
|
2020-07-24 16:59:33 +01:00 |
Karl Hobley
|
a05063bcdf
|
Fix flake8 issues
|
2020-07-24 16:59:33 +01:00 |
Karl Hobley
|
98b149bea9
|
Use auto_now_add for TaskState.created_at
|
2020-07-24 16:59:33 +01:00 |
Karl Hobley
|
9f26bf6eac
|
Use auto_now_add for WorkflowState.created_at
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
a203b04c84
|
Respect 'keep_live' parameter on copy, remove unnecessary kwargs and saving from copy methods
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
ecbb9e6233
|
Flake8
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
c8edf05612
|
Fix tests to remove submission tests for old moderation system, and amend where possible
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
4384a19f45
|
Add old moderation message back for consistency
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
ba0c7f154c
|
Fix order of arguments to remove workflow view/url
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
9c804c3fa3
|
Remove page manager serialization as would require code changes to managers generated from querysets
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
d74aa6f448
|
Remove print statement
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
3214ca883e
|
Isort
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
fe1ffe1601
|
flake8
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
e393721e15
|
Add old, simpler moderation message if workflow only has one step. Add 'compare with live' button to moderation messages
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
ff7db93325
|
Add workflow messages only if GET request to avoid double banner bug
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
fc1d857f63
|
Serialize page manager in migrations, and add a data migration to recreate the site's permission based moderation system in the new workflow system by creating a set of default workflows
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
95367505b8
|
Add schema migrations for workflow models
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
cf404ec600
|
Refactor GroupApprovalTask to accept multiple groups, in preparation for migration recreating existing moderation functionality
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
226942b3f1
|
Isort
|
2020-07-24 16:59:33 +01:00 |
Karl Hobley
|
42de571d7a
|
Fix flake8 errors
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
e8978ad3dd
|
Remove debugger
|
2020-07-24 16:59:33 +01:00 |
jacobtoppm
|
03b6b2f665
|
Make copy mixin methods work with m2m links with through classes with ParentalKeys: these are now checked for, and left for the copying child objects stage of copying
|
2020-07-24 16:59:33 +01:00 |
jacobtm
|
02a706581e
|
Refactor common copy method mixin from Page and TaskState
|
2020-07-24 16:59:33 +01:00 |
jacobtm
|
0d5c2d6a30
|
Move removal of triggering user from notification recipients outside if condition
|
2020-07-24 16:59:33 +01:00 |
jacobtm
|
b48c281c8c
|
Re-add safe filter to plain text templates
|
2020-07-24 16:59:33 +01:00 |
jacobtm
|
23ccdb836c
|
Add preview link to actions for dashboard panel, and tidy indentation
|
2020-07-24 16:59:33 +01:00 |
jacobtm
|
4380e4c90e
|
Add workflow pages to moderate dashboard panel
|
2020-07-24 16:59:33 +01:00 |
jacobtm
|
db54d567d6
|
Add dashboard panel showing pages that the user has submitted for moderation, or that are owned by the user. Add helper function to determine the started_at of a successive run of TaskStates - useful when page has been edited multiple times, so the same task has resumed
|
2020-07-24 16:59:33 +01:00 |
jacobtm
|
007526f77f
|
Only show workflow warning that tasks may need re-approval if WAGTAIL_WORKFLOW_REQUIRE_REAPPROVAL_ON_EDIT=True
|
2020-07-24 16:59:33 +01:00 |