Commit Graph

582 Commits

Author SHA1 Message Date
Drew DeVault 56881ae3e4 API: basic ACL riggings 2021-02-16 14:17:52 -05:00
Drew DeVault cccc0c0ea6 API: rig up tracker { subscription } 2021-02-16 10:06:56 -05:00
Drew DeVault 78b187bb75 API: implement ticket { subscription } 2021-02-16 10:04:26 -05:00
Drew DeVault f518bf2904 API: ticket { title, description } => { subject, body } 2021-02-16 09:21:41 -05:00
Drew DeVault 655aafa25e API: Rename CommentsByID => CommentsByIDUnsafe
Because this function makes no attempt at verifying that the user is
permitted to view this comment, and it's the caller's responsibility to
verify that.
2021-02-16 09:14:34 -05:00
Drew DeVault b82659cd0b API: expand tracker access controls 2021-02-15 11:54:11 -05:00
Drew DeVault aa68b89863 API: rig up user trackers 2021-02-15 11:14:48 -05:00
Drew DeVault c20a802824 API: expand subscriptions in schema 2021-02-15 10:56:16 -05:00
Drew DeVault e48413433d API: Rig up subscriptions 2021-02-15 10:50:32 -05:00
Drew DeVault 51961a6b25 API: rig up labels 2021-02-15 10:08:01 -05:00
Drew DeVault 114a5665c1 API: rig up event relationships 2021-02-13 09:04:38 -05:00
Drew DeVault eba34e1d00 API: rig up assignment { assignee, assigner } 2021-02-09 11:36:08 -05:00
Drew DeVault d36399bc47 API: Add ticket { events } 2021-02-09 11:32:47 -05:00
Drew DeVault 7fa0401806 API: implement ticket assignees 2021-02-09 11:08:38 -05:00
Drew DeVault 057b65814d API: implement participant loader 2021-02-08 10:44:52 -05:00
Drew DeVault b4a6d22290 API: implement ticket { tracker } 2021-02-08 10:44:52 -05:00
Drew DeVault 6f9988a490 Ticket: use left join on tracker/user
This allows postgres to optimize it out if we don't select the
appropriate fields.
2021-02-08 10:44:52 -05:00
Drew DeVault a952bb6faa API: implement Ticket { ref }
This required some core-go patching to support composite fields.
2021-02-08 10:44:52 -05:00
Drew DeVault 6ee0f67e53 Add Ticket model and wire up tracker { tickets } 2021-02-08 10:44:52 -05:00
Drew DeVault 6ddf2b4df2 API: flesh out remaining event types
Relationships will still have to be addressed in schema.resolvers.go in
a later patch, but I'm deferring this until we can flesh out the
appropriate types.
2021-02-08 10:44:51 -05:00
Drew DeVault 4e23385e1e API: rig up status change events 2021-02-08 10:44:51 -05:00
Drew DeVault bcd2302251 API: Initial riggings for events 2021-02-08 10:44:51 -05:00
Drew DeVault 3dac774c71 API: Implement query { trackerByOwner } 2021-02-08 10:44:51 -05:00
Drew DeVault cb460bb4e0 API: join on ACLs for trackerById 2021-02-08 10:44:51 -05:00
Drew DeVault fec9109909 API: implement query { trackerByName } 2021-02-08 10:44:51 -05:00
Drew DeVault b9bad8ad12 API: Implement query { tracker } 2021-02-08 10:44:51 -05:00
Drew DeVault fb402f3672 API: Rig up loaders, implement query { user } 2021-02-08 10:44:51 -05:00
Drew DeVault a66542c0dc API: Implement query { me } 2021-02-08 10:44:51 -05:00
Drew DeVault afdf491ee6 API: Implement query { trackers } 2021-02-08 10:44:51 -05:00
Drew DeVault 0d618049c1 API: Implement query { version } 2021-02-08 10:44:51 -05:00
Drew DeVault 3ea53acc66 Rig up with core-go server riggings 2021-02-08 10:44:51 -05:00
Drew DeVault 475901b455 API: Initial groundwork 2021-02-08 10:44:51 -05:00
Drew DeVault 4fba3b7bdb .builds/alpine: upgrade to 3.13 2021-02-08 10:37:36 -05:00
Drew DeVault 396fe85b86 Remove unimplemented search hint 2021-02-05 10:36:01 -05:00
Drew DeVault a34263c4dd Hide ticket labelling UI if user lack permission
Fixes #240
2021-01-22 08:24:28 -05:00
Drew DeVault e4794677e2 Fix notifications for newly subscribed user 2021-01-21 19:58:01 -05:00
Drew DeVault 5efd6ba260 Fix misc. exception sources 2021-01-21 19:49:09 -05:00
Drew DeVault 6e5d59e614 email: update lookup_user callsite core.sr.ht changes 2021-01-18 15:34:31 -05:00
Denis Laxalde 6b683af18e Use datetime.fromisoformat() to parse dates in tracker import
This would allow preserving original time zone information and also
handles negative UTC offset values.
2021-01-18 12:49:20 -05:00
Denis Laxalde 04135b65ca Fix background color of assign menu in dark mode 2021-01-18 12:49:20 -05:00
Drew DeVault 8795dcb33b tickets: triage access is required for labelling 2021-01-11 09:06:12 -05:00
Drew DeVault 62767c27dd find_mentioned_users: use set 2021-01-07 13:42:07 -05:00
Drew DeVault 49f8555d0b Similar fix for find_mentioned_tickets 2021-01-07 12:53:25 -05:00
Drew DeVault 228455d27e find_mentioned_users: fix "none" description
This was causing exceptions when tickets were filled out without a body,
presumably following the core.sr.ht validation change.
2021-01-07 12:40:07 -05:00
Drew DeVault 08b8ce116f Dark theme improvements 2020-12-16 10:16:34 -05:00
Drew DeVault e7caaa18dd Dark theme updates 2020-12-15 14:15:58 -05:00
Drew DeVault 02d07977c9 Update wording on dashboard page
To encourage users to feel like a part of sr.ht
2020-11-20 11:29:38 -05:00
Simon Ser 7643b83209 Don't append duplicate term in label_search_url
Prevent duplicate "label:" criteria from being appended to the query.
2020-11-10 12:07:50 -05:00
Drew DeVault 11cf2a5c09 label_badge: add nofollow
This can create a spider loop which ultimately forms increasingly
expensive search queries
2020-11-04 12:54:25 -05:00
Drew DeVault 718feb66ef /:owner/:tracker/labels: Fix 500 on missing tracker 2020-10-31 11:17:26 -04:00