jacobtm
|
97adc2d44d
|
Make signals work with new Notifier subclasses
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
c825852049
|
Refactor a more abstract general notification class out, Notifier
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
ceb17fa849
|
Remove Notifier submit, reject, approve methods, and replace with specific subclasses of Notifier
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
21cc989913
|
Refactor can_handle_class and can_handle_notification into just can_handle for simplicity
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
2f8c5d3e0a
|
Remove unused js
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
3f9248f195
|
Remove dead workflow-action code
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
443983a064
|
Make workflow_status.html compatible with translation
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
bb61668b49
|
Rename tests for consistency
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
7093b5a0d8
|
Add tests for disabling and enabling tasks and workflows
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
0ac9003860
|
Amend empty wording for index views depending on whether disabled tasks are shown
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
731dc95ffd
|
Save deactivated tasks before cancelling in progress states so that WorkflowState.get_next_task does not incorrectly find the deactivating task
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
eb1a0e3a05
|
Add a way to deactivate tasks and workflows. When deactivated, in progress TaskStates and WorkflowStates are cancelled. Preventing deletion preserves history. Inactive Tasks on a Workflow will not be started.
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
48d22b8cea
|
Add ExcludeFieldsOnEditMixin for edit handlers, disabling specific fields when bound to an existing instance rather than creating a new one
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
759228d37d
|
Add workflow deletion view
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
a181a85820
|
Re-add SimpleTask model to testapp
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
33f9bbf586
|
Add tests for actions and notifications
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
009451fbc2
|
Remove debugging, pass **kwargs into every function
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
130cf3f94c
|
Rename notification templates to match expected format and tweak wording
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
3ba0e7cad1
|
Pass user through workflow/task methods
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
662446ee04
|
Fix errors preventing mail sending; configure to work with signals sent on workflow events
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
cfeef13cfd
|
Add GroupApprovalTaskStateNotifier
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
8f5535d5bb
|
Add workflow state notification function
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
7997cb6766
|
Use pre-opened connection to send multiple notification emails, preventing inefficiency of opening and closing connection for each email
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
6e68905021
|
First draft of group approval task and workflow email templates
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
12a8446038
|
Exclude triggering user from notification email at final queryset step to avoid readding
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
a66d88d708
|
Refactor notifications code into potentially task-specific and generic sending functions
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
3a768fc7d8
|
Improve UI styling of workflow info panel. Implement icons using wagtail_icon tag for accessibility. Add further comments.
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
02232ff5f0
|
Add workflow status on page
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
641dcc39ca
|
Add workflow messages to edit view
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
d8a59b88a6
|
Remove moderator notification from edit view
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
eddbef17aa
|
Only show workflow actions dropdown if more than one option
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
52a79bd30c
|
Fix workflow action menu, styling after action menu
|
2020-07-24 16:59:33 +01:00 |
|
Karl Hobley
|
640d207619
|
Implemented workflow action buttons
|
2020-07-24 16:59:33 +01:00 |
|
Karl Hobley
|
0d6a5b5299
|
Unlock page when it enters a Group Approval task
|
2020-07-24 16:59:33 +01:00 |
|
Karl Hobley
|
1e69c7df17
|
Always include pages locked by the user on the "Locked pages" report
|
2020-07-24 16:59:33 +01:00 |
|
Karl Hobley
|
39fc148e5d
|
Allow workflow to grant lock/unlock permissions
|
2020-07-24 16:59:33 +01:00 |
|
Karl Hobley
|
5cf5e17ea7
|
Allow reviewers to access the page editor
|
2020-07-24 16:59:33 +01:00 |
|
Karl Hobley
|
a8210d5a38
|
Display "in moderation" in status string
|
2020-07-24 16:59:33 +01:00 |
|
Karl Hobley
|
ad4009633b
|
Hide "Submit for moderation" button if moderation is in progress
|
2020-07-24 16:59:33 +01:00 |
|
Karl Hobley
|
2444092c31
|
Make "Submit for moderation" kick off the workflow
|
2020-07-24 16:59:33 +01:00 |
|
Karl Hobley
|
407ed6852a
|
Disable "Submit for Moderation" if no workflow has been configured
|
2020-07-24 16:59:33 +01:00 |
|
Karl Hobley
|
a9487695f5
|
Use symbols rather than strings to represent statuses in code
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
8f5cb357ac
|
Add core/workflows.py, and move publish_workflow_state out of utils and into that
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
14bcf60d9a
|
Fix comment referring to workflow for a test about a task
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
b8c088fca9
|
Check for status tag 'disabled' rather than simply the word to avoid catching things like the JavaScript disabled notification
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
a10db70dfd
|
Add tests for task views
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
30dfaf3661
|
Finish edit tests, and add TestAddWorkflowToPage
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
094e330355
|
Add further explanatory comments, and make finish action for WorkflowState configurable via a setting
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
5416bdf4ba
|
Rewrite methods to account for revisions. Test and fix initial exceptions. Add database constraint on unique in progress workflow
|
2020-07-24 16:59:33 +01:00 |
|
jacobtm
|
77e4f39e38
|
Add FK to ContentType and introduce TaskState.specific analogous to Page
|
2020-07-24 16:59:33 +01:00 |
|