Drew DeVault
856ad5b04e
Updates for single-sign-on support
2019-11-30 10:17:42 -05:00
Drew DeVault
d015cff999
Fix routing to details_GET from create
2019-11-06 11:14:53 -05:00
Drew DeVault
2fb6bc8d13
Split settings into separate blueprint
2019-11-04 16:15:37 -05:00
Drew DeVault
6ce73b2489
Fix editing of labels with / in the name
2019-11-01 11:15:31 -04:00
Ivan Habunek
7d018e76e1
Implement editing labels
...
as requested in https://todo.sr.ht/~sircmpwn/todo.sr.ht/159
2019-10-26 11:05:43 -04:00
Ivan Habunek
62b8fe82da
Set ticket title and description with URL params
...
Setting ?title=foo&description=bar to the tracker page will
automatically populate the title and description inputs. This can be
useful for crafting error-reporting links.
2019-10-26 10:56:22 -04:00
Drew DeVault
e978ebc006
Correct "get_participant_by_user" -> "for_user"
2019-08-24 09:07:41 +09:00
Drew DeVault
b46f03ea64
Fix enable/disable notifications
2019-08-23 08:55:08 +09:00
Drew DeVault
b4c92a39db
Generalize users into participants
2019-08-22 11:05:25 +09:00
Ivan Habunek
51aa558ba4
Add username completion to tracker access page
2019-08-12 10:29:18 +09:00
Drew DeVault
4516d8717b
Use srht.flask.session instead of flask.session
2019-07-12 14:13:40 -04:00
Ivan Habunek
9b26e7cbf3
Add CRUD views for UserAccess
2019-07-05 12:34:30 -04:00
Drew DeVault
ae2797dd8d
Rig up tracker webhooks
2019-06-10 15:20:05 -04:00
Drew DeVault
3713575d90
Add initial set of webhooks
2019-06-10 13:23:24 -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
0fef4f97c3
Fix create & configure tracker
2019-05-09 21:21:07 -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
Ivan Habunek
059faa8d73
Simplify ticket submission code
2019-03-06 14:37:17 -07:00
Ivan Habunek
ee2e052e2a
Extract ticket submission logic, add tests
...
No functional changes to ticket submission code.
2019-03-06 14:37:05 -07:00
Drew DeVault
879a3b80fb
Use @loginrequired after route decorator
2019-02-21 22:05:19 -05:00
Drew DeVault
50c4fc68ca
Refactor search to use core.sr.ht search
2019-02-11 11:09:31 -05:00
Ivan Habunek
e1824a287f
Remove tilde hacks
...
No longer required, fixed in SrhtFlask.
2019-01-29 10:18:03 -05:00
Drew DeVault
01f734bd8c
Updates per core.sr.ht OAuth changes
2018-12-30 15:52:29 -05:00
Ivan Habunek
2dd9baeaf8
Improve code formatting
2018-12-14 17:41:23 -05:00
Ivan Habunek
09c486b9a1
Extract fetching comment counts
2018-12-14 17:41:23 -05:00
Ivan Habunek
e21c1dcd01
Preload ticket labels and submitters
...
Reduces query count by 2 queries per ticket.
2018-12-14 17:41:23 -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
7510fb9f0c
Fix routing on create & configure
2018-12-13 10:05:09 -05:00
Drew DeVault
8381642d66
Implement tracker deletion
2018-12-12 22:48:43 -05:00
Drew DeVault
b0d6e23ce2
Split tracker settings into tabs
2018-12-12 22:06:31 -05:00
Drew DeVault
ed0948365b
Fix unpacking of non-tuple
2018-12-04 12:05:26 -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
Drew DeVault
8562d2d39c
Revert "Fix None dereference in tracker.py"
...
This reverts commit 074a2f2452
.
2018-12-04 11:01:54 -05:00
Drew DeVault
207df1392d
Revert "Syntax errors are cool"
...
This reverts commit a80b309734
.
2018-12-04 11:01:50 -05:00
Drew DeVault
a80b309734
Syntax errors are cool
2018-11-30 14:27:53 -05:00
Drew DeVault
074a2f2452
Fix None dereference in tracker.py
2018-11-30 14:01:13 -05:00
Ivan Habunek
5a194d7010
Fetch comment count instead of all comments
...
This will improve performance, especially when there are many comments.
2018-11-21 08:26:33 -05:00
Ivan Habunek
ad7b56713f
Eagerly load ticket labels and comments
...
Saves two queries per ticket when rendering tracker.html.
2018-11-20 18:55:44 -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
53e5af8307
Fix TypeError in tracker_submit_POST
2018-11-15 20:04:15 -05:00
Ivan Habunek
fc8a1acacd
Add events for labels, show in events list
2018-10-24 20:11:49 -04:00
Ivan Habunek
5f3b06df4b
Extract apply_search to search module
...
Fewer imports!
2018-10-18 20:28:44 -04:00
Ivan Habunek
f6f07058b1
Extract filtering by label
2018-10-18 20:28:43 -04:00
Ivan Habunek
1102555cb1
Extract filtering by submitter
...
Also implements "submitter:me", as shown in search bar.
2018-10-18 20:28:41 -04:00
Ivan Habunek
98343d280e
Extract filtering by status, implement "open" alias
...
ticket: https://todo.sr.ht/~sircmpwn/todo.sr.ht/84
2018-10-18 20:28:40 -04:00
Ivan Habunek
def9432287
Implement searching by label
...
Also link labels in ticket list to search by label.
2018-10-18 08:36:20 -04:00
Ivan Habunek
d6861c66d1
Support quoted terms in searches
...
Add possiblity to search for an exact phrase, e.g. "some term".
Support label search when the label name contains spaces, e.g.
label:"help wanted".
2018-10-18 08:36:18 -04:00
Ivan Habunek
5973973ec3
Fix invalid form field name
2018-10-16 21:10:44 -04:00