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 git.sr.ht 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
Sol Fisher Romanoff
790f8e301b
Make tracker names match [A-Za-z0-9._-]+
...
Fixes an issue where "_" could be used as a wildcard in tracker names.
Also prohibits use of '.git' and '.hg' as tracker names.
2021-08-11 09:41:12 +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
9f4d75f42c
Prohibit trackers named . or ..
2021-06-12 11:55:10 -04:00
наб
bb5a0a8ccf
Add option to notify users of their own web activity
...
Ref: ~sircmpwn/todo.sr.ht#94
2020-10-10 14:00:58 -04:00
Drew DeVault
deb31fb00e
Implement ticket editing in the UI
2020-08-25 15:47:58 -04:00
наб
613933a49c
Wrap valid punctuation in tracker creation error in <samp>s
...
They were pretty hard to notice and read otherwise
2020-07-22 13:19:57 -04:00
наб
4270950afe
Add Tracker.ref() à la Ticket.ref(), replacing manual construxions
2020-07-22 13:19:56 -04:00
Drew DeVault
4db7a329a2
api: include ticket subject in short form
2020-04-24 11:10:34 -04:00
Drew DeVault
f1162e7477
Add tracker ID to API response
2020-04-02 09:18:06 -04:00
Drew DeVault
fe08cd4447
Implement ticket import
2020-01-09 12:19:44 -05:00
Drew DeVault
2bdd7ad21c
Fix uppercase tracker names
2019-11-06 14:04:21 -05:00
Cédric Bonhomme
8983bccf90
Fix regular expression: Repository name can not start with .-_
2019-11-04 10:24:41 -05:00
Cédric Bonhomme
732329c04e
Aligning the naming constraints with git.sr.ht: - repository name must be at least one character, not two; - fist character can be uppercase (but not a numeric); - in general accepts only alphanumeric characters or ._-
...
~sircmpwn/todo.sr.ht#193
2019-11-04 10:24:25 -05:00
Drew DeVault
204597dfb4
Accept email tickets/comments for anon users
2019-08-22 13:20:39 +09:00
Drew DeVault
b4c92a39db
Generalize users into participants
2019-08-22 11:05:25 +09:00
Ivan Habunek
9b26e7cbf3
Add CRUD views for UserAccess
2019-07-05 12:34:30 -04:00
Ivan Habunek
eef166ade5
Add UserAccess type and migration
2019-07-05 12:34:23 -04:00
Chris Kinniburgh
a1cf619e80
Allow 2 character label names
2019-06-12 10:47:07 -04:00
Drew DeVault
c2df4f617f
Fix 500 on tracker creation
2019-06-11 09:14:39 -04:00
Ivan Habunek
e7c801b46a
Order labels by name
...
fixes:
https://todo.sr.ht/~sircmpwn/todo.sr.ht/160
2019-05-21 10:25:11 -04:00
Ivan Habunek
aaad330244
Replace overriden __init__ with factory method
...
Simplifies mocking, fixes factories.
2019-05-21 10:22:29 -04:00
Drew DeVault
0b70b847be
Add tracker labels endpoint
2019-05-09 11:34:55 -04:00
Drew DeVault
4f4d7d6ba0
Implement adding/removing labels via the API
2019-05-04 11:13:39 -04:00
Drew DeVault
d6986aed72
Add simple ticket API
2019-04-30 16:17:43 -04:00
Drew DeVault
785574871c
Initial pass on API support
...
Adds an API for working with trackers
2019-04-30 15:12:05 -04:00
Drew DeVault
060eea1c1a
Add support for replying to tickets via email
2019-04-29 18:26:36 -04:00
Ivan Habunek
ff0504980f
Alter Event fields and migrate data
...
Makes the following changes to the Event type:
* make `user` and `ticket` nullable since some events require it
* add `by_user` and `from_ticket` to enable mentions
* remove `assinged_user` which is no longer used
Ticket: https://todo.sr.ht/~sircmpwn/todo.sr.ht/156
2019-04-04 14:10:23 -04:00
Ivan Habunek
2db8c25c02
Support mentioning tickets on different trackers
...
fixes: ~sircmpwn/todo.sr.ht/157
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
179519ef5e
Add events for user and ticket mentions
2019-02-25 20:00:52 -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
Drew DeVault
0a41f684d0
Fix test failures
2018-12-30 18:16:56 -05:00
Drew DeVault
01f734bd8c
Updates per core.sr.ht OAuth changes
2018-12-30 15:52:29 -05:00
Drew DeVault
22f3d2d132
Updates per meta.sr.ht API changes
2018-12-28 17:43:19 -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
bad45123cf
Add assign/unassign events to ticket event log
2018-12-13 21:44:15 -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
1230023b18
Fix relations in TicketAssignee
...
Backrefs were named the same, and foreign_keys were not valid.
For now remove the backrefs to users since there is no obvious use case
for them, they can be easily added back later when one arises.
2018-11-30 08:04:10 -05:00
Ivan Habunek
6126b24398
Include TicketCommitte type and add migration
2018-11-30 08:04:08 -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
dc0de33664
Make use of filters to make code more readable
2018-11-20 08:12:23 -05:00
Drew DeVault
67e49511f2
Add not_our_bug as a ticket resolution
2018-11-03 16:30:05 -04:00
Ivan Habunek
47cd6d82e0
Refactor commenting logic
2018-11-01 08:04:26 -04:00