docbrown/app/controllers/admin
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
..
application_controller.rb Rubocop cleanups (#1415) 2019-01-02 11:20:02 -05:00
articles_controller.rb Dispatch events to the webhook endpoints #3715 (#3872) 2019-09-07 13:17:45 -04:00
badge_achievements_controller.rb Add badges and org cta (#324) 2018-05-17 18:22:37 -04:00
badges_controller.rb Add badges and org cta (#324) 2018-05-17 18:22:37 -04:00
collections_controller.rb Initial commit 2018-02-28 16:11:08 -05:00
comments_controller.rb Fix URL Validations and Update Admin Dashboard (#1392) 2018-12-26 18:00:02 -05:00
display_ads_controller.rb Initial commit 2018-02-28 16:11:08 -05:00
email_messages_controller.rb Initial commit 2018-02-28 16:11:08 -05:00
feedback_messages_controller.rb Initial commit 2018-02-28 16:11:08 -05:00
follows_controller.rb Initial commit 2018-02-28 16:11:08 -05:00
html_variants_controller.rb Add HTML variants for cta optimization and other nav bar adjustments (#970) 2018-10-22 17:03:57 -04:00
organizations_controller.rb Remove switch organizations tab from settings and clear Rails cache for PUT /admin/organizations (#3045) 2019-06-05 19:01:34 -04:00
podcast_episodes_controller.rb Initial commit 2018-02-28 16:11:08 -05:00
podcasts_controller.rb Introduced published field to podcasts (#3593) 2019-08-01 09:29:13 -04:00
reactions_controller.rb Initial commit 2018-02-28 16:11:08 -05:00
sponsorships_controller.rb Sponsorship: add model (step 1) (#3438) 2019-07-10 15:58:37 -04:00
tags_controller.rb Sponsorship: remove old columns (step 3) (#3446) 2019-07-11 15:35:24 -04:00
users_controller.rb Add Instagram URL to profile links (#3307) 2019-06-26 08:56:07 -04:00