Skip to content

Commit

Permalink
Add work item ordering by deadline (#402)
Browse files Browse the repository at this point in the history
Fixes #401
  • Loading branch information
David Vogt authored and czosel committed Apr 29, 2019
1 parent 56e4687 commit 3e83b44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions caluma/tests/snapshots/snap_test_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -1503,6 +1503,8 @@
enum WorkItemOrdering {
STATUS_ASC
STATUS_DESC
DEADLINE_ASC
DEADLINE_DESC
CREATED_AT_ASC
CREATED_AT_DESC
MODIFIED_AT_ASC
Expand Down
2 changes: 1 addition & 1 deletion caluma/workflow/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class Meta:


class WorkItemFilterSet(MetaFilterSet):
order_by = OrderingFilter(label="WorkItemOrdering", fields=("status",))
order_by = OrderingFilter(label="WorkItemOrdering", fields=("status", "deadline"))
addressed_groups = StringListFilter(lookup_expr="overlap")

class Meta:
Expand Down

0 comments on commit 3e83b44

Please sign in to comment.