Martin Whitehouse
256af24daa
Comment function
2022-07-25 03:34:03 +02:00
Martin Whitehouse
a2f33c9799
Add add_staff_subscription
helper
...
Further reduces complexity by checking for subscription in helper
function
2022-07-25 03:32:45 +02:00
Martin Whitehouse
f678c63496
Add update_messages_sent_to_by_public_and_status
helper function
...
Handles updating ticket and sending ticket reply
2022-07-25 03:30:07 +02:00
Martin Whitehouse
fe619b5ff2
Combine conditionals to single line
2022-07-25 03:22:59 +02:00
Martin Whitehouse
f815ebbb5c
Add get_time_spent_from_request
helper
...
Extracts further code
2022-07-25 03:17:10 +02:00
Martin Whitehouse
9294eca5d6
Add get_and_set_ticket_status
helper
...
Extracts some futher code from `update_ticket`
2022-07-25 03:11:30 +02:00
Martin Whitehouse
ecefd5e407
Extract the due_date
to helper function
2022-07-25 03:01:50 +02:00
Martin Whitehouse
574395ee28
Easy pickings
...
Simple code violations of reserved symbols etc.
2022-07-25 02:46:33 +02:00
Martin Whitehouse
8d63d65a7d
Removed encoding to 'utf-8', breaks tests.
...
This needs to be looked into further.
2022-07-25 02:41:40 +02:00
Martin Whitehouse
4e2b7deefb
Reduces complexity of object_from_message
...
Helper functions created to help break up the flow
2022-07-25 02:22:32 +02:00
Martin Whitehouse
a5e74d6449
Extract getting ticket_id from subject to helper function
2022-07-25 01:56:13 +02:00
Martin Whitehouse
283f052c0e
Annotate function signature
2022-07-25 01:47:00 +02:00
Martin Whitehouse
80f4152301
Simplify return statement
...
Rename `ticket` to `ticket_id` for clarity
2022-07-25 01:43:43 +02:00
Martin Whitehouse
0b1de1eead
Removed unused import
...
Result of previous code removal
2022-07-25 01:23:12 +02:00
Martin Whitehouse
fe28c2f540
Merge branch 'unstable' of git@github.com:martin-marty/django-helpdesk.git into 1039-complexity-reduction
2022-07-25 01:22:11 +02:00
Martin Whitehouse
1ac78955c0
Removed notifications_to_be_sent
list
...
The whole loop appeared to be doing nothing other than appending email
addresses to a list, which was never used.
2022-07-25 01:22:05 +02:00
Martin Whitehouse
e863609cbe
Add complexity to flake8 configuration
...
Set to maximum value 20
2022-07-25 01:17:12 +02:00
Martin Whitehouse
cf804a586a
Add verbosity argument to quicktest
...
Enables verbose output for analysis on what is happening
2022-07-25 01:16:46 +02:00
Garret Wassermann
148eff8b7b
Merge pull request #1037 from uhurusurfa/unstable
...
Add django-cleanup app to support deleting file system files
2022-07-23 17:20:41 -04:00
Garret Wassermann
bdd8e39421
Update install.rst
...
Fix a docs misspelling
2022-07-23 17:18:01 -04:00
chrisbroderick
0d85acc460
Add Django cleanup app for attachment file system deletion
2022-07-23 12:14:36 +01:00
chrisbroderick
58ed521a2c
Add the file system deletion app for attachments into INSTALLED_APPS
2022-07-23 11:58:28 +01:00
Garret Wassermann
681e8b267d
Merge pull request #1036 from martin-marty/redundant_cc_code_in_email
...
Remove left over 'cc' code
2022-07-22 13:52:54 -04:00
Martin Whitehouse
0f0b0a5995
Remove left over 'cc' code
2022-07-22 16:27:38 +02:00
Garret Wassermann
3a90af142b
Merge pull request #1034 from martin-marty/tox_dependencies
...
Add initial tox.ini
2022-07-22 02:35:33 -04:00
Garret Wassermann
868e7a667a
Merge branch 'unstable' into tox_dependencies
2022-07-22 02:33:21 -04:00
Garret Wassermann
e29f07ab90
Merge pull request #1035 from martin-marty/github-workflow-tools-isort
...
GitHub workflow tools isort
2022-07-22 02:32:32 -04:00
Garret Wassermann
57f9ae0a1c
Merge branch 'unstable' into tox_dependencies
2022-07-22 02:27:41 -04:00
Garret Wassermann
8bb357fa90
Merge pull request #1032 from martin-marty/github-workflow-tools
...
GitHub workflow tools
2022-07-22 02:24:06 -04:00
Martin Whitehouse
44f068d1b8
re-apply formatting
2022-07-22 03:30:35 +02:00
Martin Whitehouse
c2e933b1fb
Removed future import
2022-07-22 03:28:46 +02:00
Martin Whitehouse
25542f929e
Initial isort configuration
...
Will fail build if imports are not sorted correctly
2022-07-22 03:26:41 +02:00
Martin Whitehouse
b867cf5680
Add initial tox.ini
...
`make release` will now create a test environment free from the source.
Gives isolated testing.
2022-07-22 02:06:36 +02:00
Martin Whitehouse
12bb68d5ee
Add flake8 to workflow
2022-07-22 01:23:50 +02:00
Martin Whitehouse
e2a8b974dd
Removed unused imports, format long line
2022-07-22 01:21:25 +02:00
Martin Whitehouse
fb21d9bcdc
Check for model enabled before registering
2022-07-22 01:20:10 +02:00
Martin Whitehouse
280462c2fe
Remove 'f-string', no place holders present
2022-07-22 01:18:45 +02:00
Martin Whitehouse
8d658b4c08
Add missing space after '#'
2022-07-22 01:16:44 +02:00
Martin Whitehouse
5314b55f96
Verbose step name
2022-07-22 01:11:31 +02:00
Martin Whitehouse
f6810865b6
Missing -
2022-07-22 01:08:17 +02:00
Martin Whitehouse
3fdcb41d68
Add autopep8 to build pipeline
2022-07-22 01:06:42 +02:00
Martin Whitehouse
7e2b95b8c4
pycodestyle section added
...
Will format with, max line length 120, recursively; inplace ignoring
migrations
2022-07-22 01:06:23 +02:00
Garret Wassermann
85c1d8610c
Merge pull request #1030 from martin-marty/github-workflow
...
GitHub workflow and actions
2022-07-20 13:03:23 -04:00
Martin Whitehouse
38fbbd2613
Merge branch 'unstable' into github-workflow
2022-07-20 16:43:10 +02:00
Martin Whitehouse
fa91620bf9
EscapeHtml.extendMarkdown disabled
...
Updated markdown caused failures.
Not sure what is going on with this class, 0 comments :-(
If someone could give me a hint as to what this is trying to achieve, I
can investigate further
2022-07-20 16:32:51 +02:00
Martin Whitehouse
08654bd9c4
Remove 3.10 from test matrix
...
Working through to error cause
2022-07-20 16:21:28 +02:00
Martin Whitehouse
70206b8f8f
Add django<4 constraint to workflow
2022-07-20 16:10:18 +02:00
Martin Whitehouse
f6caebc661
Add requirements-testing to workflow
2022-07-20 16:01:07 +02:00
Martin Whitehouse
3423627f2d
Add shebang to 'quicktest.py'
2022-07-20 15:59:28 +02:00
Martin Whitehouse
10fe26fd0e
Merge branch 'github-workflow' of git@github.com:martin-marty/django-helpdesk.git into HEAD
2022-07-20 15:54:24 +02:00