Commit Graph

1589 Commits

Author SHA1 Message Date
Sam Splunks
79b7ce9650 notify_followup_webhooks used in email, so moving signal triggering code 2024-04-16 08:42:03 +00:00
Sam Splunks
0e96909f43 Removed unused TichetChange import 2024-04-16 08:36:29 +00:00
Sam Splunks
08ed2a5035 Adding receiver import 2024-04-16 08:34:03 +00:00
Sam Splunks
ebb9a4d50d Make update_ticket_done signal trigger notify_followup_webhooks 2024-04-16 08:23:06 +00:00
Sam Splunks
2499f81d4d Add a signal when the ticket upate is done (every related instance created and updated) 2024-04-16 08:04:01 +00:00
Sam Splunks
8fffae343c Update TicketChange creation code 2024-04-16 07:58:33 +00:00
Sam Splunks
a775622521
Create ticket change through instance relationship
Co-authored-by: Benbb96 <Benbb96@users.noreply.github.com>
2024-04-12 10:44:56 +02:00
Sam Splunks
5b39c9aeeb
Update forloop for queues with explicit variable names in ticket template
Co-authored-by: Benbb96 <Benbb96@users.noreply.github.com>
2024-04-12 10:39:58 +02:00
Sam Splunks
62ef86a047 Settings assertion values in hours 2024-04-09 13:45:41 +00:00
Sam Splunks
aa5e2d0c67 Fixed test comment 2024-04-09 13:33:20 +00:00
Sam Splunks
d1af580483 Remove queues exclusion at the end of test 2024-04-09 13:32:11 +00:00
Sam Splunks
6e845f6351 Adding test for multiple exclusion queues through follow-ups 2024-04-09 13:27:42 +00:00
Sam Splunks
f4ab7a5226 Refactored time_spent calculation queue exclusions to reflect queue changes over time 2024-04-09 13:25:35 +00:00
Sam Splunks
e372f4447b Adding test_update_ticket_queue test 2024-04-09 12:18:43 +00:00
Sam Splunks
e526c21aef Update ticket queue foreign key id 2024-04-09 12:05:32 +00:00
Sam Splunks
33b3216d38
Merge branch 'django-helpdesk:main' into followup_queue_change 2024-04-09 12:01:12 +02:00
Sam Splunks
bb4e05ba39 Removed unused Queue model import 2024-04-08 12:43:11 +00:00
Sam Splunks
42be32b17b Allow to track queue change in follow-ups 2024-04-08 12:33:23 +00:00
Sam Splunks
e439acd626 Removed helpdesk_settings USE_TZ 2024-04-08 08:41:27 +00:00
Sam Splunks
27bafa847c Removed old comment 2024-04-08 08:39:27 +00:00
Sam Splunks
09f504fa3e Removing unnecessary followup saves 2024-04-08 08:37:00 +00:00
Sam Splunks
210b7b13f8 Removing unused test Client 2024-04-08 08:31:58 +00:00
Sam Splunks
b99514f585 Removed useless USE_TZ 2024-03-27 16:27:32 +00:00
Sam Splunks
f5bff3af4e Clearing some settings at the end of test 2024-03-27 16:22:14 +00:00
Sam Splunks
57ad29f46b Removed useless setting 2024-03-27 16:20:22 +00:00
Sam Splunks
c16d189104 Testing queues exclusion 2024-03-27 16:19:33 +00:00
Sam Splunks
5e0df47a4f Adding status exclusion test 2024-03-27 16:15:15 +00:00
Sam Splunks
e3a745f81a Testing holidays 2024-03-27 16:04:30 +00:00
Sam Splunks
acecc41ec8 Using MIDNIGHT constant instead of number 2024-03-27 15:59:25 +00:00
Sam Splunks
1d8fc2ad42 Opening hours tests and bug fix 2024-03-27 15:56:55 +00:00
Sam Splunks
3be5bbed44 Removed begining of next test 2024-03-27 14:32:56 +00:00
Sam Splunks
f0fb8039ef Adding USE_TZ = True to comply with 32bits tests 2024-03-27 14:30:56 +00:00
Sam Splunks
d6b37f1c11 Updating time_spent test with multiple follow-ups at multiple time intervals 2024-03-27 14:20:34 +00:00
Sam Splunks
f4bde19511 Fixing a bug to differentiate between 23:59:59 and 24:00:00 end times 2024-03-27 14:19:15 +00:00
Sam Splunks
cf81e0d452 Update simple follow-up time spent calculation 2024-03-26 11:54:23 +00:00
Timothy Hobbs
128a465d44 Enabling filtering of tickets by status in API 2024-03-02 00:28:00 +01:00
Sam Splunks
0be6282bfe Basic auto time_spent calculation test 2024-02-27 14:49:18 +00:00
Timothy Hobbs
9a353bf4a5 You can now turn off file attachment filtering, fixes #1162 2024-02-26 19:34:35 +01:00
Timothy Hobbs
b1b83cd593 Add some convenient functions for protecting views in custom installations 2024-02-18 16:01:44 +01:00
Sam Splunks
7a7a39d567 Extracting previous ticket status from latest follow-up with new_status set 2024-02-15 16:16:24 +00:00
Sam Splunks
5482d7b6df Adding year to HELPDESK_FOLLOWUP_TIME_SPENT_EXCLUDE_HOLIDAYS dates 2024-02-15 15:42:29 +00:00
Sam Splunks
ae7c8c7aea Raise ImproperlyConfigured if HELPDESK_FOLLOWUP_TIME_SPENT_OPENING_HOURS is out of (0, 23.9999) boundary values 2024-02-15 15:24:55 +00:00
Sam Splunks
02e333cf52 Precise selection of previous status 2024-02-15 09:55:57 +00:00
Sam Splunks
ae89d182a9 Removed duplicate format_time_spent function definition 2024-02-15 09:30:02 +00:00
Sam Splunks
cec1035c2d Return precisely 86400 seconds for a full day 2024-02-15 09:18:36 +00:00
Sam Splunks
99b49e3f39 Refactoring earliest and latest follow-up time selection logic, also allows for time_spent recalculation if unset 2024-02-15 09:08:25 +00:00
Sam Splunks
b1759520d8 Merge exclusion conditions for time_spent calculation 2024-02-14 14:52:23 +00:00
Sam Splunks
b3cbfdbe09 Added HELPDESK_FOLLOWUP_TIME_SPENT_EXCLUDE_QUEUES setting 2024-02-14 13:36:46 +00:00
Sam Splunks
7e65e3d367 Renamed setting to HELPDESK_FOLLOWUP_TIME_SPENT_EXCLUDE_STATUSES 2024-02-14 13:23:15 +00:00
Sam Splunks
90666a47ba Adding HELPDESK_FOLLOWUP_TIME_CALCULATION_EXCLUDE_STATUSES setting 2024-02-14 13:21:19 +00:00
Sam Splunks
220f6d56a8 Adding HELPDESK_FOLLOWUP_TIME_SPENT_EXCLUDE_HOLIDAYS setting 2024-02-14 13:03:58 +00:00
Sam Splunks
eb9d947dd6 Update comments 2024-02-14 12:33:20 +00:00
Sam Splunks
a671a9e8dc Fixed undefined timedelta error 2024-02-14 10:23:31 +00:00
Sam Splunks
c3f6a1caa2 Adding second precision for float conversion 2024-02-14 10:21:34 +00:00
Sam Splunks
05dfde59cb Include opening hours for follow-up time_spent calculation 2024-02-14 10:16:20 +00:00
Sam Splunks
ed6aa132f3 timedelta seconds property is limited to 86400 2024-02-13 10:31:06 +00:00
Sam Splunks
ab8bd7637d Adding comment header according to documentation header 2024-02-13 09:30:21 +00:00
Sam Splunks
cd77ac7a9d Update FollowUp time calculation method 2024-02-13 09:27:12 +00:00
Sam Splunks
f7e3a2b8aa Automatic absolute time_spent calculation for ticket FollowUp 2024-02-13 08:59:48 +00:00
Sam Splunks
40ef247844
Handle "no label" for status id case (shouldn't happen) 2024-02-05 11:39:45 +01:00
Sam Splunks
c7a9a1ab54
Removed ticket new status logic from templates 2024-02-05 11:34:56 +01:00
Sam Splunks
8b53ef9505
Passing ticket status flow logic to Ticket model 2024-02-05 10:58:42 +01:00
Sam Splunks
6498126b87
Forgot {% endif %} line while pasting code 2024-02-02 16:20:08 +01:00
Sam Splunks
302769e59c
Merge branch 'main' into main 2024-02-02 16:08:33 +01:00
Sam Splunks
827c0b7ed3
Update public ticket view with new settings statuses logic 2024-02-02 15:40:08 +01:00
Sam Splunks
71047e1fac
Allow new settings statuses in "Respond to this ticket" status changes 2024-02-02 15:32:12 +01:00
Sam Splunks
2ff266a612
Fixed pairing parenthesis 2024-02-01 16:28:26 +01:00
Sam Splunks
3e6e39fc39
Fixing missing capitalized Q_OPEN_STATUSES variable 2024-02-01 15:43:56 +01:00
Sam Splunks
ab2c2f79a4
Allow Tickets status choices customization 2024-02-01 15:38:02 +01:00
Ste-KNY
aaafe397c1 Implement Custom delete_queryset Method in QueueAdmin to Resolve Django 1062 Error 2024-01-31 14:13:25 +01:00
Sam Splunks
1bf92a82c4
Removed unused gettext import 2024-01-24 10:59:51 +01:00
Sam Splunks
3e791d98fa Explicit property naming 2024-01-22 14:39:53 +00:00
Sam Splunks
3537ec7447 Customization of Ticket PRIORITY_CHOICES in project settings 2024-01-22 14:30:44 +00:00
Timothy Hobbs
c9f742227e Include custom fields in user tickets api endpoint 2024-01-16 22:19:32 +00:00
Timothy Hobbs
b0977a44d0 Remove debug output code from tests 2024-01-04 00:16:47 +00:00
Timothy Hobbs
7aa7f0eca2 Fix custom field sending in new ticket webhook 2023-12-27 19:39:12 +00:00
Timothy Hobbs
7a4210df50 my_tickets.html: Trans tags 2023-12-04 23:42:49 +00:00
Timothy Hobbs
9b17dc3cbd More formatting fixes on ticket view page 2023-12-04 23:38:28 +00:00
Timothy Hobbs
4432802562 Fix css for showing ticket followups 2023-12-04 23:38:28 +00:00
Timothy Hobbs
83994d07d7 Fix updating tickets when opened from my-tickets view 2023-12-04 23:38:28 +00:00
Timothy Hobbs
27f295098c Improve webhook env var handling & docs 2023-12-04 23:37:31 +00:00
Christopher Broderick
c959c24b96
Merge branch 'main' into webhooks-2 2023-12-04 08:42:58 +00:00
Christopher Broderick
9db89e6714
Merge pull request #1145 from timthelion/webhooks-1
API: Actually send out emails when creating followups via the API
2023-12-04 07:57:36 +00:00
Timothy Hobbs
04bbb27b24 Fix mistake in if chaining 2023-12-03 00:34:29 +00:00
Timothy Hobbs
e708281dcd Implement webhooks. Fixes #264 2023-12-02 20:57:21 +00:00
Timothy Hobbs
9526ca9820 Do the full update ticket flow when followups are posted from the API 2023-11-30 11:40:11 +01:00
Timothy Hobbs
2360c2ed53 Add My Tickets view to staff menu as well 2023-11-27 11:18:31 +01:00
Timothy Hobbs
e00e19625a Remove Due Date and Submitter columns from My Tickets view as these are not necessary 2023-11-27 11:14:10 +01:00
Timothy Hobbs
ffb7522e79 Use update_ticket method when placing ticket on hold 2023-11-26 16:40:52 +00:00
Timothy Hobbs
8f71bdac7a Add tests for user_tickets api endpoint 2023-11-26 12:58:53 +00:00
Timothy Hobbs
5d190c30ab re-protect public views 2023-11-23 22:52:45 +01:00
Timothy Hobbs
162a368b9d Remove all mention of obsolute API deactivation switch. The helpdesk frontend
now requires the API
2023-11-23 22:23:13 +01:00
Timothy Hobbs
3d4d58b5fd Fixes #994 2023-11-23 21:58:02 +01:00
Timothy Hobbs
b92c83de39 Implement My Tickets view in public helpdesk
Note: This is a breaking change as it forces pagination on the API endoints.
This should have been done from the start as the API without pagination is
useless when there are large numbers of tickets.
2023-11-23 21:50:44 +01:00
Timothy Hobbs
cec90aafdd Show username in nav header 2023-11-23 20:59:58 +01:00
Timothy Hobbs
4481795c7f search_for_ticket → class based view 2023-11-23 20:52:27 +01:00
Timothy Hobbs
e128cc0d5c view_ticket → class based view 2023-11-23 20:48:50 +01:00
Christopher Broderick
da00cf67b3
Update helpdesk/settings.py
Co-authored-by: Benbb96 <Benbb96@users.noreply.github.com>
2023-11-15 11:31:45 +00:00
Christopher Broderick
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
Christopher Broderick
d65b103cc4
Merge pull request #1139 from timthelion/webhooks
Refactor update tickets view
2023-11-15 00:54:32 +00:00