Drew DeVault
67686fbd8c
API: Implement updateTicket
...
Narrowed the scope of this a bit by updating the schema to not allow
event-creating changes in this context.
2022-02-01 09:28:45 +01:00
Drew DeVault
781617e792
API: Add tracker ID to all ticket resolvers
...
Since the ticket ID is only unique within each tracker.
2022-02-01 09:28:45 +01:00
Drew DeVault
768a4bf6f8
API: Configure webhooks on meta.sr.ht fetch
2022-02-01 09:28:45 +01:00
Drew DeVault
4597e6f019
API: Implement participant fetching from meta
2022-02-01 09:28:45 +01:00
Drew DeVault
d128b68c37
API: Set tracker updated on ticket submit
2022-02-01 09:28:44 +01:00
Drew DeVault
970752b175
API: Add new participant by user ID loader
2022-02-01 09:28:44 +01:00
Drew DeVault
3a6e16f096
API: Rename ParticipantsByID loader
2022-02-01 09:28:44 +01:00
Drew DeVault
e49808f44f
API: Rig up ticket URL mentions
2022-02-01 09:28:44 +01:00
Drew DeVault
6b186f0265
API: Use set for mentioned users & tickets
...
So that repeated mentions of the same user or ticket only have an effect
once.
2022-02-01 09:28:44 +01:00
Drew DeVault
cbfffe8099
API: Rig up ticket mention events
2022-02-01 09:28:44 +01:00
Drew DeVault
a1e2ba20ae
API: Remove obsolete TODO
...
This is not done by the current application and if we want to address
this we should do it separately.
2022-02-01 09:28:44 +01:00
Drew DeVault
f0f16062d3
API: Use CREATE TEMP TABLE AS for submitTicket
...
Thanks to ~minus for the tip
2022-02-01 09:28:44 +01:00
Drew DeVault
1db9ab11ad
API: Narrow the subscriptions created on submitTicket
...
Users subscribed to the tracker as a whole should not be subscribed in
this case.
2022-02-01 09:28:44 +01:00
Drew DeVault
7aeb16dbe7
API: Rig up more of query { submitTicket }
...
Boy is this one complicated
2022-02-01 09:28:44 +01:00
Drew DeVault
42de74e1bd
API: Rig up user mentions on ticket submit
2022-02-01 09:28:44 +01:00
Drew DeVault
59c5724ac4
API: Add additional mail headers for notifications
2022-02-01 09:28:44 +01:00
Drew DeVault
83a3115341
API: Subscribe user to their ticket submissions
2022-02-01 09:28:44 +01:00
Drew DeVault
166b224e4b
API: Use set to prevent duplicate notifications
2022-02-01 09:28:44 +01:00
Drew DeVault
67a9cc2ece
API: Fix subscription query inner loop
2022-02-01 09:28:44 +01:00
Drew DeVault
89f1815b0b
API: Refactor email handling into common area
...
We'll have to send a number of additional notification emails in the
future, so it makes sense to generalize this work a bit.
2022-02-01 09:28:44 +01:00
Drew DeVault
1ceaa88490
API: Send new ticket notification emails
2022-02-01 09:28:44 +01:00
Drew DeVault
2837ce4750
API: Mostly rig up mutation { submitTicket }
2022-02-01 09:28:44 +01:00
Drew DeVault
a013715b2b
API: Rig up mutation { deleteLabel }
2022-02-01 09:28:44 +01:00
Drew DeVault
1179f21833
API: Implement mutation { updateLabel }
2022-02-01 09:28:44 +01:00
Drew DeVault
687489cc23
API: Rig up mutation { createLabel }
2022-02-01 09:28:44 +01:00
Drew DeVault
500482a53a
API: Rig up mutation { ticket{Uns,S}ubscribe }
2022-02-01 09:28:44 +01:00
Drew DeVault
0c655805ba
API: Rig up mutation { tracker{Uns,S}ubscribe }
2022-02-01 09:28:44 +01:00
Drew DeVault
953b83d506
API: Rig up mutation { deleteACL }
2022-02-01 09:28:44 +01:00
Drew DeVault
ba39c40e35
API: Rig up ACL updates
2022-02-01 09:28:44 +01:00
Drew DeVault
d67acb88fb
API: Rig up mutation { deleteTracker }
2022-02-01 09:28:44 +01:00
Drew DeVault
bfcf410798
API: Rig up mutation { updateTracker }
2022-02-01 09:28:44 +01:00
Drew DeVault
bf2a43a44c
API: Rig up mutation { createTracker }
2022-02-01 09:28:44 +01:00
Drew DeVault
2ced219413
Initial writable API design
2022-02-01 09:28:44 +01:00
Paul Spooren
76fca3c766
tracker_import: fix comment_count
...
When importing comments the per ticket value `comment_count` is not
increased, resulting in wrong numbers in the overview.
This commit increses the `comment_count` for every comment imported.
Fixes: https://todo.sr.ht/~sircmpwn/todo.sr.ht/255
Signed-off-by: Paul Spooren <mail@aparcar.org>
2022-01-26 09:05:00 +01:00
Ignas Kiela
411ee43e79
Instrument caches
2022-01-20 10:01:50 +01:00
Drew DeVault
58ac9d6ec9
API: Use scoped_id for ticket cursors
2022-01-19 11:06:49 +01:00
Peter Sanchez
81b6d65552
Updating core-go version and go mod tidy
2021-12-22 12:33:20 +01:00
Ignas Kiela
03f8983945
Remove TicketSeen
...
Has a fair amount of complexity for not much gain.
2021-12-20 10:15:17 +01:00
Ignas Kiela
d75f0e5a29
Join submitters on tracker page loads
...
Currently it takes ~27 SQL round trips to render a tracker page,
this should remove most of those roundtrips, and improve the
performance of the page (right now it takes ~300ms on average)
2021-12-13 09:29:49 +01:00
Drew DeVault
554fe3e3e9
webhooks.py: correct typo in variable name
2021-12-08 12:22:31 +01:00
Ignas Kiela
320a5e8f7c
Add webhook queue monitoring
2021-12-08 12:13:20 +01:00
Peter Sanchez
ac9f3aa1d3
go.mod: core-go version bump
2021-12-01 09:35:37 +01:00
Drew DeVault
f89ad961ad
Fix ticket mentions filter per SQLAlchemy changes
2021-10-18 10:32:05 +02:00
Drew DeVault
49b48dd98e
Improve private tracker access case
...
This fixes a bug with the ticket query, and also returns 401 for private
trackers where the user does not have any access permissions.
2021-10-06 10:27:57 +02:00
Drew DeVault
4ff9d6d2af
fetchTrackersByOwnerName: fix parameter order
2021-09-27 16:05:45 +02:00
Drew DeVault
ffe1c9b652
Overhaul default access lists (API)
2021-09-24 08:21:04 +02: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
Drew DeVault
4521acc3ca
tracker: drop subqueryload on ticket query
...
This was having some bugs where the participant could end up as None in
some unusual cases.
2021-09-17 10:56:07 +02:00
Ivan Habunek
5ee6052e48
Allow sorting by number of comments
2021-09-14 12:40:41 +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