Commit Graph

2402 Commits

Author SHA1 Message Date
23c3b72a43 Refactor object_from_message to make it more testable and fix some bugs.
Extract the from email using the email library instead of pre-decoding
which exposes the comma separator causing the email address to be
extracted incorrectly if the real name contains a comma.
Raise an exception when a message to be ignored is detected to process
ignored messages explicitly.
2022-09-04 22:01:32 +01:00
e1085cb370 Custom exception to handle ignored messages explicitly. 2022-09-04 21:53:08 +01:00
3c4c9ce533 Additional test libraries for more detailed testing of emails 2022-09-02 22:12:42 +01:00
4e001c7f15 test utility methods to simplify more complex tests 2022-09-02 22:11:19 +01:00
238dd8d3d5 Fix import order 2022-08-15 20:21:19 +02:00
bc3d89b555 Fix PyCharm warnings in staff.py 2022-08-15 20:15:02 +02:00
cf25e5f714 Merge pull request #1048 from martin-marty/remove_azure
Remove azure and default to github actions on pull requests,opened/reopened
2022-08-09 11:01:39 -04:00
c70092e113 Remove restrictions
Signed-off-by: Martin Whitehouse <martin@umed.org>
2022-08-08 18:41:57 +02:00
b3051fb686 Merge branch 'unstable' into remove_azure 2022-08-08 18:23:42 +02:00
353bd699df Remove azure and default to pull requests,opened/reopened 2022-08-08 18:19:58 +02:00
a8d1ee194f Merge pull request #1038 from IvanovIvan1900/correct_requirements
Fix for latest version of markdown library and add some markdown tests
2022-08-08 09:53:24 -04:00
8359a1e5ae Fix. Add test markdown and rewrite for last markdown is working 2022-08-08 20:29:43 +07:00
3a13bbfeef Fix. Add test markdown and rewrite for last markdown is working 2022-08-08 20:20:00 +07:00
8abf0ab8a8 Fix. Add test markdown and rewrite for last markdown is working 2022-08-08 18:16:18 +07:00
c55c98bc3e Merge pull request #1047 from martin-marty/workflow-cache
Workflow cache update to always run tests on push
2022-08-08 06:46:23 -04:00
eaf4a4124a Merge branch 'unstable' of git@github.com:martin-marty/django-helpdesk.git into workflow-cache 2022-08-08 12:18:12 +02:00
5d06835c03 Run 'On push' 2022-08-08 11:13:13 +02:00
1d450c01db Merge branch 'unstable' into correct_requirements 2022-08-08 15:48:34 +07:00
cf5be66fae Fix. Fix problem wich version package in requirements and add test markdown and rewrite for new markdown 2022-08-06 18:34:16 +07:00
ce812a6525 Merge pull request #1046 from martin-marty/workflow-cache
Workflow cache improvement
2022-08-05 11:00:25 -04:00
8ab7599bea Remove parallel constraint 2022-08-05 14:43:53 +02:00
cd480b2750 Add Djagno versions to test matrix
32 and 4 used for constraints
2022-08-05 14:27:29 +02:00
a51933f9bf Bump django 2.2 -> 3.2 2022-08-05 10:28:31 +02:00
cb35578b70 Add python version to cache key
Prevents conflicts
2022-08-05 10:09:00 +02:00
6b0400dbcd Add cache to workflow 2022-08-05 10:04:50 +02:00
3a157c1f13 Merge pull request #1045 from spmzt/patch-1
Fix typo: Dissable to disable
2022-08-03 23:32:53 -04:00
318417f097 Merge branch 'unstable' into patch-1 2022-08-03 18:05:13 +04:30
47f0bf8df6 Dissable to disable 2022-08-01 16:13:59 +04:30
a28569a984 Fix. Fix problem wich version package in requirements and add test markdown 2022-07-27 19:58:39 +07:00
e75e977911 Merge pull request #1041 from martin-marty/unstable
Refactoring to reduce complexity of several email-related functions
2022-07-25 01:47:40 -04:00
4a429f5498 Add flake8 exit failure to workflow 2022-07-25 04:47:59 +02:00
72392a3f50 Add update_summary_tables helper function
Reduces complexity of 'run_report' and handles updating summary table in
own function
2022-07-25 04:44:46 +02:00
205c69b539 Add get_report_table_and_totals helper function
Extracts a large portion of run_report handling
2022-07-25 04:41:01 +02:00
b1bf2cab46 Add get_report_queryset_or_redirect helper
Gets required objects or redirects
2022-07-25 04:35:49 +02:00
50bd72ac7a Move import to top 2022-07-25 04:31:17 +02:00
d858c40416 Add check_redirect_on_user_query helper function
Extract the checking for a redirect to reduce complexity
2022-07-25 04:29:43 +02:00
f89f5b91da Reinstate changes, fixed missing update 2022-07-25 04:23:03 +02:00
40a243c23b Revert changes, updating objects missed somewhere 2022-07-25 04:15:53 +02:00
a248181857 Add redirect_from_chosen_ticket helper function
Moves the whole handling to own block, reducing complexity greatly.
2022-07-25 04:08:16 +02:00
eb11c4fe0e Rename ticket_attriubtes to upper, module level constant. 2022-07-25 04:03:12 +02:00
a783156b61 Add merge_ticket_values helper
Extract a large portion of code from `merge_tickets`
2022-07-25 04:01:27 +02:00
bed7f0e493 Add default value property to TicketCustomField
Property of the model, so add it there to keep consistency
2022-07-25 04:00:57 +02:00
46f8e9d21f Clear error
Use.objects.get causes undefined variable when using get_user_model
2022-07-25 03:52:58 +02:00
1468982043 Remove unused variables, extract correct index 2022-07-25 03:50:49 +02:00
b326103d82 Fix spacing 2022-07-25 03:48:06 +02:00
57cd2f1471 Remove annoation for py3.8 2022-07-25 03:47:57 +02:00
45e47846fe py3.8 annotation fix 2022-07-25 03:45:36 +02:00
7b4d53cfc0 Fix 'list' annoation for py3.8 2022-07-25 03:44:04 +02:00
749ebbe16b Fix annotations for py3.8 2022-07-25 03:42:16 +02:00
595dae1cf7 Add get_template_staff_and_template_cc function
Furhter reduxes complexity by combining creation of templates
2022-07-25 03:38:16 +02:00