Commit Graph

323 Commits

Author SHA1 Message Date
93edf8c3bf Merge branch 'main' into feat/manage-saved-queries-page 2025-06-08 15:04:52 +02:00
12fba9c68c Add priority filter to ticket list view and template 2025-06-08 16:42:26 +05:30
80bd72a171 feat: add saved queries list view page with run and delete support 2025-06-07 12:20:38 +05:30
9da65f05eb Just pass the user ID rather than the entire User object. 2025-05-09 19:44:06 +02:00
a82974b3dd Fix typo 2025-04-11 11:39:42 +01:00
0e9d3477ff Remove redundant default for get method on dict. 2025-04-11 11:38:18 +01:00
6925aaaf38 Fix create ticket path 2025-04-09 07:35:13 +01:00
2ab22ca3cc Fix formatting 2025-04-08 22:59:02 +01:00
f22f1e7daa Add UpdateTicketView class to support ticket updates as class based
view.
2025-04-08 22:55:49 +01:00
3683dd6e0a remove unused variables 2025-03-24 09:43:19 -10:00
091670179b run ruff formatter 2025-03-22 15:29:19 -10:00
1e580aa59d for last_followup remove filter stub, fix localization, improve serializer 2025-03-21 23:55:28 +00:00
b2375381a1 Remove filter and uneeded render code 2025-03-18 22:32:46 +00:00
b7b04166fc sorting on Last Followup works 2025-03-12 02:46:08 +00:00
921d424239 last followups show in all tickets but cant be sorted by 2025-03-11 23:01:38 +00:00
c30bf866df Fix multiple problems with search filters and query building 2025-03-06 02:38:42 +00:00
a7b3177944 DUPLICATE_STATUS Tickets moved to closed & resolved ones 2024-09-16 10:26:58 +02:00
9ee0207c3c Save custom fields in a followup 2024-07-26 10:02:05 +00:00
8901086a80 If title cannot be retrieved from POST, default should be ticket.title 2024-07-26 09:08:10 +00:00
f8cccbcf0a Display custom fields in Follow-up form 2024-07-26 08:46:26 +00:00
0b38f1d5bd Remove superfluous use of Value() in When clause 2024-06-10 17:27:43 +02:00
54864b2c1e Rewrite dependency tickets ordering, using Case annotation 2024-06-10 10:08:07 +02:00
ec603347c7 Improve code quality 2024-06-08 22:32:05 +02:00
7bf21685b3 Fix: remove unused and undefined context variable 2024-06-08 12:52:10 +02:00
bc764b50c1 Fix: itertools are superseded by NotIn ORM operator 2024-06-08 12:12:56 +02:00
25c36a6f5c Restrict ticket selection for dependencies and parents
When adding a dependent or parent ticket, the choice field in the
ticket selection form excludes:

- All existing dependencies of the current ticket.
- All existing parent tickets of the current ticket.
- The current ticket itself.

The first two prevent immediate circular references: A dependency
cannot be a parent and vice versa.  Deeper circular references are
not covered by this: a ticket can still be its own grandchild.

They also prevent current behavior of throwing an `IntegrityException`
when selecting a dependency or parent.

The third one prevents also a quirky behavior: until now, specifying the
ticket itself as parent or dependency just does not save the
dependency and does not issue a warning either.
2024-06-08 12:11:01 +02:00
b52ab69c42 Order dependend ticket with NotIn ORM operator instead of itertools 2024-06-08 12:00:43 +02:00
d7afcb6578 Reformat Resolves/Depends lists into tables. Allow adding/deleting of parent tickets 2024-06-06 00:28:36 +02:00
42be32b17b Allow to track queue change in follow-ups 2024-04-08 12:33:23 +00:00
ffb7522e79 Use update_ticket method when placing ticket on hold 2023-11-26 16:40:52 +00:00
6cba903827 Merge remote-tracking branch 'origin/main' into fix_unassigned_kbitems_not_visible_when_teams_not_active 2023-11-15 01:06:07 +00:00
d65b103cc4 Merge pull request #1139 from timthelion/webhooks
Refactor update tickets view
2023-11-15 00:54:32 +00:00
9195e4b738 Unassigned tickets lookup foix when teams is disabled. 2023-11-15 00:42:51 +00:00
b0ef6a5484 Fix #1138 by calling update_ticket directly from non-update views 2023-11-14 21:47:12 +01:00
ade4c3115e Move update ticket logic out of staff.py 2023-11-14 21:17:37 +01:00
6cd5522099 Move to ruff, its faster & catches more 2023-11-14 20:37:05 +01:00
21513d4524 Fix security problem with update_ticket view
@martin-marty Introduced a security flaw in this commit.

ecefd5e407#

By extracting authentication logic for the update_ticket view to a new function
and mixing the return types. This function returns both a Ticket object and a
login redirect. This is simply non-sensical and fails to actually login-redirect
non-authenticated users.
2023-11-11 22:26:19 +01:00
770cdc77b8 Add more tests 2023-05-01 22:54:41 +02:00
3b55f37fb5 Fix isort issues 2023-04-30 04:13:50 +02:00
3235333873 Drag & drop on ticket checklist tasks edition page + Use an empty form in order to better generate new task row dynamically 2023-04-30 03:56:42 +02:00
ef88a2ee8a Better workflow for creating new ticket checklist, into a modal 2023-04-30 03:11:27 +02:00
11b2b36dd2 Allow updating task state when writing a ticket follow-up 2023-04-30 02:18:16 +02:00
308f69a03b CRUD Checklist Template 2023-04-30 01:15:05 +02:00
af1ba5f205 Create a page to edit checklist name and tasks + another page for deletion 2023-04-29 00:24:06 +02:00
b8d06a0fb1 Show a form to create a new checklist, with the possibility to use a preset template 2023-04-23 00:36:10 +02:00
1b3d97e183 Fix incorrectly removed time import 2023-04-03 10:49:01 +01:00
7ff870ec88 Merge branch 'main' into #1075---add-options-for-date-and-datetime-input-in-ticket-view 2023-03-26 00:46:07 +00:00
9e71fc8467 Remove redundant import 2023-03-25 13:21:27 +00:00
21ccc83d69 #1075 - make view agnostic to format of incoming due date 2023-03-17 13:12:03 -07:00
930fc71d8b Merge branch 'main' into fix-warnings 2023-03-10 23:52:46 +00:00