Commit Graph

1344 Commits

Author SHA1 Message Date
Petr Dlouhý
29e73158b4 make question stronger 2020-02-26 10:49:28 +01:00
Petr Dlouhý
782dd86680 add doctype to iframes 2020-02-26 10:49:28 +01:00
Petr Dlouhý
64db14148f add KBCategory.public in admin list_display 2020-02-26 10:49:28 +01:00
Petr Dlouhý
e448491bf1 more blocks to the KB_category_base template, HTML validity fixes 2020-02-26 10:23:11 +01:00
Petr Dlouhý
93e82f5469 allow KBItems to be disabled for users 2020-02-25 14:46:21 +01:00
Petr Dlouhý
d0aafd6135 add KBitem.order to allow ordering items 2020-02-25 14:43:10 +01:00
Petr Dlouhý
5a594b7436 add KBCategory.name, improve KBCategory admin 2020-02-25 14:36:18 +01:00
Petr Dlouhý
07d6ee7f87 fix typo 2020-02-25 14:36:18 +01:00
Petr Dlouhý
cdddc79998 make Knowledge Base templates more flexibly overidable 2020-02-25 14:36:11 +01:00
Arkadiy Korotaev
1643a45457
fix<process_email>: free the log file handler after it's not used anymore 2020-02-12 20:53:00 +01:00
Timothy Hobbs
28531144db Use default str for displaying kbitems in filter view 2020-02-11 17:11:41 +01:00
Timothy Hobbs
3d7860b5a3 pycodestyle fixes 2020-02-11 16:47:33 +01:00
Timothy Hobbs
bb9d886eea Fix query by uncatigorized 2020-02-11 16:44:18 +01:00
Timothy Hobbs
74450e900a Add team to kbitem admin table 2020-02-11 15:35:40 +01:00
Timothy Hobbs
2a3272914c Show kbitem categories in kbitem string representation 2020-02-11 15:20:16 +01:00
Arkadiy Korotaev
354debb618
fix<public>: Public ticket creation form improvements
Update forms.py and views/public.py to physically delete form fields
instead of just hiding them if default values for queue, date and priority are provided.

+ some bugfixes
+ code and stale imports removal
+ fix pep8 errors
2020-02-06 10:10:07 +01:00
Timothy Hobbs
f8c652d506 Better filtering + optional columns in ticket list view 2020-02-03 14:17:19 +01:00
Timothy Hobbs
5b0d44ec3a Assign KBItems to teams
This allows you to only show on the dashboard those tickets which belong to a
given user's team.
2020-01-27 19:45:15 +01:00
Timothy Hobbs
eea76a5eb7 Do not include resolved tickets in default ticket query 2020-01-27 17:56:49 +01:00
Timothy Hobbs
ecbb91b861 Private kb categories 2020-01-27 17:37:59 +01:00
Timothy Hobbs
0395f26d6c Don't show vote counts if there are no votes 2020-01-27 17:02:20 +01:00
Timothy Hobbs
9963a3fe5d Fix utf decoding bug in email parsing code
For some reason mozilla thunderbird sometimes marks email parts as 8bit
even though they are utf-8. I guess the best way to work around this is
to add a try-catch block because this really cannot be predicted.
2020-01-23 16:00:01 +01:00
Timothy Hobbs
2f8b4acf64 Fix pycodestyle errors 2020-01-20 14:17:23 +01:00
Timothy Hobbs
90621f575d Fix ironic ticket creation loop when submitter email == queue email 2020-01-20 13:23:32 +01:00
Timothy Hobbs
df94b56b07 Fix success view 2020-01-20 13:23:32 +01:00
Timothy Hobbs
cd019d1128 Improvements to iframe workflow 2020-01-20 13:23:32 +01:00
Timothy Hobbs
07a42e07f8 Made iframe ticket submit view CSRF exempt. Hopefully this is secure! 2020-01-20 13:23:31 +01:00
Timothy Hobbs
4c1fda5991 Fix iframe views so they actually can be displayed 2020-01-20 13:23:31 +01:00
Timothy Hobbs
5da7069dbd Add submitter email to ticket list 2020-01-20 13:23:31 +01:00
Timothy Hobbs
ebd876d0e2 Remove deprecated ticket_list_table.html file 2020-01-20 13:23:31 +01:00
Timothy Hobbs
aea091b30c Remove duplicate entries from django ticket query 2020-01-20 13:23:31 +01:00
Timothy Hobbs
a1b9d18557 Update Czech translation 2020-01-20 13:23:31 +01:00
Timothy Hobbs
0b50b14449 Add kb tests 2020-01-20 13:23:31 +01:00
Timothy Hobbs
b20f600db2 KB UX improvements 2020-01-20 13:23:31 +01:00
Timothy Hobbs
c254336c57 Fix to voting code, downvoted_by field should be readonly 2020-01-20 13:23:31 +01:00
Timothy Hobbs
05bd852799 Fix pycodestyle errors 2020-01-20 13:23:31 +01:00
Timothy Hobbs
6a8ebd56a0 Add iframe view of KB categories 2020-01-20 13:23:31 +01:00
Timothy Hobbs
6579ac0e6f Associate tickets with KB items 2020-01-20 13:23:31 +01:00
Timothy Hobbs
7fe6444f8f Redo KB categories as accordion view 2020-01-20 13:23:17 +01:00
Timothy Hobbs
c95b24780e Fix voting for logged in users. Voting still broken for anon users 2020-01-20 13:22:45 +01:00
Timothy Hobbs
5f29bb632e Associate queues with KB categories 2020-01-20 13:22:45 +01:00
Timothy Hobbs
606098d947 Fix field hiding and setting code for ticket submition qargs 2020-01-20 13:22:45 +01:00
Timothy Hobbs
133075f045 Fix #698 2020-01-20 13:22:45 +01:00
Timothy Hobbs
38cedca541 Can now hide custom fields using query param in public ticket form 2020-01-20 13:22:45 +01:00
Timothy Hobbs
fbae218281 Add ability to autoset custom fields in public ticket form 2020-01-20 13:22:45 +01:00
Timothy Hobbs
810184298f Include custom fields in public ticket form 2020-01-20 13:22:44 +01:00
Timothy Hobbs
aadfe08504 Add iframe supporting view for submitting tickets 2020-01-20 13:07:46 +01:00
Timothy Hobbs
24b8e45f66 Add ability to hide fields in public ticket submission form using kwargs 2020-01-20 13:07:45 +01:00
Timothy Hobbs
3b5a7fe49a Django <2 is no longer supported 2020-01-20 13:03:44 +01:00
Timothy Hobbs
d32d23e4e2 Add OR syntax to search 2020-01-20 13:03:44 +01:00
Timothy Hobbs
2fbd4818c1 filtering should not be mandatory 2020-01-20 13:03:44 +01:00
Timothy Hobbs
ef9c4c589a Fix linting errors 2020-01-20 13:03:44 +01:00
Timothy Hobbs
b96d725239 Refactor query code into customizable class 2020-01-20 13:03:44 +01:00
Timothy Hobbs
6eee6d196c Add timeline view for ticket queries 2020-01-20 13:03:44 +01:00
Timothy Hobbs
c4a1b9ed66 Move Query Results above Query Selection 2020-01-20 13:03:44 +01:00
Timothy Hobbs
627f2ba21b Add search button next to user emails 2020-01-20 13:03:44 +01:00
Timothy Hobbs
8985fc759d Remove hardcoded pk from test suit 2020-01-20 13:03:42 +01:00
Garret Wassermann
ebf765e10e
Merge pull request #794 from koriaf/master
fix<tickets>: Force HELPDESK_PUBLIC_TICKET_QUEUE for anon tickets
2020-01-11 16:47:16 -05:00
Arkadiy Korotaev
896307582a
fix<tickets>: Force HELPDESK_PUBLIC_TICKET_QUEUE for anon tickets
Before: we set initial value for the widget and had it hidden. So user could still change the queue with some HTML knowledge.

Now: we drop the field at all and assign queue directly, utterly ignoring the POST request content for "queue" field.
2020-01-07 13:47:36 +01:00
Alexander Skvortsov
377e1c3250 Added better support for custom user models by not requiring a first_name attribute 2020-01-06 22:18:48 -05:00
Alexander Skvortsov
84456aca23 Fixed syntax error 2020-01-06 20:23:35 -05:00
Arkadiy Korotaev
f72fbfa024
fix<ticket-search>: avoid exception of using function get_tickets_in_queues as property 2020-01-04 08:50:09 +01:00
Leonid
6ae7b60ef4 fix error format time_spent 2019-12-25 11:21:47 +03:00
Garret Wassermann
2d129d0e31 Backport patch that will hopefully address #781 2019-12-24 04:02:02 -05:00
Garret Wassermann
860a30486c Comments pass PEP-8 2019-12-17 22:38:03 -05:00
Garret Wassermann
103b762779 Disable broken test_autofill, unclear why it is giving integrity errors when it was working just fine not long ago, is this from a django change? 2019-12-17 22:35:32 -05:00
Arkadiy Korotaev
015b226766
fix<migrations>: correct import of b64decode in migration 0020 2019-12-17 19:25:45 +01:00
Garret Wassermann
b6e9a2cb80 Update to jQuery 3.4.1 2019-12-17 09:28:38 -05:00
Garret Wassermann
b356b867bf Update to DataTables 1.10.20 2019-12-17 09:24:52 -05:00
Garret Wassermann
3719cde63b Update to Font Awesome 5.12.0 2019-12-17 09:22:04 -05:00
Garret Wassermann
cec4536e61 Update to Bootstrap CSS 4.4.1 2019-12-17 09:19:05 -05:00
Garret Wassermann
7dbf1c3b68 Possibly fix test_autofill test case integrity fail 2019-12-17 09:11:37 -05:00
Garret Wassermann
1784d5cf60 Follow recommendation to use == instead of keyword is 2019-12-17 08:41:30 -05:00
Igor Mikeshin
407c00addd Fix ticket search, when there are multiple custom fields 2019-11-22 15:14:56 +08:00
Timothy Hobbs
61dd12abd9 Fix tests 2019-10-16 17:36:55 +02:00
Garret Wassermann
0573bc37f8 PEP-8 codestyle improvements to pass tests 2019-10-12 19:05:00 -04:00
Garret Wassermann
182d553356 Fix some renaming issues from most recent merge 2019-10-12 18:58:50 -04:00
Timothy Hobbs
8a57f72349 Further refactor datatables code 2019-10-11 17:12:39 +02:00
Timothy Hobbs
4ca6adbe39 Move query helper functions out of lib to special query file 2019-10-11 16:31:52 +02:00
Timothy Hobbs
0691bbabcd Refactor and fix datatables code to use cache safely 2019-10-11 15:50:35 +02:00
Timothy Hobbs
92ea5bc984 Fix: use helpdesk settings to for https config 2019-10-11 13:23:01 +02:00
Timothy Hobbs
03d1c66dd6 Refactor ticket list code 2019-10-11 13:10:35 +02:00
Timothy Hobbs
b862732512 Remove "classic" code path and always use datatables for ticket lists 2019-10-08 17:54:59 +02:00
Timothy Hobbs
f127b2c224 Refactor ticket list 2019-10-08 17:54:58 +02:00
Timothy Hobbs
b43e60875a Don't use file paths because they don't work on S3
Fixes #721 on develop but not on master
2019-09-23 16:52:17 +02:00
Garret Wassermann
7f27eb9428 Merge 0.2.17 release into develop 2019-08-27 21:53:25 -04:00
Garret Wassermann
4adec7c5b0
Merge pull request #769 from willstott101/patch-2
Search custom field values.
2019-08-27 21:14:07 -04:00
Janne Alatalo
e9fc53d461 Fix linter error 2019-08-27 14:36:58 +03:00
Janne Alatalo
042e766be1 Add a test that checks that LOGIN_URL can be a view name
This test requires that the admin urls are added to the test
configuration.
2019-08-27 13:04:00 +03:00
Janne Alatalo
0a43b9a160 Add support for custom login handler
The custom login handler can be configured by setting the
settings.LOGIN_URL variable. If LOGIN_URL is None or 'helpdesk:login',
the app uses the default helpdesk login system. LOGIN_URL can be a view
name or raw url.
2019-08-27 13:02:07 +03:00
Garret Wassermann
66ab507c15 Snyc with master to get patches for ru templates and custom User models 2019-08-05 19:40:38 -04:00
Alexander Skvortsov
62fbee205c Adjusted get_email management command to support custom User model 2019-08-05 18:41:31 -04:00
Will Stott
45854e44a7
Search custom field values. 2019-07-31 14:04:31 +01:00
Garret Wassermann
e1e05999eb #767, fix a misspelled urL in emailtemplate.json 2019-07-25 12:43:29 -04:00
Garret Wassermann
cd948a6701
Merge pull request #765 from OpenGeoLabs/gui_updates
More gui updates
2019-07-07 02:33:11 -04:00
Jachym Cepicky
e7465ab2fd more redminenish ticket filters 2019-07-06 22:36:59 +02:00
Jachym Cepicky
61d8df932c more redminenish ticket view 2019-07-06 22:36:58 +02:00
Jachym Cepicky
74bcb4fc4f updating font awesome 2019-07-06 22:36:58 +02:00
Jachym Cepicky
37c6905d46 cleaning time_spent formating 2019-07-06 22:36:58 +02:00
Andrea M
c969577161 Add setting for HTTPS in email links 2019-07-04 10:32:49 +02:00
Garret Wassermann
0de263280f Merged 0.2.16 bugfixes 2019-05-25 01:25:39 -04:00
Garret Wassermann
ae26216435 PEP-8 fixes for get_email 2019-05-25 01:04:05 -04:00
Garret Wassermann
ce018d2ce5 Copy emails to CC list when processing with get_email, for #744 2019-05-25 01:01:02 -04:00
Garret Wassermann
e20f441992 PEP-8 fixes 2019-05-24 13:27:48 -04:00
Garret Wassermann
b61c0c71fd
Merge pull request #757 from OpenGeoLabs/145_due_date
fix issue with setting due date format, for the issue #145
2019-05-24 13:23:52 -04:00
Garret Wassermann
d9ca94145f
Merge pull request #759 from OpenGeoLabs/758_public_ticket_editing
fixes #758 : enables adding comments to public tickets
2019-05-24 11:52:47 -04:00
Garret Wassermann
04f6b3efdd
Merge pull request #761 from OpenGeoLabs/760_attachments
fix for ticket #760 displaying followup attachments again
2019-05-24 11:49:17 -04:00
Jachym Cepicky
e5eea3bb43 display time spent only when user is_staff 2019-05-23 17:31:00 +02:00
Jachym Cepicky
416494c7dc fix for ticket #760 displaying followup attachments again 2019-05-23 17:18:57 +02:00
Jachym Cepicky
2e58798fe1 fixes #758 : enables adding comments to public tickets 2019-05-23 09:55:08 +02:00
Jachym Cepicky
611e6de928 fix for the issue #145 2019-05-22 11:20:01 +02:00
Garret Wassermann
94eab853af Fix email test, example didn't update the email subject 2019-04-01 22:17:32 -04:00
Garret Wassermann
9ca7f9fb46 Merge remote-tracking branch 'upstream/develop' into develop 2019-04-01 21:29:18 -04:00
Garret Wassermann
e3aa39220f
Merge pull request #751 from OpenGeoLabs/template_fix
add space to heading of kb item
2019-04-01 15:54:41 -04:00
Jachym Cepicky
af7cc184e9 add space to heading of kb item 2019-04-01 21:52:48 +02:00
Jachym Cepicky
ef63a1186b fix markdown bug 2019-03-29 15:17:10 +01:00
Garret Wassermann
eb60b967c8
Merge pull request #748 from auto-mat/resolved
Don't show resolved tickets in unassigned tickets list
2019-03-27 14:57:46 -04:00
Timothy Hobbs
89be7a0fde Don't show resolved tickets in unassigned tickets list
Fixes #741
2019-03-27 17:16:33 +01:00
Garret Wassermann
d8a5159c37
Merge pull request #738 from OpenGeoLabs/design_cleaning
adding some boostrap styles
2019-03-26 12:37:19 -04:00
Timothy Hobbs
71d4662c7b Fix #732 encoding of 8bit utf emails 2019-03-26 14:50:45 +01:00
Timothy Hobbs
6886a7920e Specify encoding of html email bodies explicitly 2019-03-26 13:59:01 +01:00
Timothy Hobbs
f3ffebc261 Fix test regression from pr #731
https://github.com/django-helpdesk/django-helpdesk/pull/731/files#diff-dc9aca3bb03b3531dc114813db32f3c7R56
2019-03-25 17:13:10 +01:00
Cedric Carrard
9c85b8e8c1 fix redirect loop 2019-03-20 16:12:19 +01:00
Cedric Carrard
e4d6a54659 fix public homepage with kb_category but without kb disabled 2019-03-15 14:10:43 +01:00
Jachym Cepicky
579c9db3fc adding some boostrap tyles 2019-03-10 12:43:41 +01:00
Garret Wassermann
6ce11266af Fix broken test with blank body and attachment 2019-03-10 00:04:41 -05:00
Garret Wassermann
4d9a5f2c55 Merge remote-tracking branch 'upstream/develop' into develop 2019-03-09 19:02:24 -05:00
Garret Wassermann
ff74a8c21b Sync with upstream merges 2019-03-09 19:01:51 -05:00
Garret Wassermann
519236c288 Merge 0.2.15 bugfixes 2019-03-09 19:00:06 -05:00
Garret Wassermann
c314d515c1 Fix PEP8 in url.py changes 2019-03-09 18:42:10 -05:00
Garret Wassermann
d42fc23e08 Fix password change URLs and add basic templates, to address #734 2019-03-09 18:38:24 -05:00
Jachym Cepicky
ba8f3f3cbb style fix 2019-03-09 23:51:26 +01:00
Jachym Cepicky
ce82ddb9f9
Merge branch 'develop' into images_for_kb 2019-03-09 23:46:26 +01:00
Jachym Cepicky
db0f286989 adding support for images as knowledgebase attachment 2019-03-09 23:41:26 +01:00
Garret Wassermann
27cf481c0b
Merge pull request #733 from auto-mat/utf
Add test for #732, unicode characters in description
2019-03-09 14:51:29 -05:00
Jachym Cepicky
9127275557 adding support for images as knowledgebase attachment 2019-03-09 18:14:11 +01:00
Timothy Hobbs
5e9fed2d46 Add failing test for #732 2019-03-09 00:00:32 +01:00
Jachym Cepicky
ffef07eef9
Resize too big images
Some too big images, if they are animated GIF's and overflow the page size, are not animated any more.

We use animated GIFs for the demonstration how to do things in the knowledge base. This fix makes the GIFs move, even if they are big.
2019-03-07 11:23:37 +01:00
Garret Wassermann
37be1346cd
Merge pull request #729 from auto-mat/quoted-printable
Decode quoted-printable html bodies when getting email
2019-03-06 11:27:10 -05:00
Jachym Cepicky
57018e1aa0 adding tests 2019-03-06 15:03:47 +01:00
Jachym Cepicky
d4f1f85b29 Markdown for Knowledge base, ticket and comments.
Removed markdown-deux
2019-03-06 14:42:57 +01:00
Timothy Hobbs
2c3ce8903f Decode quoted-printable html bodies when getting email
Fixes #719
2019-03-06 14:21:30 +01:00
Garret Wassermann
4fb6c40c4e
Merge pull request #717 from OpenGeoLabs/time_tracking
Basic support for tracking time spent on tickets and follow-ups
2019-02-24 15:18:01 -05:00
Jachym Cepicky
4bd54e8bf3 adding tests 2019-02-24 20:46:48 +01:00
Jachym Cepicky
2093bf7faf adding dedicated_time attribute to Queue model 2019-02-24 20:46:30 +01:00
Garret Wassermann
344dd75a1c Address multipart mime ending up in description, for #700 2019-02-16 02:18:07 -05:00
Garret Wassermann
f6fe5a7834 Merge remote-tracking branch 'upstream/develop' into develop 2019-02-15 19:45:18 -05:00
Garret Wassermann
c97483deff Merge 0.2.14 bugfixes 2019-02-15 19:44:41 -05:00
Garret Wassermann
64414141f7 Update ticket_cc_add template for bootstrap4 2019-02-15 19:37:46 -05:00
Garret Wassermann
a7505a1ecd
Merge pull request #720 from auto-mat/issue-700-fail
Add failing test case for issue-700 emails without bodies
2019-02-15 17:01:38 -05:00
Timothy Hobbs
4e35082475 Add failing test case for issue-700 emails without bodies 2019-02-15 15:11:06 +01:00
Jachym Cepicky
d5aaea022a czech translation 2019-02-06 22:07:12 +01:00
Jachym Cepicky
6ceb89a5cb basic support for time spend of tikets and follow-ups 2019-02-06 21:55:53 +01:00
Jachym Cepicky
d02c8c818b czech e-mail templates added 2019-02-06 11:58:32 +01:00
Jachym Cepicky
8cc0ca47f8 display list of queues only for users with right permissions 2019-02-05 15:44:06 +01:00
Jachym Cepicky
305d669e71 adding e-mail templates for czech language 2019-02-05 14:43:50 +01:00
Garret Wassermann
d9ccaacee5 Fix typo in __setattr__ in migrations, for #712 2019-02-04 11:29:17 -05:00
Garret Wassermann
e9137cce73
Merge pull request #711 from OpenGeoLabs/fix_date_picker
set date picker format to yy-mm-dd
2019-02-04 11:18:50 -05:00
Jachym Cepicky
d4dc1c9abe fix date picker format 2019-02-04 17:00:16 +01:00
Jay Turner
72d35232a1
Fix key errors
KeyError: 'verboseescalation' comes up if the key isn't defined.
2019-02-03 18:03:27 +00:00
Jay Turner
d3c4d14a40
AttributeError: 'Command' object has no attribute 'option_list'
There is a bug in the command in which option_list doesn't exist and thus, cannot be added to.
2019-02-03 17:59:17 +00:00
Timothy Hobbs
c33d6d24d0
Add pencil buttons to ticket view for easier assignment and priority setting 2019-02-02 20:40:46 +01:00
Timothy Hobbs
782aec649d
Fix links to tickets in datatables ticket list 2019-01-30 15:24:05 +01:00
Timothy Hobbs
bd070f3bec
Set voted_by to read only in knowledge base admin 2019-01-22 18:29:32 +01:00
Garret Wassermann
d7a8cb0de7 Merge 0.2.13 polish email templates 2019-01-17 09:17:54 -05:00
Wojciech Szymała
88a3b0502a Adding Polish translation for notification templates sending by email 2019-01-17 09:25:12 +01:00
Garret Wassermann
e1f9fc03ce PEP-8 fixes for lib.py 2019-01-02 20:08:55 -05:00
Garret Wassermann
6cfc1ca75c Fix API changes to python-akismet, #687 2019-01-02 19:17:19 -05:00
Garret Wassermann
760c9d64dd Remove bundled akismet in favor of pypi package dependency, for #687 2019-01-01 19:55:08 -05:00
Garret Wassermann
a5a679512c Merge Polish translations from 0.2.11 2018-12-31 04:01:18 -05:00
Garret Wassermann
f0ca645261 Update Polish (pl) translation 2018-12-31 03:55:44 -05:00
Garret Wassermann
43ed3ac773 PEP-8 fixes for mail threading merge 2018-12-28 11:32:49 -05:00
Garret Wassermann
5f0d22a692 Merge brunotikami/master for user and email threading, for #385 and #375 2018-12-28 10:53:28 -05:00
Garret Wassermann
7dbede6c28 More bootstrap css updates for ticket pages 2018-12-28 04:53:09 -05:00
Garret Wassermann
e9d2b5ced3 Remove duplicate buttons from nav header, use sidebar instead 2018-12-28 03:50:30 -05:00
Garret Wassermann
96e37b9730 Use small font in sidebar saved query list 2018-12-28 03:29:42 -05:00
Garret Wassermann
4e1257c68e Split sidebar button into All Tickets and Saved Queries 2018-12-28 03:28:20 -05:00
Garret Wassermann
696d10db12 Remove old python2/six code 2018-12-28 03:13:52 -05:00
Garret Wassermann
41d71e9062 Missing breadcrumps on settings and rss pages 2018-12-28 02:41:31 -05:00
Garret Wassermann
6d3964d16c Fix broken javascript in the ticket page 2018-12-28 02:30:13 -05:00
Garret Wassermann
984f5b1cfb Fix styling of sidebar text for saved queries 2018-12-28 02:26:08 -05:00
Garret Wassermann
523b3065db Update public homepage templates, based on #684 item 3 2018-12-27 23:27:29 -05:00
Garret Wassermann
74974f0030 Sidebar message when no saved queries exist, for #684 task 1 2018-12-27 21:41:41 -05:00
Garret Wassermann
6d71b62eab
Merge pull request #683 from auto-mat/email_query_param
Enable better ticket form pre-filling
2018-12-27 17:10:15 -05:00
Timothy Hobbs
cbb15c7bcb
Change bootstrap to bootstrap4form in a few places that were missed 2018-12-27 17:28:40 +01:00
Timothy Hobbs
1c24d88680
Enable better ticket form pre-filling 2018-12-27 16:39:31 +01:00
Garret Wassermann
10c7e078f2 Remove generic copyright statement; users can override the attribution.html template if they wish to include a copyright statement. 2018-12-21 23:39:09 -05:00
Garret Wassermann
0c61f65060 Fix templates for knowledgebase 2018-12-21 23:37:46 -05:00
Garret Wassermann
7c64a01e6f Fix templates and javascript for reports 2018-12-21 22:37:33 -05:00
Garret Wassermann
d5a06a8082 List number of tickets at bottom of dashboard tables 2018-12-21 21:56:07 -05:00
Garret Wassermann
9e8eb7f6b2 Fix breadcrumbs for ticket dependency pages 2018-12-21 19:30:15 -05:00
Garret Wassermann
ce51036c6c PEP-8 fixes for lib.py 2018-12-21 19:24:33 -05:00
Garret Wassermann
967862e739 Add saved query title to breadcrumbs for better visibility 2018-12-21 19:22:16 -05:00
Garret Wassermann
2430043f4f Remove stray icon decorator from top user menu 2018-12-21 19:17:43 -05:00
Garret Wassermann
ea8c75b884 Fix saving and loading custom queries, update for Py3/Django2.x 2018-12-21 19:14:54 -05:00
Garret Wassermann
2a3abc44fc Fix ticket list datatables usage and select buttons 2018-12-21 18:18:46 -05:00
Garret Wassermann
4b3939c4de Update base templates for Bootstrap 4.2.1 via CDN 2018-12-21 17:07:09 -05:00
Garret Wassermann
b2d3d6147e Update Bootstrap CSS to v4.2.1 2018-12-21 17:06:31 -05:00
Garret Wassermann
c300f06c76 Update DataTables to v1.10.18 2018-12-21 16:52:18 -05:00
Garret Wassermann
2cd438f7b2 Demo should disable server-side processing for local demo usage 2018-12-21 16:35:26 -05:00
Garret Wassermann
625a8e85f0 Rename USE_SERVERSIDE_PROCESSING to HELPDESK_USE_SERVERSIDE_PROCESSING for consistency, correctly include local project override, and add documentation 2018-12-21 16:30:43 -05:00
Garret Wassermann
3555c9ce91 Update Bootstrap CSS to v4.1.3 2018-12-21 15:39:55 -05:00
Garret Wassermann
ed982fa0af Update to Font Awesome 5.6.3 2018-12-21 15:17:27 -05:00
Garret Wassermann
5940b706c1 Merge branch 'develop' into bootstrap4 2018-12-20 21:55:24 -05:00
Garret Wassermann
a11c595a7c PEP-8 fixes 2018-12-20 21:30:23 -05:00
Timothy Hobbs
e66c42890c
Don't crash when mail body is empty 2018-12-19 17:30:21 +01:00
Garret Wassermann
5fe98f245f Merge branch 'develop' into bootstrap4 2018-12-15 14:03:52 -05:00
Garret Wassermann
c3746ce7b0 Rename migration for voting fix (#652) 2018-12-15 13:57:29 -05:00
Garret Wassermann
3a5e49452b Merge remote-tracking branch 'shash/fix_vote' into develop for #652 2018-12-15 13:44:34 -05:00
Garret Wassermann
14d89ab9b8 Merge branch 'develop' into bootstrap4 2018-12-15 13:40:21 -05:00
Garret Wassermann
28996c05b7 Merge upstream develop 2018-12-15 13:38:54 -05:00
Timothy Hobbs
03fc062ac1
Fix datatables URL resolution
Fixes #674
2018-12-13 17:15:53 +01:00
Timothy Hobbs
e96f1559e7
Add celery task for get_email
Allows you to get_email even without cron, thus enabling the use of django-helpdesk of cronless PaaS services.
2018-11-08 14:39:37 +01:00
Garret Wassermann
27774f6551 Update to SBAdmin 5.0.2 2018-11-03 22:42:29 -04:00
Garret Wassermann
bb4178b477 Merge develop branch into bootstrap4 2018-11-03 22:40:03 -04:00
Timothy Hobbs
09d8f8c488
Try to obey UserSettings when sending emails 2018-11-01 19:32:34 +01:00
Timothy Hobbs
6c37d73d4e
DRY out email sending code and normalize behavior
This refactor removes duplicated logic for deciding whom the messages get sent to.
It also normalizes behavior ensuring that all CCed addresses are sent to in all cases that CCed individuals should be notified.
2018-11-01 14:56:17 +01:00
Timothy Hobbs
9a45d28c95
More refactors of get_email.py 2018-10-31 16:30:19 +01:00
Timothy Hobbs
97e23e86f0
Small refactor get_email.py 2018-10-31 16:30:16 +01:00
Garret Wassermann
5f6a6fe8c5
Merge pull request #653 from auto-mat/user_settings_fix
Transform UserSettings into a normal django model
2018-10-25 18:27:40 -04:00
Timothy Hobbs
3f6ae1aefe
Transform UserSettings into a normal django model 2018-10-25 17:54:37 +02:00
shashwat1002
e0c03996ad add a new field to KBItem model to keep track of all users who voted, and make changes to the vote function so that it checks whether a user has already votred 2018-10-17 23:09:43 +05:30
Garret Wassermann
150f18e9b5 Merge branch 'develop' into bootstrap4 2018-10-15 14:14:38 -04:00
Garret Wassermann
2b11a0e11a PEP8 formatting fixes 2018-10-15 13:56:54 -04:00
Dilip Dwarak
fc028334d9 Added optional serverside processing on datatables that lists all tickets - True by default 2018-10-14 20:23:28 -04:00
Timothy Hobbs
caaa0e5158
Include ticket secret in path to new attachments in order to reduce URL guessability. 2018-10-06 21:23:44 +02:00
Garret Wassermann
7bad004780
Merge pull request #645 from auto-mat/login_wall_settings
Login wall systems settings page
2018-09-12 10:30:54 -04:00
Timothy Hobbs
b4aafb0b54
Fix knowledge base categories display on public homepage 2018-09-12 15:29:36 +02:00
Timothy Hobbs
75632ddae4
Login wall systems settings page
Fixes #642
2018-09-12 14:43:57 +02:00
Garret Wassermann
8f57f9d64a Update templates to use bootstrap4form 2018-09-09 03:54:56 -04:00
Garret Wassermann
bd42f62465 Allow easier customization by importing helpdesk-customize.css 2018-09-08 23:58:45 -04:00
Garret Wassermann
fd5c356820 Merge branch 'develop' into bootstrap4 2018-09-08 22:30:18 -04:00
Timothy Hobbs
c1750a7461
Require a secret key for viewing tickets unless HELPDESK_VIEW_A_TICKET_PUBLIC is set
Fixes #629, #639
2018-09-08 21:29:59 +02:00
Timothy Hobbs
ffc97338c9
Submit ticket link should work for non-logged in users 2018-09-07 19:10:57 +02:00
Timothy Hobbs
a12abab219
Not all fields are required
- For example, you don't have to upload an attachment.
2018-09-05 20:28:16 +02:00
Garret Wassermann
e373d5b9d8
Merge pull request #636 from auto-mat/rss-permissions
Only staff users should be given access to the RSS feeds
2018-09-03 18:52:16 -04:00
Timothy Hobbs
58cc18d049
Only staff users should be given access to the RSS feeds 2018-09-03 20:29:22 +02:00
Garret Wassermann
f123d78184 Continuing work on new bootstrap4 interface 2018-09-02 23:27:39 -04:00
Garret Wassermann
b610a5f492 Update breadcrumbs on ticket pages 2018-09-02 05:27:39 -04:00
Garret Wassermann
eabf32d91b Navigation is Bootstrap 4 and SB Admin 5.0 now 2018-09-02 04:36:16 -04:00
Garret Wassermann
ac0eb7d27b Sync with v0.2.10, update python classifiers 2018-09-01 23:20:15 -04:00
Timothy Hobbs
082b6b88f3
Add user profile links for submiters who have profiles 2018-08-30 12:53:46 +02:00
Timothy Hobbs
13539e3056
Fix tests 2018-08-30 12:03:54 +02:00
Adrian Boyko
4526d7c537
Fixed login/logout for Django 2.1.
In django.contrib.auth.views, the login and logout funcs are removed as of Django 2.1.  Helpdesk's urls.py needs to be updated to use the LoginView and LogoutView classes instead, which were introduced in Django 1.11.
2018-08-19 18:59:08 -07:00
Garret Wassermann
c70cf04e4d Fix codestyle errors, use currying instead of lambdas for determing user access 2018-07-19 00:06:57 -04:00
Garret Wassermann
f9dda0a8fa Merge branch 'master' into develop to get date format patch 2018-07-13 01:11:02 -04:00
Garret Wassermann
fbddbd6f6e Fix date format validation error reported with 0.2.8 release 2018-07-13 01:10:25 -04:00
Garret Wassermann
dff14d40d3 Merge 0.2.8 bugfixes 2018-07-03 00:59:33 -04:00
Garret Wassermann
9cb32f83ca Minor PEP8 changes 2018-07-03 00:32:23 -04:00
Garret Wassermann
d1e57d70b0 Use jQuery datepicker widget when editing a ticket, for comment part of #616 2018-07-03 00:24:20 -04:00
Garret Wassermann
4d78bc85ca Update due date correct when adding followup to ticket, for #616 2018-07-03 00:20:51 -04:00
Garret Wassermann
d0cf8426d0 Add Due Date column to ticket list and in description table for individual ticket page 2018-07-02 22:07:59 -04:00
Garret Wassermann
b40e9dd5ea Fix bug while importing django version for #613 2018-06-27 02:37:35 -04:00
Garret Wassermann
15985e286f Fix saved queries when running in Django 2.0+, for #613 2018-06-27 02:27:24 -04:00
Garret Wassermann
08fc9b5aac Check format of DEFAULT_FROM_EMAIL before creating messages, to address #608 2018-06-27 02:10:20 -04:00
Garret Wassermann
c3bf39a3b9 Fix bad URL when canceling query deletion, to address #615 2018-05-10 02:14:59 -04:00
Garret Wassermann
2cf1a32a10 Fix deprecated escape sequence warning for Py3.7, ignore W503,504 2018-05-10 01:42:09 -04:00
Garret Wassermann
a361e76999 Update akismet code for python 3, to address #607 2018-04-20 03:27:26 -04:00
Garret Wassermann
ff95fa5d6a
Merge pull request #603 from andreyyudin/master
Replacement of hard-coded SQL query for issue #601
2018-03-29 22:00:23 -04:00
Patrick Mithamo
d372e337c6 Fix imaplib 'IMAP' module reference to 'IMAP4'
On IMAP login error: 'imaplib' has no 'IMAP' member; maybe 'IMAP4'
2018-03-29 01:51:24 +03:00
Andrii Iudin
764c55e60e Removed unused dash_tickets variable and its calculation, modified the
case where it is used to rely on model query APIs rather than on raw
queries that use the default database and are not forwarded by routers.
2018-03-26 13:46:07 +01:00
Garret Wassermann
c71355cfdc is_authenticated is a bool now not a function 2018-03-04 04:24:30 -05:00
Garret Wassermann
54a6b1d21b Merge 0.2.7 bugfixes 2018-03-04 04:01:48 -05:00
Garret Wassermann
fef08082de Fix PEP8 errors in get_email 2018-03-04 02:14:39 -05:00
Garret Wassermann
3c456873a5 Fixes for Python 3 and Django 2.0 2018-03-04 01:52:58 -05:00
Garret Wassermann
283f5e9cec More bugs processing mail under python 3, on behalf of @spamandeggs for #590 2018-03-03 19:32:47 -05:00
Garret Wassermann
ed5f86c583 Suppress empty whitespace from edit buttons in ticket follow-up list, patch for #596 2018-02-27 20:21:03 -05:00
Garret Wassermann
7982774ee1 Apply hotfix for get_email fails, #590 2018-02-27 20:18:51 -05:00
vzagorovskiy
40af08ee84
Attribute color is not allowed here 2018-02-24 10:33:14 +03:00
Sourav Basu
2f0f30faa6 Renaming migration 2018-02-20 16:34:33 +05:30
Sourav Basu
c1ead6dc75 Adding missing migrations 2018-02-20 16:29:08 +05:30
Garret Wassermann
95ee61fe90 Fix PEP8 errors 2018-02-16 05:04:10 -05:00
Garret Wassermann
113880bc3a Compare user IDs to determine if same user, and add simple test case, to fix #588 2018-02-16 05:00:22 -05:00
Garret Wassermann
55b55edb90 Fix bug in get_email where HTML tags sometimes included in text, reported in #565 2018-02-13 22:25:50 -05:00
Garret Wassermann
45115ba5c7 Actually fix #582 according to quickcheck unittests 2018-02-07 03:01:27 -05:00
Garret Wassermann
73698e8873 More testing 2018-02-07 02:53:40 -05:00
Garret Wassermann
31887504fd seperate out text for better logging of error 2018-02-07 02:46:13 -05:00
Garret Wassermann
0bddf819f7 merge upstream 2018-02-07 02:16:41 -05:00
Garret Wassermann
a10c662207 Patch for #582, POP3 processing error on py3 2018-02-07 02:14:28 -05:00
Garret Wassermann
2852e7ba28
Merge pull request #586 from aesdev/master
Fix for Email Issue while pulling CC and ValueError for public homepage
2018-01-12 13:55:01 -05:00
Dilip Dwarak
cf85c3d9ab Fixe for Email Issue while pulling CC and ValueError for public homepage 2018-01-11 14:49:21 -05:00
Garret Wassermann
75f54dd233 Testing quicktest.py 2018-01-11 02:19:49 -05:00
Garret Wassermann
ed0596e430
Merge branch 'master' into feature-public-ticket-defaults 2018-01-10 13:18:29 -05:00
Arne Brutschy
f3e52a2f12 Adds pre-defined values for public tickets
This commit adds three new settings that allow the operator to
pre-define the `queue`, `priority` and `due_date` fields for public
tickets. If one of these settings are present the corresponding input
field is hidden from the form.

The settings are the following:

    HELPDESK_PUBLIC_TICKET_QUEUE = 'website'
    HELPDESK_PUBLIC_TICKET_PRIORITY = 2
    HELPDESK_PUBLIC_TICKET_DUE_DATE = ''

If the due date is set to the empty string, no due date is saved in the
ticket (analogously to the form). The other settings should be
self-explanatory.
2018-01-09 14:53:05 +01:00
Garret Wassermann
bad1ece1c5 Remove offending CSS comment again to address #479 2017-12-29 01:03:16 -05:00
Garret Wassermann
31b49ab2f6 Merge branch 'master' into develop 2017-12-28 09:32:14 -05:00
Garret Wassermann
aa63e8f299 Really fix py 2 imp/importlib 2017-12-28 09:26:14 -05:00
Garret Wassermann
4b78704180 Fix error on python 2 2017-12-28 09:22:57 -05:00
Garret Wassermann
3ccd6c8dc8 Merge 0.2.6 Django 2.0 updates 2017-12-28 09:16:01 -05:00
Garret Wassermann
d18ce1f1d5 Bump version to 0.2.6 to fix remaining Django 2.0 warnings 2017-12-28 09:11:34 -05:00
Garret Wassermann
523329eab5 Merge 0.2.5 bugfixes and Django 2.0 changes 2017-12-28 07:43:10 -05:00
Garret Wassermann
5112f0dfd0 Address deprecation warnings to be compatible with Django 2.0 2017-12-28 07:23:51 -05:00
Garret Wassermann
0d2df19835 Fix collectstatic errors, as reported in #479 2017-12-28 06:04:05 -05:00
Garret Wassermann
142c291afb Merge 0.2.4 bugfixes 2017-12-18 00:45:36 -05:00
Garret Wassermann
e19666b729 Add a check that the email subject template includes the ticket ID to prevent problems, to address issue raised in #577 2017-12-17 23:47:48 -05:00
Garret Wassermann
8972baddda Remove dead jqplot code from report output, and remove unused jqplot plugin from static/ directory 2017-12-17 23:23:03 -05:00
Garret Wassermann
fca81ac38c Remove duplicate jquery files, update public_base to point to jquery included in vendor/ directory 2017-12-17 23:16:14 -05:00
Garret Wassermann
2d8d8dcf0c Remove offending comment in jquery-ui.min.css, as previously reported in #479 2017-12-17 23:09:12 -05:00
Garret Wassermann
230b9d7ed0 Fix broken try-except statement in lib, for #577 2017-12-15 20:35:41 -05:00
Garret Wassermann
03599f462b Catch exception when someone enters a non-integer text into the public ticket view form, #576 2017-12-15 20:28:39 -05:00
Garret Wassermann
1d63e25855 Improve permissions to view pages, to partially address #326 2017-12-15 17:18:54 -05:00
jeson_peng
6ff5799bef fix typo in new chinese support in emailtemplate, demo is ready at helpdesk.pengel.cn 2017-12-11 15:53:43 +08:00
Garret Wassermann
92b43ef495 Merge master 0.2.3 bugfixes into develop 2017-12-09 23:02:12 -05:00
jeson_peng
2007fcdc30 add translation for chinese, zh_Hans is the new locale support code for django 2017-12-09 18:52:39 +08:00
Garret Wassermann
a6c1469bfb Update zh_CN translation, see #571, thanks pjsong! 2017-12-08 11:53:27 -05:00
Garret Wassermann
47f92eba1e More PEP8 fixes for get_email 2017-12-06 02:59:50 -05:00
Garret Wassermann
9340e149d5 Wrap IMAP login attempt in a try except, log error if session timeout and exit script gracefully to prevent crashes, to address #568 2017-12-06 02:55:31 -05:00
Garret Wassermann
a2c10edb35 Fix bytes/str confusion in Py3 after address naked except 2017-12-06 02:28:18 -05:00
Garret Wassermann
c085dba901 Trying to actually fix naked except 2017-12-06 02:21:46 -05:00
Garret Wassermann
0b249e1693 Fix error importing django settings due to naked except 2017-12-06 02:11:45 -05:00
Garret Wassermann
bc0125421b Fix PEP8 errors detected by new pycodestyle script 2017-12-06 02:06:07 -05:00
Garret Wassermann
dffab1bb6a PEP8 fixes for test_get_email.py 2017-12-05 03:52:38 -05:00
Garret Wassermann
fca6b483f2 Add PGP signed email test case to get_email tests, for #567 2017-12-05 03:47:05 -05:00
Garret Wassermann
32cc5e2496 Patch for handling base64 encoding on Py 2 and 3, to address #567 2017-12-05 02:51:15 -05:00
Garret Wassermann
65c1d05eef Use BeautifulSoup to get text out of HTML-only emails, to address issue in #565 2017-10-31 03:24:04 -04:00
Garret Wassermann
8f375e1379 Address bytes/str issue with POP3 email in get_email script, to address #565 2017-10-31 01:24:26 -04:00
Garret Wassermann
6e2a16e5a6 Fixing unit tests for python3 for custom staff filters 2017-10-30 05:07:44 -04:00
Garret Wassermann
27ee01449e Add missing imports for custom staff filters 2017-10-30 03:41:49 -04:00
Garret Wassermann
3a1bd76e75 Merge custom staff filter, PR #239 2017-10-30 03:17:40 -04:00
Garret Wassermann
ee1cae07a4 Change ticket sorting via form, to fix #562 2017-10-28 10:47:46 -04:00
Manuel Saelices
36d4b7ec0d Merge branch 'master' into feat-raise-404-if-anon 2017-10-04 03:46:28 +02:00
msaelices
7b022fa1e0 If HELPDESK_ANON_ACCESS_RAISES_404 is True, it raises a 404 to anon users. It's like the helpdesk was invisible 2017-10-04 03:43:32 +02:00
zodman
f06cbce07c fix the python3 2017-09-27 12:50:51 -05:00
zodman
03a57bdc5f fix get_email from gmail imap 2017-09-27 12:40:47 -05:00
zodman
540531c916 fix css 2017-09-26 17:06:34 -05:00
Garret Wassermann
96cae9bdd5 Added better logging for case when IMAP folder may not exist when check IMAP messages, to address issue in #536 2017-09-13 01:44:36 -04:00
Garret Wassermann
478095ca7e Fix missing templatetag load, to address #549 2017-09-13 01:17:05 -04:00
Garret Wassermann
612a743069 Merge remote-tracking branch 'upstream/master' 2017-09-12 20:57:26 -04:00
Garret Wassermann
c69f752f1c Django 2.0 requires explicit parameters; must go back and change others 2017-09-12 20:57:10 -04:00
Will Stott
b99b55e426 Miscellaneous debug log additions. 2017-09-06 16:22:06 +01:00
Garret Wassermann
40ab600ad6 Merged in better handling of attachments, for #468 2017-08-30 15:18:22 -04:00
Garret Wassermann
1e11e227ff Update ticket_view for Python 2 and 3, to correct a 500 error in #494 2017-08-30 10:49:56 -04:00
Garret Wassermann
04a3c3ff5a Update decodestring to decodebytes for Py3 since string name was deprecated in py3.1 2017-08-30 10:48:16 -04:00
Garret Wassermann
043a40682f Merge pull request #494 from Heteroskedastic/issue#493
- issue #493: internal error 500 on save query
2017-08-30 10:40:46 -04:00
Garret Wassermann
c3eeb15b61 Merge pull request #540 from msaelices/master
Fix `AttributeError` while staff user does a mass update in some tickets using the `Close (Send E-mail)` action
2017-08-20 21:46:02 -04:00
Garret Wassermann
02b39adf8e Merge pull request #542 from msaelices/unicode-ticket-issue
Fix `UnicodeEncodeError` when ticket has an special char using python2 and user goes to the admin page.
2017-08-20 21:20:18 -04:00
Garret Wassermann
c781644e34 Merge pull request #518 from gwasser/fix_cc_user_email
Fix get_email issue when user does not have an email
2017-08-20 21:13:07 -04:00
msaelices
d264c46385 Fix UnicodeEncodeError when ticket has an special char using python2 and user goes to the admin page. 2017-08-21 02:15:07 +02:00
msaelices
f931dd4dba Fix AttributeError while staff user does a mass update in some tickets using the Close (Send E-mail) action. 2017-08-21 01:26:45 +02:00
Garret Wassermann
a0fb315c3b Fix PEP8 errors 2017-07-30 20:33:25 -04:00
Garret Wassermann
f6c323c9ab Fix binary attachments to outgoing email, and handle case when it is plain text, to address #502 2017-07-17 05:04:25 -04:00
Garret Wassermann
4e81d64390 Put es in list of common translation languages for settings 2017-07-17 03:56:22 -04:00
Garret Wassermann
c8ee3815ec Fix num_to_link error, was leaving off a letter of text if next to the ID, to address #511 2017-07-16 19:58:11 -04:00
Garret Wassermann
9fd170f707 Add test for num_to_link function 2017-07-16 19:53:05 -04:00
Garret Wassermann
a42a5b8aeb Add missing num_to_link in ticket description, to address #513 2017-07-16 19:38:30 -04:00
Garret Wassermann
8a49babfe5 Add documentation for new QUEUE_EMAIL_BOX_UPDATE_ONLY setting, to address #530 2017-07-16 19:30:59 -04:00
Garret Wassermann
9f9cdeec6c Show ticket ID in title of page so easier to use with many tabs open, to address #525 2017-07-16 19:24:16 -04:00
andresf01
d1f35f1299 Only update by email 2017-07-11 11:59:56 -05:00
andresf01
7386a45784 Fixed encoding error in get_email 2017-07-11 10:09:47 -05:00
andresf01
db223abe27 Added email footer (es) 2017-06-28 11:27:10 -05:00