From 1736fbe3cb857df0d1045aabfebbe8a5e85226ff Mon Sep 17 00:00:00 2001 From: Sabu Siyad Date: Wed, 12 Apr 2023 02:29:46 +0530 Subject: [PATCH] refactor: sort (#1107) * feat: ticket priority: add integer value field * feat: add `sort_options` * feat: patch: integer values for ticket priorities * chore: install: change priority integer logic * fix: sort: remove cache --- .../components/desk/tickets/PresetFilters.vue | 28 +++----- desk/src/composables/listFilters.ts | 6 +- desk/src/composables/listManager.ts | 5 +- desk/src/pages/desk/Tickets.vue | 71 ++++++++----------- desk/src/stores/ticketPriority.ts | 10 ++- helpdesk/extends/client.py | 5 +- helpdesk/extends/doc.py | 40 +++++++++++ .../helpdesk/doctype/hd_ticket/hd_ticket.py | 31 +++++++- .../hd_ticket_priority.json | 19 ++++- helpdesk/patches/add_priority_integer.py | 20 ++++++ helpdesk/setup/install.py | 28 ++++++-- 11 files changed, 181 insertions(+), 82 deletions(-) create mode 100644 helpdesk/extends/doc.py create mode 100644 helpdesk/patches/add_priority_integer.py diff --git a/desk/src/components/desk/tickets/PresetFilters.vue b/desk/src/components/desk/tickets/PresetFilters.vue index 00e137d63..41b977364 100644 --- a/desk/src/components/desk/tickets/PresetFilters.vue +++ b/desk/src/components/desk/tickets/PresetFilters.vue @@ -1,34 +1,22 @@