{"action":"created","comment":{"url":"https://api.github.com/repos/archetipo/l10n-italy/pulls/comments/26213125","id":26213125,"diff_hunk":"@@ -154,9 +162,19 @@ def message_parse(\n                 # I'm going to set this message as notification of the original\n                 # message and remove the message_id of this message\n                 # (it would be duplicated)\n-                context['main_message_id'] = msg_ids[0]\n-                context['pec_type'] = daticert_dict.get('pec_type')\n-            del msg_dict['message_id']\n+                # before deletion check if this message is prensent and linked with\n+                # main massage id, if false remove message_id else no\n+                chk_msgids = message_pool.search(\n+                    cr, uid,\n+                    [\n+                        ('pec_msg_id', '=', daticert_dict['pec_msg_id']),\n+                        ('pec_type', '=',  daticert_dict.get('pec_type'))\n+                    ],\n+                    context=context)\n+                if not chk_msgids:","path":"l10n_it_pec_messages/model/mail_thread.py","position":47,"original_position":47,"commit_id":"106cb960fb635c594042294a1620b0d9a2213d49","original_commit_id":"106cb960fb635c594042294a1620b0d9a2213d49","user":{"login":"eLBati","id":1033131,"avatar_url":"https://avatars.githubusercontent.com/u/1033131?v=3","gravatar_id":"","url":"https://api.github.com/users/eLBati","html_url":"https://github.com/eLBati","followers_url":"https://api.github.com/users/eLBati/followers","following_url":"https://api.github.com/users/eLBati/following{/other_user}","gists_url":"https://api.github.com/users/eLBati/gists{/gist_id}","starred_url":"https://api.github.com/users/eLBati/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eLBati/subscriptions","organizations_url":"https://api.github.com/users/eLBati/orgs","repos_url":"https://api.github.com/users/eLBati/repos","events_url":"https://api.github.com/users/eLBati/events{/privacy}","received_events_url":"https://api.github.com/users/eLBati/received_events","type":"User","site_admin":false},"body":"@angedras right. I noticed it yesterday.\r\nMorevoer, due to https://github.com/archetipo/l10n-italy/pull/19#issuecomment-78243311 this branch should be deleted and a new one created","created_at":"2015-03-11T13:55:01Z","updated_at":"2015-03-11T13:55:01Z","html_url":"https://github.com/archetipo/l10n-italy/pull/19#discussion_r26213125","pull_request_url":"https://api.github.com/repos/archetipo/l10n-italy/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/archetipo/l10n-italy/pulls/comments/26213125"},"html":{"href":"https://github.com/archetipo/l10n-italy/pull/19#discussion_r26213125"},"pull_request":{"href":"https://api.github.com/repos/archetipo/l10n-italy/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/archetipo/l10n-italy/pulls/19","id":30646402,"html_url":"https://github.com/archetipo/l10n-italy/pull/19","diff_url":"https://github.com/archetipo/l10n-italy/pull/19.diff","patch_url":"https://github.com/archetipo/l10n-italy/pull/19.patch","issue_url":"https://api.github.com/repos/archetipo/l10n-italy/issues/19","number":19,"state":"open","locked":false,"title":"[FIX] daticert_dict['message_id'] != msg_dict['message_id']","user":{"login":"archetipo","id":5037557,"avatar_url":"https://avatars.githubusercontent.com/u/5037557?v=3","gravatar_id":"","url":"https://api.github.com/users/archetipo","html_url":"https://github.com/archetipo","followers_url":"https://api.github.com/users/archetipo/followers","following_url":"https://api.github.com/users/archetipo/following{/other_user}","gists_url":"https://api.github.com/users/archetipo/gists{/gist_id}","starred_url":"https://api.github.com/users/archetipo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archetipo/subscriptions","organizations_url":"https://api.github.com/users/archetipo/orgs","repos_url":"https://api.github.com/users/archetipo/repos","events_url":"https://api.github.com/users/archetipo/events{/privacy}","received_events_url":"https://api.github.com/users/archetipo/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-06T14:00:57Z","updated_at":"2015-03-11T13:55:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4f7efa9c64c444858b06fe0134a22b26a5cedb13","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/archetipo/l10n-italy/pulls/19/commits","review_comments_url":"https://api.github.com/repos/archetipo/l10n-italy/pulls/19/comments","review_comment_url":"https://api.github.com/repos/archetipo/l10n-italy/pulls/comments{/number}","comments_url":"https://api.github.com/repos/archetipo/l10n-italy/issues/19/comments","statuses_url":"https://api.github.com/repos/archetipo/l10n-italy/statuses/106cb960fb635c594042294a1620b0d9a2213d49","head":{"label":"archetipo:fix_msgid_daticertmsgid","ref":"fix_msgid_daticertmsgid","sha":"106cb960fb635c594042294a1620b0d9a2213d49","user":{"login":"archetipo","id":5037557,"avatar_url":"https://avatars.githubusercontent.com/u/5037557?v=3","gravatar_id":"","url":"https://api.github.com/users/archetipo","html_url":"https://github.com/archetipo","followers_url":"https://api.github.com/users/archetipo/followers","following_url":"https://api.github.com/users/archetipo/following{/other_user}","gists_url":"https://api.github.com/users/archetipo/gists{/gist_id}","starred_url":"https://api.github.com/users/archetipo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archetipo/subscriptions","organizations_url":"https://api.github.com/users/archetipo/orgs","repos_url":"https://api.github.com/users/archetipo/repos","events_url":"https://api.github.com/users/archetipo/events{/privacy}","received_events_url":"https://api.github.com/users/archetipo/received_events","type":"User","site_admin":false},"repo":{"id":26489119,"name":"l10n-italy","full_name":"archetipo/l10n-italy","owner":{"login":"archetipo","id":5037557,"avatar_url":"https://avatars.githubusercontent.com/u/5037557?v=3","gravatar_id":"","url":"https://api.github.com/users/archetipo","html_url":"https://github.com/archetipo","followers_url":"https://api.github.com/users/archetipo/followers","following_url":"https://api.github.com/users/archetipo/following{/other_user}","gists_url":"https://api.github.com/users/archetipo/gists{/gist_id}","starred_url":"https://api.github.com/users/archetipo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archetipo/subscriptions","organizations_url":"https://api.github.com/users/archetipo/orgs","repos_url":"https://api.github.com/users/archetipo/repos","events_url":"https://api.github.com/users/archetipo/events{/privacy}","received_events_url":"https://api.github.com/users/archetipo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/archetipo/l10n-italy","description":"","fork":true,"url":"https://api.github.com/repos/archetipo/l10n-italy","forks_url":"https://api.github.com/repos/archetipo/l10n-italy/forks","keys_url":"https://api.github.com/repos/archetipo/l10n-italy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/archetipo/l10n-italy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/archetipo/l10n-italy/teams","hooks_url":"https://api.github.com/repos/archetipo/l10n-italy/hooks","issue_events_url":"https://api.github.com/repos/archetipo/l10n-italy/issues/events{/number}","events_url":"https://api.github.com/repos/archetipo/l10n-italy/events","assignees_url":"https://api.github.com/repos/archetipo/l10n-italy/assignees{/user}","branches_url":"https://api.github.com/repos/archetipo/l10n-italy/branches{/branch}","tags_url":"https://api.github.com/repos/archetipo/l10n-italy/tags","blobs_url":"https://api.github.com/repos/archetipo/l10n-italy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/archetipo/l10n-italy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/archetipo/l10n-italy/git/refs{/sha}","trees_url":"https://api.github.com/repos/archetipo/l10n-italy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/archetipo/l10n-italy/statuses/{sha}","languages_url":"https://api.github.com/repos/archetipo/l10n-italy/languages","stargazers_url":"https://api.github.com/repos/archetipo/l10n-italy/stargazers","contributors_url":"https://api.github.com/repos/archetipo/l10n-italy/contributors","subscribers_url":"https://api.github.com/repos/archetipo/l10n-italy/subscribers","subscription_url":"https://api.github.com/repos/archetipo/l10n-italy/subscription","commits_url":"https://api.github.com/repos/archetipo/l10n-italy/commits{/sha}","git_commits_url":"https://api.github.com/repos/archetipo/l10n-italy/git/commits{/sha}","comments_url":"https://api.github.com/repos/archetipo/l10n-italy/comments{/number}","issue_comment_url":"https://api.github.com/repos/archetipo/l10n-italy/issues/comments{/number}","contents_url":"https://api.github.com/repos/archetipo/l10n-italy/contents/{+path}","compare_url":"https://api.github.com/repos/archetipo/l10n-italy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/archetipo/l10n-italy/merges","archive_url":"https://api.github.com/repos/archetipo/l10n-italy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/archetipo/l10n-italy/downloads","issues_url":"https://api.github.com/repos/archetipo/l10n-italy/issues{/number}","pulls_url":"https://api.github.com/repos/archetipo/l10n-italy/pulls{/number}","milestones_url":"https://api.github.com/repos/archetipo/l10n-italy/milestones{/number}","notifications_url":"https://api.github.com/repos/archetipo/l10n-italy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/archetipo/l10n-italy/labels{/name}","releases_url":"https://api.github.com/repos/archetipo/l10n-italy/releases{/id}","created_at":"2014-11-11T14:45:22Z","updated_at":"2015-03-10T08:02:48Z","pushed_at":"2015-03-10T16:01:56Z","git_url":"git://github.com/archetipo/l10n-italy.git","ssh_url":"git@github.com:archetipo/l10n-italy.git","clone_url":"https://github.com/archetipo/l10n-italy.git","svn_url":"https://github.com/archetipo/l10n-italy","homepage":null,"size":4364,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"7.0"}},"base":{"label":"archetipo:7.0","ref":"7.0","sha":"163ef511e268036e5a2f62f25faeb1f31f123ab5","user":{"login":"archetipo","id":5037557,"avatar_url":"https://avatars.githubusercontent.com/u/5037557?v=3","gravatar_id":"","url":"https://api.github.com/users/archetipo","html_url":"https://github.com/archetipo","followers_url":"https://api.github.com/users/archetipo/followers","following_url":"https://api.github.com/users/archetipo/following{/other_user}","gists_url":"https://api.github.com/users/archetipo/gists{/gist_id}","starred_url":"https://api.github.com/users/archetipo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archetipo/subscriptions","organizations_url":"https://api.github.com/users/archetipo/orgs","repos_url":"https://api.github.com/users/archetipo/repos","events_url":"https://api.github.com/users/archetipo/events{/privacy}","received_events_url":"https://api.github.com/users/archetipo/received_events","type":"User","site_admin":false},"repo":{"id":26489119,"name":"l10n-italy","full_name":"archetipo/l10n-italy","owner":{"login":"archetipo","id":5037557,"avatar_url":"https://avatars.githubusercontent.com/u/5037557?v=3","gravatar_id":"","url":"https://api.github.com/users/archetipo","html_url":"https://github.com/archetipo","followers_url":"https://api.github.com/users/archetipo/followers","following_url":"https://api.github.com/users/archetipo/following{/other_user}","gists_url":"https://api.github.com/users/archetipo/gists{/gist_id}","starred_url":"https://api.github.com/users/archetipo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/archetipo/subscriptions","organizations_url":"https://api.github.com/users/archetipo/orgs","repos_url":"https://api.github.com/users/archetipo/repos","events_url":"https://api.github.com/users/archetipo/events{/privacy}","received_events_url":"https://api.github.com/users/archetipo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/archetipo/l10n-italy","description":"","fork":true,"url":"https://api.github.com/repos/archetipo/l10n-italy","forks_url":"https://api.github.com/repos/archetipo/l10n-italy/forks","keys_url":"https://api.github.com/repos/archetipo/l10n-italy/keys{/key_id}","collaborators_url":"https://api.github.com/repos/archetipo/l10n-italy/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/archetipo/l10n-italy/teams","hooks_url":"https://api.github.com/repos/archetipo/l10n-italy/hooks","issue_events_url":"https://api.github.com/repos/archetipo/l10n-italy/issues/events{/number}","events_url":"https://api.github.com/repos/archetipo/l10n-italy/events","assignees_url":"https://api.github.com/repos/archetipo/l10n-italy/assignees{/user}","branches_url":"https://api.github.com/repos/archetipo/l10n-italy/branches{/branch}","tags_url":"https://api.github.com/repos/archetipo/l10n-italy/tags","blobs_url":"https://api.github.com/repos/archetipo/l10n-italy/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/archetipo/l10n-italy/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/archetipo/l10n-italy/git/refs{/sha}","trees_url":"https://api.github.com/repos/archetipo/l10n-italy/git/trees{/sha}","statuses_url":"https://api.github.com/repos/archetipo/l10n-italy/statuses/{sha}","languages_url":"https://api.github.com/repos/archetipo/l10n-italy/languages","stargazers_url":"https://api.github.com/repos/archetipo/l10n-italy/stargazers","contributors_url":"https://api.github.com/repos/archetipo/l10n-italy/contributors","subscribers_url":"https://api.github.com/repos/archetipo/l10n-italy/subscribers","subscription_url":"https://api.github.com/repos/archetipo/l10n-italy/subscription","commits_url":"https://api.github.com/repos/archetipo/l10n-italy/commits{/sha}","git_commits_url":"https://api.github.com/repos/archetipo/l10n-italy/git/commits{/sha}","comments_url":"https://api.github.com/repos/archetipo/l10n-italy/comments{/number}","issue_comment_url":"https://api.github.com/repos/archetipo/l10n-italy/issues/comments{/number}","contents_url":"https://api.github.com/repos/archetipo/l10n-italy/contents/{+path}","compare_url":"https://api.github.com/repos/archetipo/l10n-italy/compare/{base}...{head}","merges_url":"https://api.github.com/repos/archetipo/l10n-italy/merges","archive_url":"https://api.github.com/repos/archetipo/l10n-italy/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/archetipo/l10n-italy/downloads","issues_url":"https://api.github.com/repos/archetipo/l10n-italy/issues{/number}","pulls_url":"https://api.github.com/repos/archetipo/l10n-italy/pulls{/number}","milestones_url":"https://api.github.com/repos/archetipo/l10n-italy/milestones{/number}","notifications_url":"https://api.github.com/repos/archetipo/l10n-italy/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/archetipo/l10n-italy/labels{/name}","releases_url":"https://api.github.com/repos/archetipo/l10n-italy/releases{/id}","created_at":"2014-11-11T14:45:22Z","updated_at":"2015-03-10T08:02:48Z","pushed_at":"2015-03-10T16:01:56Z","git_url":"git://github.com/archetipo/l10n-italy.git","ssh_url":"git@github.com:archetipo/l10n-italy.git","clone_url":"https://github.com/archetipo/l10n-italy.git","svn_url":"https://github.com/archetipo/l10n-italy","homepage":null,"size":4364,"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":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"7.0"}},"_links":{"self":{"href":"https://api.github.com/repos/archetipo/l10n-italy/pulls/19"},"html":{"href":"https://github.com/archetipo/l10n-italy/pull/19"},"issue":{"href":"https://api.github.com/repos/archetipo/l10n-italy/issues/19"},"comments":{"href":"https://api.github.com/repos/archetipo/l10n-italy/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/archetipo/l10n-italy/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/archetipo/l10n-italy/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/archetipo/l10n-italy/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/archetipo/l10n-italy/statuses/106cb960fb635c594042294a1620b0d9a2213d49"}}}}