{"action":"created","comment":{"url":"https://api.github.com/repos/OCA/social/pulls/comments/77315308","id":77315308,"diff_hunk":"@@ -3,26 +3,14 @@\n # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).\n \n import logging\n-from openerp import api, SUPERUSER_ID\n+from openerp.addons.mail_tracking.hooks import column_add_with_value","path":"mail_tracking_mass_mailing/hooks.py","position":5,"original_position":5,"commit_id":"a7e96157d2ee240c44dfc1487b1e7209dadc3d9e","original_commit_id":"a7e96157d2ee240c44dfc1487b1e7209dadc3d9e","user":{"login":"antespi","id":1881111,"avatar_url":"https://avatars.githubusercontent.com/u/1881111?v=3","gravatar_id":"","url":"https://api.github.com/users/antespi","html_url":"https://github.com/antespi","followers_url":"https://api.github.com/users/antespi/followers","following_url":"https://api.github.com/users/antespi/following{/other_user}","gists_url":"https://api.github.com/users/antespi/gists{/gist_id}","starred_url":"https://api.github.com/users/antespi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antespi/subscriptions","organizations_url":"https://api.github.com/users/antespi/orgs","repos_url":"https://api.github.com/users/antespi/repos","events_url":"https://api.github.com/users/antespi/events{/privacy}","received_events_url":"https://api.github.com/users/antespi/received_events","type":"User","site_admin":false},"body":"This addons depends on mail_tracking. I think this is not necessary.","created_at":"2016-09-02T09:02:02Z","updated_at":"2016-09-02T09:02:02Z","html_url":"https://github.com/OCA/social/pull/82#discussion_r77315308","pull_request_url":"https://api.github.com/repos/OCA/social/pulls/82","_links":{"self":{"href":"https://api.github.com/repos/OCA/social/pulls/comments/77315308"},"html":{"href":"https://github.com/OCA/social/pull/82#discussion_r77315308"},"pull_request":{"href":"https://api.github.com/repos/OCA/social/pulls/82"}}},"pull_request":{"url":"https://api.github.com/repos/OCA/social/pulls/82","id":83725837,"html_url":"https://github.com/OCA/social/pull/82","diff_url":"https://github.com/OCA/social/pull/82.diff","patch_url":"https://github.com/OCA/social/pull/82.patch","issue_url":"https://api.github.com/repos/OCA/social/issues/82","number":82,"state":"open","locked":false,"title":"[8.0][IMP][mail_tracking] Speed installation time and discard concurrent events","user":{"login":"antespi","id":1881111,"avatar_url":"https://avatars.githubusercontent.com/u/1881111?v=3","gravatar_id":"","url":"https://api.github.com/users/antespi","html_url":"https://github.com/antespi","followers_url":"https://api.github.com/users/antespi/followers","following_url":"https://api.github.com/users/antespi/following{/other_user}","gists_url":"https://api.github.com/users/antespi/gists{/gist_id}","starred_url":"https://api.github.com/users/antespi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/antespi/subscriptions","organizations_url":"https://api.github.com/users/antespi/orgs","repos_url":"https://api.github.com/users/antespi/repos","events_url":"https://api.github.com/users/antespi/events{/privacy}","received_events_url":"https://api.github.com/users/antespi/received_events","type":"User","site_admin":false},"body":"Several improvements after using mail_tracking_* addons in production environment:\r\n\r\n* Remove post_init_hook: When installing these addons there's no mail_tracking_mail objects in DB, so there's no point to relate them to any res.partner\r\n* Add pre_init_hook: Create and set a value to compute + store columns (and email_score column), before installing this addon\r\n* Remove compute and api.depends on email_score fields\r\n* Do not save concurrent open or click events: \r\n   * If there's two concurrent open events (events received with a delta time less than 10 seconds) only the first one will be saved, the second one will be discarded\r\n   * If there's two concurrent click events (events received with a delta time less than 5 seconds, and referred to the same URL) only the first one will be saved, the second one will be discarded.\r\n* Propagate bounce event to mass_mailing stats\r\n* Improvements on mail_tracking_mailgun proposed by @Yajo after merging\r\n","created_at":"2016-09-01T23:51:08Z","updated_at":"2016-09-02T09:02:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e5aadc820484432023d48a294b41e3d562a395e8","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/OCA/social/pulls/82/commits","review_comments_url":"https://api.github.com/repos/OCA/social/pulls/82/comments","review_comment_url":"https://api.github.com/repos/OCA/social/pulls/comments{/number}","comments_url":"https://api.github.com/repos/OCA/social/issues/82/comments","statuses_url":"https://api.github.com/repos/OCA/social/statuses/a7e96157d2ee240c44dfc1487b1e7209dadc3d9e","head":{"label":"Tecnativa:8.0-mail_tracking_imp","ref":"8.0-mail_tracking_imp","sha":"a7e96157d2ee240c44dfc1487b1e7209dadc3d9e","user":{"login":"Tecnativa","id":18120193,"avatar_url":"https://avatars.githubusercontent.com/u/18120193?v=3","gravatar_id":"","url":"https://api.github.com/users/Tecnativa","html_url":"https://github.com/Tecnativa","followers_url":"https://api.github.com/users/Tecnativa/followers","following_url":"https://api.github.com/users/Tecnativa/following{/other_user}","gists_url":"https://api.github.com/users/Tecnativa/gists{/gist_id}","starred_url":"https://api.github.com/users/Tecnativa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tecnativa/subscriptions","organizations_url":"https://api.github.com/users/Tecnativa/orgs","repos_url":"https://api.github.com/users/Tecnativa/repos","events_url":"https://api.github.com/users/Tecnativa/events{/privacy}","received_events_url":"https://api.github.com/users/Tecnativa/received_events","type":"Organization","site_admin":false},"repo":{"id":57903102,"name":"social","full_name":"Tecnativa/social","owner":{"login":"Tecnativa","id":18120193,"avatar_url":"https://avatars.githubusercontent.com/u/18120193?v=3","gravatar_id":"","url":"https://api.github.com/users/Tecnativa","html_url":"https://github.com/Tecnativa","followers_url":"https://api.github.com/users/Tecnativa/followers","following_url":"https://api.github.com/users/Tecnativa/following{/other_user}","gists_url":"https://api.github.com/users/Tecnativa/gists{/gist_id}","starred_url":"https://api.github.com/users/Tecnativa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tecnativa/subscriptions","organizations_url":"https://api.github.com/users/Tecnativa/orgs","repos_url":"https://api.github.com/users/Tecnativa/repos","events_url":"https://api.github.com/users/Tecnativa/events{/privacy}","received_events_url":"https://api.github.com/users/Tecnativa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Tecnativa/social","description":"Addons concerning odoo's social ERP features and messaging in general","fork":true,"url":"https://api.github.com/repos/Tecnativa/social","forks_url":"https://api.github.com/repos/Tecnativa/social/forks","keys_url":"https://api.github.com/repos/Tecnativa/social/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Tecnativa/social/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Tecnativa/social/teams","hooks_url":"https://api.github.com/repos/Tecnativa/social/hooks","issue_events_url":"https://api.github.com/repos/Tecnativa/social/issues/events{/number}","events_url":"https://api.github.com/repos/Tecnativa/social/events","assignees_url":"https://api.github.com/repos/Tecnativa/social/assignees{/user}","branches_url":"https://api.github.com/repos/Tecnativa/social/branches{/branch}","tags_url":"https://api.github.com/repos/Tecnativa/social/tags","blobs_url":"https://api.github.com/repos/Tecnativa/social/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Tecnativa/social/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Tecnativa/social/git/refs{/sha}","trees_url":"https://api.github.com/repos/Tecnativa/social/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Tecnativa/social/statuses/{sha}","languages_url":"https://api.github.com/repos/Tecnativa/social/languages","stargazers_url":"https://api.github.com/repos/Tecnativa/social/stargazers","contributors_url":"https://api.github.com/repos/Tecnativa/social/contributors","subscribers_url":"https://api.github.com/repos/Tecnativa/social/subscribers","subscription_url":"https://api.github.com/repos/Tecnativa/social/subscription","commits_url":"https://api.github.com/repos/Tecnativa/social/commits{/sha}","git_commits_url":"https://api.github.com/repos/Tecnativa/social/git/commits{/sha}","comments_url":"https://api.github.com/repos/Tecnativa/social/comments{/number}","issue_comment_url":"https://api.github.com/repos/Tecnativa/social/issues/comments{/number}","contents_url":"https://api.github.com/repos/Tecnativa/social/contents/{+path}","compare_url":"https://api.github.com/repos/Tecnativa/social/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Tecnativa/social/merges","archive_url":"https://api.github.com/repos/Tecnativa/social/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Tecnativa/social/downloads","issues_url":"https://api.github.com/repos/Tecnativa/social/issues{/number}","pulls_url":"https://api.github.com/repos/Tecnativa/social/pulls{/number}","milestones_url":"https://api.github.com/repos/Tecnativa/social/milestones{/number}","notifications_url":"https://api.github.com/repos/Tecnativa/social/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Tecnativa/social/labels{/name}","releases_url":"https://api.github.com/repos/Tecnativa/social/releases{/id}","deployments_url":"https://api.github.com/repos/Tecnativa/social/deployments","created_at":"2016-05-02T16:15:37Z","updated_at":"2016-05-02T16:15:38Z","pushed_at":"2016-09-02T01:52:26Z","git_url":"git://github.com/Tecnativa/social.git","ssh_url":"git@github.com:Tecnativa/social.git","clone_url":"https://github.com/Tecnativa/social.git","svn_url":"https://github.com/Tecnativa/social","homepage":"https://odoo-community.org/project/99","size":1448,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"9.0"}},"base":{"label":"OCA:8.0","ref":"8.0","sha":"1ca01d8b3a6558d62c29010c300259bc5b0a11ba","user":{"login":"OCA","id":7600578,"avatar_url":"https://avatars.githubusercontent.com/u/7600578?v=3","gravatar_id":"","url":"https://api.github.com/users/OCA","html_url":"https://github.com/OCA","followers_url":"https://api.github.com/users/OCA/followers","following_url":"https://api.github.com/users/OCA/following{/other_user}","gists_url":"https://api.github.com/users/OCA/gists{/gist_id}","starred_url":"https://api.github.com/users/OCA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCA/subscriptions","organizations_url":"https://api.github.com/users/OCA/orgs","repos_url":"https://api.github.com/users/OCA/repos","events_url":"https://api.github.com/users/OCA/events{/privacy}","received_events_url":"https://api.github.com/users/OCA/received_events","type":"Organization","site_admin":false},"repo":{"id":39009740,"name":"social","full_name":"OCA/social","owner":{"login":"OCA","id":7600578,"avatar_url":"https://avatars.githubusercontent.com/u/7600578?v=3","gravatar_id":"","url":"https://api.github.com/users/OCA","html_url":"https://github.com/OCA","followers_url":"https://api.github.com/users/OCA/followers","following_url":"https://api.github.com/users/OCA/following{/other_user}","gists_url":"https://api.github.com/users/OCA/gists{/gist_id}","starred_url":"https://api.github.com/users/OCA/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OCA/subscriptions","organizations_url":"https://api.github.com/users/OCA/orgs","repos_url":"https://api.github.com/users/OCA/repos","events_url":"https://api.github.com/users/OCA/events{/privacy}","received_events_url":"https://api.github.com/users/OCA/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/OCA/social","description":"Addons concerning odoo's social ERP features and messaging in general","fork":false,"url":"https://api.github.com/repos/OCA/social","forks_url":"https://api.github.com/repos/OCA/social/forks","keys_url":"https://api.github.com/repos/OCA/social/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OCA/social/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OCA/social/teams","hooks_url":"https://api.github.com/repos/OCA/social/hooks","issue_events_url":"https://api.github.com/repos/OCA/social/issues/events{/number}","events_url":"https://api.github.com/repos/OCA/social/events","assignees_url":"https://api.github.com/repos/OCA/social/assignees{/user}","branches_url":"https://api.github.com/repos/OCA/social/branches{/branch}","tags_url":"https://api.github.com/repos/OCA/social/tags","blobs_url":"https://api.github.com/repos/OCA/social/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OCA/social/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OCA/social/git/refs{/sha}","trees_url":"https://api.github.com/repos/OCA/social/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OCA/social/statuses/{sha}","languages_url":"https://api.github.com/repos/OCA/social/languages","stargazers_url":"https://api.github.com/repos/OCA/social/stargazers","contributors_url":"https://api.github.com/repos/OCA/social/contributors","subscribers_url":"https://api.github.com/repos/OCA/social/subscribers","subscription_url":"https://api.github.com/repos/OCA/social/subscription","commits_url":"https://api.github.com/repos/OCA/social/commits{/sha}","git_commits_url":"https://api.github.com/repos/OCA/social/git/commits{/sha}","comments_url":"https://api.github.com/repos/OCA/social/comments{/number}","issue_comment_url":"https://api.github.com/repos/OCA/social/issues/comments{/number}","contents_url":"https://api.github.com/repos/OCA/social/contents/{+path}","compare_url":"https://api.github.com/repos/OCA/social/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OCA/social/merges","archive_url":"https://api.github.com/repos/OCA/social/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OCA/social/downloads","issues_url":"https://api.github.com/repos/OCA/social/issues{/number}","pulls_url":"https://api.github.com/repos/OCA/social/pulls{/number}","milestones_url":"https://api.github.com/repos/OCA/social/milestones{/number}","notifications_url":"https://api.github.com/repos/OCA/social/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OCA/social/labels{/name}","releases_url":"https://api.github.com/repos/OCA/social/releases{/id}","deployments_url":"https://api.github.com/repos/OCA/social/deployments","created_at":"2015-07-13T12:06:47Z","updated_at":"2016-08-21T08:45:16Z","pushed_at":"2016-09-02T02:39:16Z","git_url":"git://github.com/OCA/social.git","ssh_url":"git@github.com:OCA/social.git","clone_url":"https://github.com/OCA/social.git","svn_url":"https://github.com/OCA/social","homepage":"https://odoo-community.org/project/99","size":1811,"stargazers_count":11,"watchers_count":11,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":55,"mirror_url":null,"open_issues_count":10,"forks":55,"open_issues":10,"watchers":11,"default_branch":"9.0"}},"_links":{"self":{"href":"https://api.github.com/repos/OCA/social/pulls/82"},"html":{"href":"https://github.com/OCA/social/pull/82"},"issue":{"href":"https://api.github.com/repos/OCA/social/issues/82"},"comments":{"href":"https://api.github.com/repos/OCA/social/issues/82/comments"},"review_comments":{"href":"https://api.github.com/repos/OCA/social/pulls/82/comments"},"review_comment":{"href":"https://api.github.com/repos/OCA/social/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/OCA/social/pulls/82/commits"},"statuses":{"href":"https://api.github.com/repos/OCA/social/statuses/a7e96157d2ee240c44dfc1487b1e7209dadc3d9e"}}}}
{"actor":{"display_login":"antespi"}}