docbrown/spec/models
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
..
shared_examples Fix delayed job errors related to reactions #1621 (#1883) 2019-02-27 16:19:01 -08:00
webhook Dispatch events to the webhook endpoints #3715 (#3872) 2019-09-07 13:17:45 -04:00
api_secret_spec.rb ApiSecret model for Developer API (#1369) 2019-01-08 12:30:54 -05:00
article_destroy_spec.rb Move async article methods to ActiveJob (#2647) 2019-05-10 12:52:00 -04:00
article_spec.rb Update article specs to include missing dependent: :destroy (#3873) [ci skip] 2019-09-03 17:38:13 -04:00
backup_data_spec.rb Add functionality to remove and recover identity (#3377) 2019-07-03 12:01:16 -04:00
badge_achievement_spec.rb Award credits along with badge achievements (#2683) 2019-05-03 15:38:25 -04:00
badge_spec.rb Update deprecated Faker::Overwatch use (#2142) [skip ci] 2019-03-21 12:17:16 -04:00
block_spec.rb Upgrade Rubocop related gems and fix new violations (#3581) [ci skip] 2019-07-30 14:29:05 -04:00
buffer_update_spec.rb Upgrade Rubocop related gems and fix new violations (#3581) [ci skip] 2019-07-30 14:29:05 -04:00
chat_channel_spec.rb Upgrade Rubocop related gems and fix new violations (#3581) [ci skip] 2019-07-30 14:29:05 -04:00
classified_listing_spec.rb Credits ledger (#3395) 2019-07-09 10:11:18 -04:00
collection_spec.rb Collection: remove optional user and add tests (#3383) 2019-08-02 10:15:04 -04:00
comment_spec.rb Fix comment deletion bug (#3732) 2019-08-27 17:07:09 -04:00
credit_spec.rb Upgrade Rubocop related gems and fix new violations (#3581) [ci skip] 2019-07-30 14:29:05 -04:00
display_ad_event_spec.rb Track success of DEV Shop ads (#3589) 2019-07-31 13:44:47 -04:00
display_ad_spec.rb Update Complexity linters (#3507) [ci skip] 2019-08-01 16:38:27 -04:00
event_spec.rb Update Faker to 2.1.0 (#3652) 2019-08-07 15:59:23 -04:00
feedback_message_spec.rb Upgrade Rubocop related gems and fix new violations (#3581) [ci skip] 2019-07-30 14:29:05 -04:00
follow_spec.rb Upgrade Rubocop related gems and fix new violations (#3581) [ci skip] 2019-07-30 14:29:05 -04:00
github_issue_spec.rb Bump octokit from 4.8.0 to 4.12.0 (#744) [ci skip] 2018-09-25 17:04:58 -04:00
github_repo_spec.rb Upgrade Rubocop related gems and fix new violations (#3581) [ci skip] 2019-07-30 14:29:05 -04:00
html_variant_spec.rb Upgrade Rubocop related gems and fix new violations (#3581) [ci skip] 2019-07-30 14:29:05 -04:00
html_variant_success_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
html_variant_trial_spec.rb Unskip all skipped specs (#2941) 2019-05-25 11:04:38 -04:00
identity_spec.rb Upgrade Rubocop related gems and fix new violations (#3581) [ci skip] 2019-07-30 14:29:05 -04:00
job_opportunity_spec.rb Upgrade Rubocop related gems and fix new violations (#3581) [ci skip] 2019-07-30 14:29:05 -04:00
mention_spec.rb Upgrade Rubocop related gems and fix new violations (#3581) [ci skip] 2019-07-30 14:29:05 -04:00
message_spec.rb Update Faker to 2.1.0 (#3652) 2019-08-07 15:59:23 -04:00
note_spec.rb Improve specs (#1693) 2019-02-04 15:56:00 -04:00
notification_spec.rb Upgrade Rubocop related gems and fix new violations (#3581) [ci skip] 2019-07-30 14:29:05 -04:00
notification_subscription_spec.rb New Feature: Subscribe to posts! (#3149) 2019-06-14 12:03:43 -04:00
organization_membership_spec.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
organization_spec.rb Update Faker to 2.1.0 (#3652) 2019-08-07 15:59:23 -04:00
page_spec.rb Move bust_cache methods in own jobs (#3071) 2019-06-24 13:28:25 -04:00
page_view_spec.rb Pro: add referrers to dashboard and single article stats (#3295) 2019-06-25 13:58:09 -04:00
podcast_episode_spec.rb Introduced published field to podcasts (#3593) 2019-08-01 09:29:13 -04:00
podcast_spec.rb Introduced published field to podcasts (#3593) 2019-08-01 09:29:13 -04:00
poll_option_spec.rb Upgrade Rubocop related gems and fix new violations (#3581) [ci skip] 2019-07-30 14:29:05 -04:00
poll_skip_spec.rb Upgrade Rubocop related gems and fix new violations (#3581) [ci skip] 2019-07-30 14:29:05 -04:00
poll_spec.rb Beta polls feature (admin use only for now) (#3176) 2019-06-15 17:33:30 -04:00
poll_vote_spec.rb Upgrade Rubocop related gems and fix new violations (#3581) [ci skip] 2019-07-30 14:29:05 -04:00
profile_pin_spec.rb Fix profile pin display limit (#3427) 2019-07-09 15:42:46 -04:00
push_notification_subscription_spec.rb Upgrade Rubocop related gems and fix new violations (#3581) [ci skip] 2019-07-30 14:29:05 -04:00
rating_vote_spec.rb Add page for users to "manage" their posts after publication (distribution, etc.) (#2627) 2019-05-01 09:00:09 -04:00
reaction_create_spec.rb Enable random order for specs (#2466) [ci skip] 2019-04-17 11:30:23 -04:00
reaction_destroy_spec.rb Enable random order for specs (#2466) [ci skip] 2019-04-17 11:30:23 -04:00
reaction_spec.rb Upgrade Rubocop related gems and fix new violations (#3581) [ci skip] 2019-07-30 14:29:05 -04:00
search_keyword_spec.rb Code cleanups (#659) 2018-08-07 11:00:13 -04:00
sponsorship_spec.rb Sponsorship: business logic (step 2) (#3440) 2019-07-10 16:40:56 -04:00
tag_adjustment_spec.rb Allow admins to undo a tag adjustment (#3653) 2019-08-14 09:26:26 -04:00
tag_spec.rb Upgrade Rubocop related gems and fix new violations (#3581) [ci skip] 2019-07-30 14:29:05 -04:00
tweet_spec.rb Upgrade Rubocop related gems and fix new violations (#3581) [ci skip] 2019-07-30 14:29:05 -04:00
user_spec.rb Modify onboarding slides (#3864) 2019-08-28 11:05:57 -04:00