docbrown/app
Anna Buianova 4c9a40be41 Dispatch events to the webhook endpoints #3715 (#3872)
* Start with webhooks: table and model

* Start with webhooks api

* Start with webhooks api

* Webhook::Event class and events list

* Remove commented callbacks

* Start with sending events to webhook endpoints

* A couple of tests for Articles::Creator

* Send event to webhook endpoint on article destroy

* Dispatch event on article update

* Dispatch event when an article updated from admin

* Spec for the webhook job

* One more test for the dispatch event job

* Integration-like spec for event dispatching to webhook endpoints when creating an article

* Use Addressable::URI to parse endpoint url

* Add oj as a faster fast_jsonapi backend

* Renamed serializers

* Move article serialization out of a model

* Don't allow to create a webhook event with invalid type

* Add fields for ArticleSerializer

* Fix webhook event job specs

* Specify timeout when dispatching events

* Fix webhook job spec

* Change webhook events queue name

* Change serialized article fields for the dispatchable events

* Include user data when serializing an article for webhook event

* Moved decorating out of Webhook::DispatchEvent, fixed most specs

* Fix route in ArticleSerializer

* Move Article decoration to Webhook::PayloadAdapter

* Refactor image url helpers to avoid including helpers into serializer

* Fix specs

* Default url options for production
2019-09-07 13:17:45 -04:00
..
assets Paginate notifications (#3948) 2019-09-07 11:54:30 -04:00
black_box Add watercooler as sidebar tag and watercooler flare (#3465) 2019-07-12 14:24:33 -04:00
controllers Dispatch events to the webhook endpoints #3715 (#3872) 2019-09-07 13:17:45 -04:00
dashboards Add random variants to onboarding for a/b testing (#3742) 2019-08-18 18:30:22 -04:00
decorators Sponsorship: business logic (step 2) (#3440) 2019-07-10 16:40:56 -04:00
errors Add API Analytics Endpoints (#2293) 2019-04-04 10:52:45 -04:00
fields Enables Rails cops (#2186) 2019-03-25 09:25:55 -04:00
helpers Dispatch events to the webhook endpoints #3715 (#3872) 2019-09-07 13:17:45 -04:00
javascript Images uploads: fix UI for multiple images (#3958) 2019-09-07 10:57:14 -04:00
jobs Dispatch events to the webhook endpoints #3715 (#3872) 2019-09-07 13:17:45 -04:00
labor Rescue InvalidURIError when busting cache (#3938) 2019-09-06 13:07:24 -04:00
lib Add hackers.town to allowed Mastodon instances (#3642) 2019-08-06 10:37:35 -04:00
liquid_tags Fix rubocop lints (#3922) [ci skip] 2019-09-03 10:09:48 -04:00
mailers Improve mod roundrobin notification and internal tooling (#3855) 2019-08-27 21:54:09 -04:00
models Dispatch events to the webhook endpoints #3715 (#3872) 2019-09-07 13:17:45 -04:00
observers Add comment markdown to warned_user_ping (#3750) 2019-08-22 22:04:45 -04:00
policies Listing Drafts and Deletion (#3540) 2019-09-01 13:54:54 -04:00
sanitizers Add support for mark element in markdown (#2089) 2019-03-18 17:10:58 -04:00
serializers/webhook Dispatch events to the webhook endpoints #3715 (#3872) 2019-09-07 13:17:45 -04:00
services Dispatch events to the webhook endpoints #3715 (#3872) 2019-09-07 13:17:45 -04:00
uploaders Set max file size limit for profile images (#3313) 2019-06-28 12:06:25 -04:00
view_objects Dispatch events to the webhook endpoints #3715 (#3872) 2019-09-07 13:17:45 -04:00
views Paginate notifications (#3948) 2019-09-07 11:54:30 -04:00