jacobtoppm
|
57ce9b0a90
|
Change border-style: none to border-style: 0 as preferred by linting
|
2020-07-24 16:59:33 +01:00 |
|
Karl Hobley
|
fcc1e0fe05
|
Lint SCSS
|
2020-07-24 16:59:33 +01:00 |
|
Karl Hobley
|
358cfaa4e8
|
Remove invalid HTML
|
2020-07-24 16:59:33 +01:00 |
|
Karl Hobley
|
12c9e6480d
|
Use BEM-style class names
|
2020-07-24 16:59:33 +01:00 |
|
Karl Hobley
|
bdbfc2e65e
|
Moved workflow progress CSS into a separate SCSS file
|
2020-07-24 16:59:33 +01:00 |
|
Karl Hobley
|
dad2d7edf5
|
Human readable dates and i18n
|
2020-07-24 16:59:33 +01:00 |
|
Karl Hobley
|
3b085b9f89
|
Add tests
|
2020-07-24 16:59:33 +01:00 |
|
Karl Hobley
|
6c8d74e3da
|
Fix crash if revision has not user
|
2020-07-24 16:59:33 +01:00 |
|
Karl Hobley
|
9b56cbd380
|
Add tooltips
|
2020-07-24 16:59:33 +01:00 |
|
Karl Hobley
|
c71a4d4463
|
Initial work on workflow history detail view
|
2020-07-24 16:59:33 +01:00 |
|
Karl Hobley
|
faf984f2aa
|
Initial work on workflow history
|
2020-07-24 16:59:33 +01:00 |
|
jacobtoppm
|
512440625b
|
Correct references to Page.STATUS_... strings to WorkflowState.STATUS_...
|
2020-07-24 16:59:33 +01:00 |
|
Karl Hobley
|
3a49ef3ffc
|
Fix a couple of magic strings
|
2020-07-24 16:59:33 +01:00 |
|
Karl Hobley
|
16b6221627
|
Only look for other in progress task if this is in progress
|
2020-07-24 16:59:33 +01:00 |
|
jacobtoppm
|
89625fd137
|
Remove unique together on sort order as unnecessary and leading to errors upon saving reordered workflows, and make WorkflowTask Meta inherit from Orderable.Meta to prevent overriding ordering and preventing reordering of workflows
|
2020-07-24 16:59:33 +01:00 |
|
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 |
|