• Joined on 2022-06-07
k3idii pushed to webhook-events at k3idii/api 2022-06-20 06:52:42 +00:00
b018fa4f43 make lint happy2
64b2bb4f78 make lint happy
Compare 2 commits »
k3idii pushed to webhook-events at k3idii/api 2022-06-19 20:18:27 +00:00
2cf73b07be Merge branch 'webhook-events' of https://kolaente.dev/k3idii/api into webhook-events
64f4b8d76a added config.sample webhook timeout
Compare 2 commits »
k3idii commented on pull request vikunja/vikunja#1183 2022-06-19 20:14:31 +00:00
Event-based webhook

Done. in config

k3idii commented on pull request vikunja/vikunja#1183 2022-06-19 20:14:01 +00:00
Event-based webhook

My idea behind that was :

  • each topic have it specific JSON payload -> each topic needs to be handled differently

  • (because above) - the routing on endpoint that would consume webhook (for…

k3idii commented on pull request vikunja/vikunja#1183 2022-06-19 20:06:02 +00:00
Event-based webhook

webhookUrl contains url + topic

k3idii commented on pull request vikunja/vikunja#1183 2022-06-19 20:05:38 +00:00
Event-based webhook

I had an idea to 'cache' interesting and non-interesing topics for each webhook after filer funciton is ran ... but did not have time to play with it for now.

k3idii commented on pull request vikunja/vikunja#1183 2022-06-19 20:04:27 +00:00
Event-based webhook

At first I was thinking this way. But after going over few use-cases I ened it like this way. My justification:

  • topic are organised in category.subcategory.etc
  • when looking for specific…
k3idii commented on pull request vikunja/vikunja#1183 2022-06-19 19:55:59 +00:00
Event-based webhook

content-type header and value

k3idii commented on pull request vikunja/vikunja#1183 2022-06-19 19:54:22 +00:00
Event-based webhook

Yes, but my low golang skill was not able to reproduce. And I found this way much simple to do and understand.

k3idii pushed to webhook-events at k3idii/api 2022-06-19 19:51:28 +00:00
3713bcb374 Merge branch 'main' into webhook-events
01271c4c01 feat: allow only the authors of task comments to edit them
d837f8a624 fix: add missing migration
8869adfc27 feat: add setting to change overdue tasks reminder email time
030bbfa47e fix(deps): update module github.com/swaggo/swag to v1.8.3 (#1185)
Compare 5 commits »
k3idii pushed to webhook-events at k3idii/api 2022-06-19 19:51:13 +00:00
1423cc9fce Merge branch 'webhook-events' of https://kolaente.dev/k3idii/api into webhook-events
b37846b303 * added webhook timeout to config
Compare 2 commits »
k3idii commented on pull request vikunja/vikunja#1183 2022-06-14 00:32:41 +00:00
Event-based webhook

Updated. Using middleware/router way

  • configuration moved closer to user-defined topics:
# Webhook configuration
webhooks:
  - events : [ '*' ]
    # URL for webhook
    url:…
k3idii pushed to webhook-events at k3idii/api 2022-06-14 00:31:34 +00:00
bc53f9dcc5 Merge branch 'main' into webhook-events
7eb3b96a44 feat: send overdue tasks email notification at 9:00 in the user's time zone
2f25b48869 feat: restrict max avatar size
172a6214d7 fix: VIKUNJA_SERVICE_JWT_SECRET should be VIKUNJA_SERVICE_JWTSECRET (#1184)
92a87cfe4f fix(deps): update module github.com/stretchr/testify to v1.7.2 (#1182)
Compare 5 commits »
k3idii pushed to webhook-events at k3idii/api 2022-06-14 00:31:18 +00:00
44128ceb13 router/middlware based webhooks.
k3idii commented on pull request vikunja/vikunja#1183 2022-06-08 05:08:28 +00:00
Event-based webhook

I didn't try that. Mostly cause I'm not (yet) familiar w/ Watermill :) Sound like better idea (less code)

k3idii commented on pull request vikunja/vikunja#1183 2022-06-08 05:05:18 +00:00
Event-based webhook

#1181 is based on "only" notification - and the PR there is doing http call in sync way (in the code handling notification).

I tried to follow the pattern of event-driven actions (how for…

k3idii created pull request vikunja/vikunja#1183 2022-06-07 15:19:32 +00:00
Event-based webhook
k3idii created branch webhook-events in k3idii/api 2022-06-07 15:16:15 +00:00
k3idii pushed to webhook-events at k3idii/api 2022-06-07 15:16:15 +00:00
9466b1fba5 Event-based webhook
k3idii created repository k3idii/api 2022-06-07 13:00:01 +00:00