discourse/spec
Martin Brennan 292017dd25
FIX: Do not call :post_edited webhook twice when editing OP (#13112)
When editing the first post for the topic we do two AJAX requests
to two separate controllers in this order:

PUT /t/topic-name
PUT /posts/2489523

This causes two post revisor calls, which end up triggering the
:post_edited DiscourseEvent twice. This is then picked up and sent
as a WebHook event twice. However we do not need to send a :post_edited
webhook event if the first post is being edited and topic_changed is
true from the :post_edited DiscourseEvent, because a second event will
shortly come through for just the post.

See https://meta.discourse.org/t/post-webhook-fires-two-times-on-post-edited-for-first-post-in-a-topic/162408

Continued on from https://github.com/discourse/discourse/pull/10590
2021-05-24 09:10:22 +10:00
..
components FIX: Update upload secure status when revising posts (#13110) 2021-05-21 13:32:32 +10:00
fabricators FEATURE: add support for like webhooks (#12917) 2021-04-30 17:08:38 -07:00
fixtures DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
helpers A11Y: sets the html lang to user's locale when possible (#12007) 2021-02-10 16:12:09 +01:00
import_export FEATURE: Rake task to export groups (#9450) 2020-04-17 14:59:54 -07:00
initializers FEATURE: A low priority filter for the review queue. (#12822) 2021-04-23 15:34:24 -03:00
integration No need to disable rate limiter after running tests (#13093) 2021-05-19 16:04:35 +04:00
integrity FEATURE: Add anchor links to headings (#12379) 2021-03-23 10:45:06 +02:00
jobs DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
lib DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
mailers FEATURE: Send an email notification when a post is approved. (#12665) 2021-04-12 12:08:23 -03:00
models FIX: Do not call :post_edited webhook twice when editing OP (#13112) 2021-05-24 09:10:22 +10:00
multisite DEV: Prevents rate limits for new feature checks on multisite (#12053) 2021-02-12 08:52:59 -05:00
requests FIX: Do not call :post_edited webhook twice when editing OP (#13112) 2021-05-24 09:10:22 +10:00
script/import_scripts DEV: If disabled do not change setting after import (#12142) 2021-02-19 09:33:35 -07:00
serializers DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
services DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
support DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
tasks FIX: remove migrate_from_s3 task that silently corrupts data (#11703) 2021-01-17 22:33:29 +01:00
views/omniauth_callbacks FEATURE: Use full page redirection for all external auth methods (#8092) 2019-10-08 12:10:43 +01:00
rails_helper.rb DEV: Correct typos and spelling mistakes (#12812) 2021-05-21 11:43:47 +10:00
swagger_helper.rb api docs example (#11997) 2021-02-08 10:09:44 -07:00