Drew DeVault
de3a95560c
Improve constraints on assignee & label
2022-02-01 09:28:45 +01:00
Drew DeVault
769c772c12
API: Add ImportInput type, not rigged up
2022-02-01 09:28:45 +01:00
Drew DeVault
42e7d8cb62
API: Add generate.go
2022-02-01 09:28:45 +01:00
Drew DeVault
a3256bedb6
API: Send notification emails on submitComment
2022-02-01 09:28:45 +01:00
Drew DeVault
d1f271c170
API: rehome email notification templates
2022-02-01 09:28:45 +01:00
Drew DeVault
8b37337fb4
API: Use correct event type in submitComment
2022-02-01 09:28:45 +01:00
Drew DeVault
bb7941bfb4
API: Move notification emails to EventBuilder
2022-02-01 09:28:45 +01:00
Drew DeVault
2ee328ff64
API: Refactor updateTicketStatus with EventBuilder
2022-02-01 09:28:45 +01:00
Drew DeVault
74ca649b99
API: Generalize event notifications
...
Still to do: generalize this further for use with updateTicket et al,
and incorporate email notifications into this work as well.
2022-02-01 09:28:45 +01:00
Drew DeVault
0f5aec60a8
API: Implement submitComment
2022-02-01 09:28:45 +01:00
Drew DeVault
371828a5c8
Pull mention handling into separate module
...
For re-use with comments (and possibly with description updates as
well).
2022-02-01 09:28:45 +01:00
Drew DeVault
389028ff57
API: Send notifications for ticket status updates
2022-02-01 09:28:45 +01:00
Drew DeVault
676ffd1a4e
API: Simplify ticket subqueries with loader
2022-02-01 09:28:45 +01:00
Drew DeVault
7e2981c23b
API: (Partially) implement updateTicketStatus
2022-02-01 09:28:45 +01:00
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