Commit Graph

33 Commits (03f89839451fe3b7392b26c451b53ac77ee5e623)

Author SHA1 Message Date
Ignas Kiela 03f8983945 Remove TicketSeen
Has a fair amount of complexity for not much gain.
2021-12-20 10:15:17 +01:00
Drew DeVault d2f57b98c1 Overhaul default access lists (web)
The changes are:

- Introduce a visibility column, similar to et al
- Consolodate the default access columns into one
2021-09-24 08:21:04 +02:00
Ivan Habunek 87ff71d4af Store ticket comment counts in the database
This saves a query when rendering the tracker page, and allows sorting
by comment count which can be given as a sorting option.
2021-09-14 12:40:41 +02:00
Drew DeVault cb9a219e58 Reconfigure relationships to squelch sqla warnings
We only ever create new records/relationships by linking up IDs
explicitly (rather than, say, appending them to a relationship), so we
can safely set viewonly=True on most relationsihps.
2021-07-26 11:21:18 +02:00
Drew DeVault 4db7a329a2 api: include ticket subject in short form 2020-04-24 11:10:34 -04:00
Drew DeVault fe08cd4447 Implement ticket import 2020-01-09 12:19:44 -05:00
Drew DeVault b4c92a39db Generalize users into participants 2019-08-22 11:05:25 +09:00
Ivan Habunek e7c801b46a Order labels by name
2019-05-21 10:25:11 -04:00
Drew DeVault d6986aed72 Add simple ticket API 2019-04-30 16:17:43 -04:00
Drew DeVault 060eea1c1a Add support for replying to tickets via email 2019-04-29 18:26:36 -04:00
Ivan Habunek 2db8c25c02 Support mentioning tickets on different trackers
fixes: ~sircmpwn/
2019-03-07 09:53:00 -07:00
Drew DeVault 385eec8806 Improve appearance of event list on ticket page 2019-02-25 20:30:32 -05:00
Ivan Habunek 9e051e71b7 Implement ticket.ref()
Returning the ticket reference string ~user/tracker#scoped_id.
2019-02-25 20:00:38 -05:00
Ivan Habunek a56cdf8ab8 Fix ticket unique constraint definition
It was defined on the scoped_id.unique param instad of using
__table_args__, and not applied to the database.
2019-01-12 17:28:05 -05:00
Ivan Habunek 40f66d5420 Preload seen tickets list
Loads the data in one query instead of one per ticket.
2018-12-14 17:41:23 -05:00
Drew DeVault 36c41f9ae7 Remove user agent from tickets 2018-12-14 10:17:43 -05:00
Drew DeVault 8381642d66 Implement tracker deletion 2018-12-12 22:48:43 -05:00
Drew DeVault ace2459bcd Revert "Load seen time in the same query as tickets"
This reverts commit c7ed6615da.
2018-12-04 11:47:58 -05:00
Ivan Habunek 3017896477 Show assigned users 2018-11-30 08:04:11 -05:00
Ivan Habunek c7ed6615da Load seen time in the same query as tickets
Use left join to load related TicketSeen objects along with Tickets
instead of doing a query per ticket when rendering.
2018-11-20 18:55:40 -05:00
Ivan Habunek 5b47c3734d Fix default ticket resolution 2018-10-28 08:25:35 -04:00
Ivan Habunek d46dd6094f Improve ORM relationships to and from Labels
* rename all backrefs to TicketLabel to 'ticket_labels'
* add Ticket.labels relationship through TicketLabel secondary
* add relationship through TicketLabel secondary

This avoids confusion as accessing 'ticket_labels' property will return
TicketLabel objects, and accessing 'labels' will return Label objects.

Also makes the code less verbose.
2018-10-24 20:09:08 -04:00
Gregory Mullen 047f5197f2 Filter private events from events feed 2018-06-25 20:42:07 -04:00
Drew DeVault 439b0ff1a1 Fix stupid typo 2017-11-08 09:15:03 -05:00
Drew DeVault e5b16caa5a Fix ticket list for logged out users 2017-11-08 09:09:04 -05:00
Gregory Mullen f191ced8f2 Add last_seen/new_updates icon to the ticket tracker list (added alembic) 2017-10-30 16:00:54 -04:00
Drew DeVault 0963b4a79f Move FlagType into srht 2017-09-19 20:15:18 -04:00
Drew DeVault abc404e79c Use tracker-specific ticket IDs 2017-09-14 07:26:29 -04:00
Drew DeVault 09d66b26d3 Implement initial ticket detail page 2017-09-13 22:09:32 -04:00
Drew DeVault e4048c9efc Implement ticket submission 2017-09-13 08:17:52 -04:00
Drew DeVault 970d62a545 Implement ticket submission 2017-09-13 08:02:25 -04:00
Drew DeVault bb22b8d791 Flesh out schema and update templates/create 2017-09-13 07:39:40 -04:00
Drew DeVault f2885f8777 Add initial schema

- Trackers
- Tickets
- Custom ticket fields
- Comments
- Initial permissions
- Audit logging

Will eventually also need:

- More custom ticket field types
- API-only ticket fields
- User specific permissions
- (and other gits) integrations
- Attachments (blocked pending
2017-07-22 00:33:29 -04:00