docbrown/spec
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
..
black_box Add watercooler as sidebar tag and watercooler flare (#3465) 2019-07-12 14:24:33 -04:00
decorators Display comment published timestamp according to user's locale (#1970) 2019-03-08 15:19:37 -05:00
factories Webhooks: API fixes and docs (#3901) 2019-09-03 10:41:23 -04:00
fixtures Set max file size limit for profile images (#3313) 2019-06-28 12:06:25 -04:00
helpers Update Email Copy for internal/reports (#3867) 2019-08-30 09:58:30 -04:00
jobs Dispatch events to the webhook endpoints #3715 (#3872) 2019-09-07 13:17:45 -04:00
labor Escape raw tags in codeblocks properly (#3790) 2019-09-04 08:33:46 -04:00
lib Fix Typos (#3510) 2019-07-22 12:56:48 -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 Moved SlackBot.delay.ping calls to ActiveJob #3136 (#3139) 2019-06-12 09:23:37 -04:00
policies Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
requests Dispatch events to the webhook endpoints #3715 (#3872) 2019-09-07 13:17:45 -04:00
routing Enabled rubocop/lint (#2130) 2019-03-21 10:53:44 -04:00
services Dispatch events to the webhook endpoints #3715 (#3872) 2019-09-07 13:17:45 -04:00
support Support for runnable kotlin snippets #3776 (#3801) 2019-08-29 16:06:17 -04:00
system Fix rubocop lints (#3922) [ci skip] 2019-09-03 10:09:48 -04:00
views Migrate feature test to system test (#2301) 2019-04-04 12:15:10 -04:00
rails_helper.rb Update core API endpoints to support access_token (#3644) 2019-08-08 15:55:23 -03:00
spec_helper.rb Temporarily comment out random (#2486) 2019-04-18 11:56:38 -04:00