docbrown/spec/jobs
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
..
articles Move delayed calls for update analytics to Active job (#3603) 2019-08-16 12:41:37 -04:00
badge_achievements Implemented ActiveJob for badge_achievements#send_email_notification (#2962) 2019-05-27 09:44:38 -04:00
classified_listings Move bust_cache methods in own jobs (#3071) 2019-06-24 13:28:25 -04:00
comments Fix comment deletion bug (#3732) 2019-08-27 17:07:09 -04:00
events Move bust_cache methods in own jobs (#3071) 2019-06-24 13:28:25 -04:00
follows Enable random order for specs (#2466) [ci skip] 2019-04-17 11:30:23 -04:00
mentions Implement ActiveJob for Mention (#3055) 2019-06-13 11:05:22 -04:00
messages Move messages send_push delay calls to ActiveJob (#3314) 2019-07-08 18:00:19 -04:00
notifications Moved send_mention_notification to ActiveJob (#3566) 2019-08-01 16:35:25 -04:00
organizations Move bust_cache methods in own jobs (#3071) 2019-06-24 13:28:25 -04:00
pages Move bust_cache methods in own jobs (#3071) 2019-06-24 13:28:25 -04:00
podcast_episodes Update podcast episode statuses #2952 (#3450) 2019-07-16 13:36:25 -04:00
podcasts Don't hide podcasts if they have reachable episodes (#3532) 2019-07-26 11:33:31 -04:00
reactions Enable Rails/TimeZone cop (#2334) [ci skip] 2019-04-09 15:38:28 -04:00
shared_examples Don't hide podcasts if they have reachable episodes (#3532) 2019-07-26 11:33:31 -04:00
streams Embed Twitch Live Streaming (#2591) 2019-04-29 18:11:53 -04:00
tags Move bust_cache methods in own jobs (#3071) 2019-06-24 13:28:25 -04:00
users Fix comment deletion bug (#3732) 2019-08-27 17:07:09 -04:00
webhook Dispatch events to the webhook endpoints #3715 (#3872) 2019-09-07 13:17:45 -04:00
export_content_job_spec.rb Move exporting into a job (#2299) 2019-04-16 14:01:00 -04:00
html_variant_success_create_job_spec.rb Move HtmlVariantSuccess.create delay calls to ActiveJob (#3173) 2019-06-18 21:36:33 -04:00
html_variant_trial_create_job_spec.rb Move HtmlVariantTrial.create delay calls to ActiveJob (#3173) (#3239) 2019-06-20 18:14:20 -04:00
rate_limit_checker_job_spec.rb Update PingAdmins to show triggering event (#3853) 2019-09-03 10:23:25 -04:00
rss_reader_fetch_user_job_spec.rb Move RssReader fetch_user to Active Jobs (#3387) 2019-07-08 18:17:35 -04:00
slack_bot_ping_job_spec.rb Moved SlackBot.delay.ping calls to ActiveJob #3136 (#3139) 2019-06-12 09:23:37 -04:00