{"action":"created","issue":{"url":"https://api.github.com/repos/mautic/mautic/issues/3854","repository_url":"https://api.github.com/repos/mautic/mautic","labels_url":"https://api.github.com/repos/mautic/mautic/issues/3854/labels{/name}","comments_url":"https://api.github.com/repos/mautic/mautic/issues/3854/comments","events_url":"https://api.github.com/repos/mautic/mautic/issues/3854/events","html_url":"https://github.com/mautic/mautic/pull/3854","id":221504113,"number":3854,"title":"Fix point triggers","user":{"login":"thecodeine","id":3649580,"avatar_url":"https://avatars3.githubusercontent.com/u/3649580?v=3","gravatar_id":"","url":"https://api.github.com/users/thecodeine","html_url":"https://github.com/thecodeine","followers_url":"https://api.github.com/users/thecodeine/followers","following_url":"https://api.github.com/users/thecodeine/following{/other_user}","gists_url":"https://api.github.com/users/thecodeine/gists{/gist_id}","starred_url":"https://api.github.com/users/thecodeine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thecodeine/subscriptions","organizations_url":"https://api.github.com/users/thecodeine/orgs","repos_url":"https://api.github.com/users/thecodeine/repos","events_url":"https://api.github.com/users/thecodeine/events{/privacy}","received_events_url":"https://api.github.com/users/thecodeine/received_events","type":"User","site_admin":false},"labels":[{"id":154414515,"url":"https://api.github.com/repos/mautic/mautic/labels/Bug","name":"Bug","color":"e11d21","default":false},{"id":262150480,"url":"https://api.github.com/repos/mautic/mautic/labels/Pending%20Test%20Confirmation","name":"Pending Test Confirmation","color":"fef2c0","default":false},{"id":197691504,"url":"https://api.github.com/repos/mautic/mautic/labels/Ready%20To%20Test","name":"Ready To Test","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":{"login":"escopecz","id":1235442,"avatar_url":"https://avatars1.githubusercontent.com/u/1235442?v=3","gravatar_id":"","url":"https://api.github.com/users/escopecz","html_url":"https://github.com/escopecz","followers_url":"https://api.github.com/users/escopecz/followers","following_url":"https://api.github.com/users/escopecz/following{/other_user}","gists_url":"https://api.github.com/users/escopecz/gists{/gist_id}","starred_url":"https://api.github.com/users/escopecz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/escopecz/subscriptions","organizations_url":"https://api.github.com/users/escopecz/orgs","repos_url":"https://api.github.com/users/escopecz/repos","events_url":"https://api.github.com/users/escopecz/events{/privacy}","received_events_url":"https://api.github.com/users/escopecz/received_events","type":"User","site_admin":false},"assignees":[{"login":"dongilbert","id":718028,"avatar_url":"https://avatars1.githubusercontent.com/u/718028?v=3","gravatar_id":"","url":"https://api.github.com/users/dongilbert","html_url":"https://github.com/dongilbert","followers_url":"https://api.github.com/users/dongilbert/followers","following_url":"https://api.github.com/users/dongilbert/following{/other_user}","gists_url":"https://api.github.com/users/dongilbert/gists{/gist_id}","starred_url":"https://api.github.com/users/dongilbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongilbert/subscriptions","organizations_url":"https://api.github.com/users/dongilbert/orgs","repos_url":"https://api.github.com/users/dongilbert/repos","events_url":"https://api.github.com/users/dongilbert/events{/privacy}","received_events_url":"https://api.github.com/users/dongilbert/received_events","type":"User","site_admin":false},{"login":"escopecz","id":1235442,"avatar_url":"https://avatars1.githubusercontent.com/u/1235442?v=3","gravatar_id":"","url":"https://api.github.com/users/escopecz","html_url":"https://github.com/escopecz","followers_url":"https://api.github.com/users/escopecz/followers","following_url":"https://api.github.com/users/escopecz/following{/other_user}","gists_url":"https://api.github.com/users/escopecz/gists{/gist_id}","starred_url":"https://api.github.com/users/escopecz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/escopecz/subscriptions","organizations_url":"https://api.github.com/users/escopecz/orgs","repos_url":"https://api.github.com/users/escopecz/repos","events_url":"https://api.github.com/users/escopecz/events{/privacy}","received_events_url":"https://api.github.com/users/escopecz/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/mautic/mautic/milestones/31","html_url":"https://github.com/mautic/mautic/milestone/31","labels_url":"https://api.github.com/repos/mautic/mautic/milestones/31/labels","id":2484044,"number":31,"title":"2.8.1","description":"","creator":{"login":"dongilbert","id":718028,"avatar_url":"https://avatars1.githubusercontent.com/u/718028?v=3","gravatar_id":"","url":"https://api.github.com/users/dongilbert","html_url":"https://github.com/dongilbert","followers_url":"https://api.github.com/users/dongilbert/followers","following_url":"https://api.github.com/users/dongilbert/following{/other_user}","gists_url":"https://api.github.com/users/dongilbert/gists{/gist_id}","starred_url":"https://api.github.com/users/dongilbert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dongilbert/subscriptions","organizations_url":"https://api.github.com/users/dongilbert/orgs","repos_url":"https://api.github.com/users/dongilbert/repos","events_url":"https://api.github.com/users/dongilbert/events{/privacy}","received_events_url":"https://api.github.com/users/dongilbert/received_events","type":"User","site_admin":false},"open_issues":11,"closed_issues":38,"state":"open","created_at":"2017-04-26T15:57:32Z","updated_at":"2017-05-09T10:19:06Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2017-04-13T09:15:10Z","updated_at":"2017-05-09T11:13:05Z","closed_at":"2017-05-05T20:39:17Z","pull_request":{"url":"https://api.github.com/repos/mautic/mautic/pulls/3854","html_url":"https://github.com/mautic/mautic/pull/3854","diff_url":"https://github.com/mautic/mautic/pull/3854.diff","patch_url":"https://github.com/mautic/mautic/pull/3854.patch"},"body":"[//]: # ( Please answer the following questions: )\r\n\r\n| Q  | A\r\n| --- | ---\r\n| Bug fix? | Y\r\n| New feature? | --\r\n| Related user documentation PR URL | --\r\n| Related developer documentation PR URL | --\r\n| Issues addressed (#s or URLs) | --\r\n| BC breaks? | --\r\n| Deprecations? | --\r\n\r\n[//]: # ( Note that all new features should have a related user and/or developer documentation PR in their respective repositories. )\r\n\r\n[//]: # ( Required: )\r\n#### Description:\r\n1. Point Triggers are not working for new users.\r\n2. \"Send Email\" event will be triggered each time system will change Lead points. (Event if email was sent before)\r\n\r\n[//]: # ( As applicable: )\r\n#### Steps to reproduce the bug:\r\n1. Create new user \r\n2. Add user to segment\r\n3. Build campaign that will only adjust points to users.\r\n4. Add Point Trigger with \"Send Emal\" event.\r\n5. Trigger campaign. Email wont be send for new user.\r\n6. Create same campaign and trigger. You will get email.\r\n7. Create same campaign and trigger. You will get email again.Each time system will trigger \"change points\" event on Lead, he will receive email.\r\n\r\n#### Steps to test this PR:\r\n1. Same steps as above. Point triggers event will be fired for new users and only once.\r\n2. Run phpunit tests"},"comment":{"url":"https://api.github.com/repos/mautic/mautic/issues/comments/300132928","html_url":"https://github.com/mautic/mautic/pull/3854#issuecomment-300132928","issue_url":"https://api.github.com/repos/mautic/mautic/issues/3854","id":300132928,"user":{"login":"thecodeine","id":3649580,"avatar_url":"https://avatars3.githubusercontent.com/u/3649580?v=3","gravatar_id":"","url":"https://api.github.com/users/thecodeine","html_url":"https://github.com/thecodeine","followers_url":"https://api.github.com/users/thecodeine/followers","following_url":"https://api.github.com/users/thecodeine/following{/other_user}","gists_url":"https://api.github.com/users/thecodeine/gists{/gist_id}","starred_url":"https://api.github.com/users/thecodeine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thecodeine/subscriptions","organizations_url":"https://api.github.com/users/thecodeine/orgs","repos_url":"https://api.github.com/users/thecodeine/repos","events_url":"https://api.github.com/users/thecodeine/events{/privacy}","received_events_url":"https://api.github.com/users/thecodeine/received_events","type":"User","site_admin":false},"created_at":"2017-05-09T11:13:05Z","updated_at":"2017-05-09T11:13:05Z","body":"No problem at all. Happy that we can support Mautic development ;-)"}}
{"actor":{"display_login":"thecodeine"}}