django-helpdesk/helpdesk
Georg Lehner 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
..
fixtures Fixes #994 2023-11-23 21:58:02 +01:00
locale Update French translations 2023-05-01 23:46:20 +02:00
management Fixing missing capitalized Q_OPEN_STATUSES variable 2024-02-01 15:43:56 +01:00
migrations Move to ruff, its faster & catches more 2023-11-14 20:37:05 +01:00
static/helpdesk Fix css for showing ticket followups 2023-12-04 23:38:28 +00:00
templates/helpdesk Remove status from ticket heading, since it is now shown in the description table 2024-06-06 00:34:28 +02:00
templatetags Initial isort configuration 2022-07-22 03:26:41 +02:00
tests Merge branch 'main' into view_protectors 2024-04-23 21:29:38 +02:00
views Restrict ticket selection for dependencies and parents 2024-06-08 12:11:01 +02:00
__init__.py Revert "Make sure custom user logic works with Django 1.4" 2014-10-24 18:05:44 +11:00
.flake8 fix(email): Add ability to attach full first email text to avoid losing forwards, and to save .eml files for any incoming mesages, plus fix tests and some minor bugs 2021-04-19 21:15:24 +02:00
admin.py Implement Custom delete_queryset Method in QueueAdmin to Resolve Django 1062 Error 2024-01-31 14:13:25 +01:00
apps.py Order dependend ticket with NotIn ORM operator instead of itertools 2024-06-08 12:00:43 +02:00
decorators.py Add some convenient functions for protecting views in custom installations 2024-02-18 16:01:44 +01:00
email.py Updated comment 2024-04-17 10:21:02 +00:00
exceptions.py Fix formatting per flake8 2022-09-08 22:11:24 +01:00
forms.py Restrict ticket selection for dependencies and parents 2024-06-08 12:11:01 +02:00
lib.py Removed old comment 2024-04-08 08:39:27 +00:00
models.py Removed unused webhooks import 2024-04-17 10:09:15 +00:00
orm_operators.py Order dependend ticket with NotIn ORM operator instead of itertools 2024-06-08 12:00:43 +02:00
poll_helpdesk_email_queues.sh Closes #161 - provide script to simplify automation of email polling 2013-01-20 14:40:57 +11:00
query.py Removes unused function query_to_dict 2023-01-05 22:30:57 +00:00
serializers.py Include custom fields in user tickets api endpoint 2024-01-16 22:19:32 +00:00
settings.py Merge branch 'main' into view_protectors 2024-04-23 21:29:38 +02:00
signals.py Attach send_new_ticket_webhook to the new_ticket_done signal 2024-04-17 10:02:44 +00:00
tasks.py Initial isort configuration 2022-07-22 03:26:41 +02:00
templated_email.py Fix flake8 issues 2023-10-10 14:08:47 +01:00
update_ticket.py Removed unused TichetChange import 2024-04-16 08:36:29 +00:00
urls.py Reformat Resolves/Depends lists into tables. Allow adding/deleting of parent tickets 2024-06-06 00:28:36 +02:00
user.py Initial isort configuration 2022-07-22 03:26:41 +02:00
validators.py You can now turn off file attachment filtering, fixes #1162 2024-02-26 19:34:35 +01:00
webhooks.py Attach send_new_ticket_webhook to the new_ticket_done signal 2024-04-17 10:02:44 +00:00