Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add contact segment membership webhook #10511

Closed
wants to merge 4 commits into from

Conversation

kuzmany
Copy link
Member

@kuzmany kuzmany commented Oct 6, 2021

Q A
Bug fix? (use the a.b branch) no
New feature/enhancement? (use the a.x branch) yes
Deprecations? no
BC breaks? (use the c.x branch) no
Automated tests included? not yet
Related user documentation PR URL
Related developer documentation PR URL mautic/developer-documentation#204
Issue(s) addressed

Description:

This PR just add Contact Segment Membership Change Event to Webhooks

image

Steps to test this PR:

  1. Load up this PR
  2. Go to https://webhook.site/ and copy link of your webhook
  3. Go to Mautic and Webhooks
  4. Create Contact Segment Membership Change Event to your webhook.site url
  5. Go to contact list and change segment membership for few contacts
  6. Check If you receive correct data to webhook.site

@kuzmany kuzmany added ready-to-test PR's that are ready to test enhancement Any improvement to an existing feature or functionality labels Oct 6, 2021
@cla-bot cla-bot bot added the cla-signed The PR contributors have signed the contributors agreement label Oct 6, 2021
@npracht npracht added webhooks Anything related to webhooks needs-automated-tests PR's that need automated tests before they can be merged needs-documentation PR's that need documentation before they can be merged labels Oct 6, 2021
@codecov
Copy link

codecov bot commented Oct 6, 2021

Codecov Report

Merging #10511 (b136b0f) into 4.4 (d4724dd) will increase coverage by 1.26%.
The diff coverage is 85.71%.

❗ Current head b136b0f differs from pull request most recent head c2c4042. Consider uploading reports for the commit c2c4042 to get more accurate results

Impacted file tree graph

@@             Coverage Diff              @@
##                4.4   #10511      +/-   ##
============================================
+ Coverage     48.14%   49.41%   +1.26%     
- Complexity    35280    35457     +177     
============================================
  Files          2124     2146      +22     
  Lines        118559   105675   -12884     
============================================
- Hits          57084    52217    -4867     
+ Misses        61475    53458    -8017     
Impacted Files Coverage Δ
...les/LeadBundle/EventListener/WebhookSubscriber.php 72.36% <80.00%> (+1.25%) ⬆️
app/bundles/LeadBundle/Event/ListChangeEvent.php 87.50% <100.00%> (-0.74%) ⬇️

... and 1870 files with indirect coverage changes

npracht added a commit to mautic/developer-documentation that referenced this pull request Oct 6, 2021
* closes #161
* includes mention of new webhook : mautic/mautic#10511
* add also mention of forgotten webhooks
@npracht npracht removed the needs-documentation PR's that need documentation before they can be merged label Oct 6, 2021
@kuzmany kuzmany removed the needs-automated-tests PR's that need automated tests before they can be merged label Oct 6, 2021
Copy link
Sponsor Member

@escopecz escopecz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes look good. The only thing I'm missing is a functional test that would ensure this works and continue working.

@escopecz escopecz added the needs-automated-tests PR's that need automated tests before they can be merged label Oct 29, 2021
@kuzmany
Copy link
Member Author

kuzmany commented Oct 29, 2021

Unit test added

@RCheesley RCheesley added the hacktoberfest-accepted PR's that have been accepted for the purposes of Hacktoberfest label Oct 31, 2021
@kuzmany kuzmany removed the needs-automated-tests PR's that need automated tests before they can be merged label Nov 6, 2021
@RCheesley RCheesley requested a review from a team March 7, 2022 18:23
RCheesley
RCheesley previously approved these changes Mar 21, 2022
Copy link
Sponsor Member

@RCheesley RCheesley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested with both campaign based and manual segment changes and the webhooks were correctly fired with both.

Thanks for the PR @kuzmany just a PHPSTAN fix needed it looks like! 🚀

@RCheesley RCheesley added pending-test-confirmation PR's that require one test before they can be merged and removed ready-to-test PR's that are ready to test labels Mar 21, 2022
@RCheesley RCheesley added this to the 4.3 milestone Mar 21, 2022
@kuzmany
Copy link
Member Author

kuzmany commented Mar 21, 2022

@RCheesley done

1 similar comment
@kuzmany
Copy link
Member Author

kuzmany commented Mar 21, 2022

@RCheesley done

@escopecz escopecz added the pending-feedback PR's and issues that are awaiting feedback from the author label Mar 22, 2022
@escopecz escopecz removed this from the 4.3 milestone May 17, 2022
@mautibot
Copy link

This pull request has been mentioned on Mautic Community Forums. There might be relevant details there:

https://forum.mautic.org/t/an-update-on-the-mautic-5-release-schedule/25863/1

@cla-bot
Copy link

cla-bot bot commented Feb 8, 2023

Thank you for your contribution! We require all contributors to sign our Contributor License Agreement, and we do not have a record of your signature on file. In order for us to review and merge your code, please head over to https://www.mautic.org/contributor-agreement and complete the form. There may be a short delay while the team add you as a contributor - please be patient :). Any problems contact the Product Team on Slack (get an invite at https://mautic.org/slack). CLA has not been signed by @Roensby.

@cla-bot cla-bot bot removed the cla-signed The PR contributors have signed the contributors agreement label Feb 8, 2023
@RCheesley
Copy link
Sponsor Member

@cla-bot check

@cla-bot cla-bot bot added the cla-signed The PR contributors have signed the contributors agreement label Feb 8, 2023
@cla-bot
Copy link

cla-bot bot commented Feb 8, 2023

The CLA Bot has been sent on a mission to check against the latest list and will be back shortly with its findings!

@RCheesley
Copy link
Sponsor Member

@kuzmany will need to be rebased to 5.x please, when you're ready!

@escopecz escopecz added the needs-rebase PR's that need to be rebased label Feb 15, 2023
@mautibot
Copy link

mautibot commented Apr 5, 2023

This pull request has been mentioned on Mautic Community Forums. There might be relevant details there:

https://forum.mautic.org/t/webhook-contact-updated-for-segment-membership-change/27545/3

@kuzmany kuzmany changed the base branch from 4.x to 5.x April 7, 2023 05:27
@kuzmany kuzmany force-pushed the new-webhook-added-to-segment branch from a1d3c75 to c2c4042 Compare April 7, 2023 05:49
@kuzmany kuzmany requested a review from mabumusa1 as a code owner April 7, 2023 05:49
@kuzmany kuzmany changed the base branch from 5.x to 4.4 April 7, 2023 05:49
@kuzmany
Copy link
Member Author

kuzmany commented Apr 7, 2023

Close favor to #12186

@kuzmany kuzmany closed this Apr 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla-signed The PR contributors have signed the contributors agreement enhancement Any improvement to an existing feature or functionality hacktoberfest-accepted PR's that have been accepted for the purposes of Hacktoberfest needs-rebase PR's that need to be rebased pending-feedback PR's and issues that are awaiting feedback from the author pending-test-confirmation PR's that require one test before they can be merged webhooks Anything related to webhooks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants