{"action":"closed","number":831,"pull_request":{"url":"https://api.github.com/repos/senaite/senaite.core/pulls/831","id":189231303,"html_url":"https://github.com/senaite/senaite.core/pull/831","diff_url":"https://github.com/senaite/senaite.core/pull/831.diff","patch_url":"https://github.com/senaite/senaite.core/pull/831.patch","issue_url":"https://api.github.com/repos/senaite/senaite.core/issues/831","number":831,"state":"closed","locked":false,"title":"Do not retract the whole AR when new analysis is added","user":{"login":"xispa","id":832627,"avatar_url":"https://avatars2.githubusercontent.com/u/832627?v=4","gravatar_id":"","url":"https://api.github.com/users/xispa","html_url":"https://github.com/xispa","followers_url":"https://api.github.com/users/xispa/followers","following_url":"https://api.github.com/users/xispa/following{/other_user}","gists_url":"https://api.github.com/users/xispa/gists{/gist_id}","starred_url":"https://api.github.com/users/xispa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xispa/subscriptions","organizations_url":"https://api.github.com/users/xispa/orgs","repos_url":"https://api.github.com/users/xispa/repos","events_url":"https://api.github.com/users/xispa/events{/privacy}","received_events_url":"https://api.github.com/users/xispa/received_events","type":"User","site_admin":false},"body":"## Description of the issue/feature this PR addresses\r\n\r\nLinked issue: https://github.com/senaite/senaite.core/issues/821\r\n\r\n## Current behavior before PR\r\n\r\nThe addition of a new analysis to an Analysis Request in `to_be_verified` state causes the retraction of all analyses it contains.\r\n\r\n## Desired behavior after PR is merged\r\n\r\nWhen a new Analysis is added to an AR that is in 'to_be_verified' state, the AR is rolled-back to `sample_received`, but without cascading the `retract` action to all analyses it contains.\r\n\r\n--\r\nI confirm I have tested this PR thoroughly and coded it according to [PEP8][1]\r\nand [Plone's Python styleguide][2] standards.\r\n\r\n[1]: https://www.python.org/dev/peps/pep-0008\r\n[2]: https://docs.plone.org/develop/styleguide/python.html\r\n","created_at":"2018-05-20T12:13:33Z","updated_at":"2018-05-21T09:39:04Z","closed_at":"2018-05-21T09:39:04Z","merged_at":"2018-05-21T09:39:04Z","merge_commit_sha":"e307e1efbf3ab1416ff34226f6e370838f8d4937","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":326958054,"url":"https://api.github.com/repos/senaite/senaite.core/labels/Bug","name":"Bug","color":"b60205","default":false},{"id":814034962,"url":"https://api.github.com/repos/senaite/senaite.core/labels/P0:%20Critical","name":"P0: Critical","color":"b60205","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/senaite/senaite.core/pulls/831/commits","review_comments_url":"https://api.github.com/repos/senaite/senaite.core/pulls/831/comments","review_comment_url":"https://api.github.com/repos/senaite/senaite.core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/senaite/senaite.core/issues/831/comments","statuses_url":"https://api.github.com/repos/senaite/senaite.core/statuses/5abe83ef8246ea051994a5dd2760e2672f864cde","head":{"label":"senaite:i821","ref":"i821","sha":"5abe83ef8246ea051994a5dd2760e2672f864cde","user":{"login":"senaite","id":29165573,"avatar_url":"https://avatars1.githubusercontent.com/u/29165573?v=4","gravatar_id":"","url":"https://api.github.com/users/senaite","html_url":"https://github.com/senaite","followers_url":"https://api.github.com/users/senaite/followers","following_url":"https://api.github.com/users/senaite/following{/other_user}","gists_url":"https://api.github.com/users/senaite/gists{/gist_id}","starred_url":"https://api.github.com/users/senaite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senaite/subscriptions","organizations_url":"https://api.github.com/users/senaite/orgs","repos_url":"https://api.github.com/users/senaite/repos","events_url":"https://api.github.com/users/senaite/events{/privacy}","received_events_url":"https://api.github.com/users/senaite/received_events","type":"Organization","site_admin":false},"repo":{"id":51839640,"name":"senaite.core","full_name":"senaite/senaite.core","owner":{"login":"senaite","id":29165573,"avatar_url":"https://avatars1.githubusercontent.com/u/29165573?v=4","gravatar_id":"","url":"https://api.github.com/users/senaite","html_url":"https://github.com/senaite","followers_url":"https://api.github.com/users/senaite/followers","following_url":"https://api.github.com/users/senaite/following{/other_user}","gists_url":"https://api.github.com/users/senaite/gists{/gist_id}","starred_url":"https://api.github.com/users/senaite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senaite/subscriptions","organizations_url":"https://api.github.com/users/senaite/orgs","repos_url":"https://api.github.com/users/senaite/repos","events_url":"https://api.github.com/users/senaite/events{/privacy}","received_events_url":"https://api.github.com/users/senaite/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/senaite/senaite.core","description":"The heart of SENAITE.LIMS, the evolution of Bika LIMS","fork":false,"url":"https://api.github.com/repos/senaite/senaite.core","forks_url":"https://api.github.com/repos/senaite/senaite.core/forks","keys_url":"https://api.github.com/repos/senaite/senaite.core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/senaite/senaite.core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/senaite/senaite.core/teams","hooks_url":"https://api.github.com/repos/senaite/senaite.core/hooks","issue_events_url":"https://api.github.com/repos/senaite/senaite.core/issues/events{/number}","events_url":"https://api.github.com/repos/senaite/senaite.core/events","assignees_url":"https://api.github.com/repos/senaite/senaite.core/assignees{/user}","branches_url":"https://api.github.com/repos/senaite/senaite.core/branches{/branch}","tags_url":"https://api.github.com/repos/senaite/senaite.core/tags","blobs_url":"https://api.github.com/repos/senaite/senaite.core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/senaite/senaite.core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/senaite/senaite.core/git/refs{/sha}","trees_url":"https://api.github.com/repos/senaite/senaite.core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/senaite/senaite.core/statuses/{sha}","languages_url":"https://api.github.com/repos/senaite/senaite.core/languages","stargazers_url":"https://api.github.com/repos/senaite/senaite.core/stargazers","contributors_url":"https://api.github.com/repos/senaite/senaite.core/contributors","subscribers_url":"https://api.github.com/repos/senaite/senaite.core/subscribers","subscription_url":"https://api.github.com/repos/senaite/senaite.core/subscription","commits_url":"https://api.github.com/repos/senaite/senaite.core/commits{/sha}","git_commits_url":"https://api.github.com/repos/senaite/senaite.core/git/commits{/sha}","comments_url":"https://api.github.com/repos/senaite/senaite.core/comments{/number}","issue_comment_url":"https://api.github.com/repos/senaite/senaite.core/issues/comments{/number}","contents_url":"https://api.github.com/repos/senaite/senaite.core/contents/{+path}","compare_url":"https://api.github.com/repos/senaite/senaite.core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/senaite/senaite.core/merges","archive_url":"https://api.github.com/repos/senaite/senaite.core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/senaite/senaite.core/downloads","issues_url":"https://api.github.com/repos/senaite/senaite.core/issues{/number}","pulls_url":"https://api.github.com/repos/senaite/senaite.core/pulls{/number}","milestones_url":"https://api.github.com/repos/senaite/senaite.core/milestones{/number}","notifications_url":"https://api.github.com/repos/senaite/senaite.core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/senaite/senaite.core/labels{/name}","releases_url":"https://api.github.com/repos/senaite/senaite.core/releases{/id}","deployments_url":"https://api.github.com/repos/senaite/senaite.core/deployments","created_at":"2016-02-16T13:57:26Z","updated_at":"2018-05-18T22:02:12Z","pushed_at":"2018-05-21T09:39:04Z","git_url":"git://github.com/senaite/senaite.core.git","ssh_url":"git@github.com:senaite/senaite.core.git","clone_url":"https://github.com/senaite/senaite.core.git","svn_url":"https://github.com/senaite/senaite.core","homepage":"https://senaite.com","size":66117,"stargazers_count":18,"watchers_count":18,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":73,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":15,"open_issues":73,"watchers":18,"default_branch":"master"}},"base":{"label":"senaite:master","ref":"master","sha":"cbef1aff9c07493430bbad1a8805ccda92426586","user":{"login":"senaite","id":29165573,"avatar_url":"https://avatars1.githubusercontent.com/u/29165573?v=4","gravatar_id":"","url":"https://api.github.com/users/senaite","html_url":"https://github.com/senaite","followers_url":"https://api.github.com/users/senaite/followers","following_url":"https://api.github.com/users/senaite/following{/other_user}","gists_url":"https://api.github.com/users/senaite/gists{/gist_id}","starred_url":"https://api.github.com/users/senaite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senaite/subscriptions","organizations_url":"https://api.github.com/users/senaite/orgs","repos_url":"https://api.github.com/users/senaite/repos","events_url":"https://api.github.com/users/senaite/events{/privacy}","received_events_url":"https://api.github.com/users/senaite/received_events","type":"Organization","site_admin":false},"repo":{"id":51839640,"name":"senaite.core","full_name":"senaite/senaite.core","owner":{"login":"senaite","id":29165573,"avatar_url":"https://avatars1.githubusercontent.com/u/29165573?v=4","gravatar_id":"","url":"https://api.github.com/users/senaite","html_url":"https://github.com/senaite","followers_url":"https://api.github.com/users/senaite/followers","following_url":"https://api.github.com/users/senaite/following{/other_user}","gists_url":"https://api.github.com/users/senaite/gists{/gist_id}","starred_url":"https://api.github.com/users/senaite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/senaite/subscriptions","organizations_url":"https://api.github.com/users/senaite/orgs","repos_url":"https://api.github.com/users/senaite/repos","events_url":"https://api.github.com/users/senaite/events{/privacy}","received_events_url":"https://api.github.com/users/senaite/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/senaite/senaite.core","description":"The heart of SENAITE.LIMS, the evolution of Bika LIMS","fork":false,"url":"https://api.github.com/repos/senaite/senaite.core","forks_url":"https://api.github.com/repos/senaite/senaite.core/forks","keys_url":"https://api.github.com/repos/senaite/senaite.core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/senaite/senaite.core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/senaite/senaite.core/teams","hooks_url":"https://api.github.com/repos/senaite/senaite.core/hooks","issue_events_url":"https://api.github.com/repos/senaite/senaite.core/issues/events{/number}","events_url":"https://api.github.com/repos/senaite/senaite.core/events","assignees_url":"https://api.github.com/repos/senaite/senaite.core/assignees{/user}","branches_url":"https://api.github.com/repos/senaite/senaite.core/branches{/branch}","tags_url":"https://api.github.com/repos/senaite/senaite.core/tags","blobs_url":"https://api.github.com/repos/senaite/senaite.core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/senaite/senaite.core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/senaite/senaite.core/git/refs{/sha}","trees_url":"https://api.github.com/repos/senaite/senaite.core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/senaite/senaite.core/statuses/{sha}","languages_url":"https://api.github.com/repos/senaite/senaite.core/languages","stargazers_url":"https://api.github.com/repos/senaite/senaite.core/stargazers","contributors_url":"https://api.github.com/repos/senaite/senaite.core/contributors","subscribers_url":"https://api.github.com/repos/senaite/senaite.core/subscribers","subscription_url":"https://api.github.com/repos/senaite/senaite.core/subscription","commits_url":"https://api.github.com/repos/senaite/senaite.core/commits{/sha}","git_commits_url":"https://api.github.com/repos/senaite/senaite.core/git/commits{/sha}","comments_url":"https://api.github.com/repos/senaite/senaite.core/comments{/number}","issue_comment_url":"https://api.github.com/repos/senaite/senaite.core/issues/comments{/number}","contents_url":"https://api.github.com/repos/senaite/senaite.core/contents/{+path}","compare_url":"https://api.github.com/repos/senaite/senaite.core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/senaite/senaite.core/merges","archive_url":"https://api.github.com/repos/senaite/senaite.core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/senaite/senaite.core/downloads","issues_url":"https://api.github.com/repos/senaite/senaite.core/issues{/number}","pulls_url":"https://api.github.com/repos/senaite/senaite.core/pulls{/number}","milestones_url":"https://api.github.com/repos/senaite/senaite.core/milestones{/number}","notifications_url":"https://api.github.com/repos/senaite/senaite.core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/senaite/senaite.core/labels{/name}","releases_url":"https://api.github.com/repos/senaite/senaite.core/releases{/id}","deployments_url":"https://api.github.com/repos/senaite/senaite.core/deployments","created_at":"2016-02-16T13:57:26Z","updated_at":"2018-05-18T22:02:12Z","pushed_at":"2018-05-21T09:39:04Z","git_url":"git://github.com/senaite/senaite.core.git","ssh_url":"git@github.com:senaite/senaite.core.git","clone_url":"https://github.com/senaite/senaite.core.git","svn_url":"https://github.com/senaite/senaite.core","homepage":"https://senaite.com","size":66117,"stargazers_count":18,"watchers_count":18,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":15,"mirror_url":null,"archived":false,"open_issues_count":73,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":15,"open_issues":73,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/senaite/senaite.core/pulls/831"},"html":{"href":"https://github.com/senaite/senaite.core/pull/831"},"issue":{"href":"https://api.github.com/repos/senaite/senaite.core/issues/831"},"comments":{"href":"https://api.github.com/repos/senaite/senaite.core/issues/831/comments"},"review_comments":{"href":"https://api.github.com/repos/senaite/senaite.core/pulls/831/comments"},"review_comment":{"href":"https://api.github.com/repos/senaite/senaite.core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/senaite/senaite.core/pulls/831/commits"},"statuses":{"href":"https://api.github.com/repos/senaite/senaite.core/statuses/5abe83ef8246ea051994a5dd2760e2672f864cde"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"ramonski","id":713193,"avatar_url":"https://avatars2.githubusercontent.com/u/713193?v=4","gravatar_id":"","url":"https://api.github.com/users/ramonski","html_url":"https://github.com/ramonski","followers_url":"https://api.github.com/users/ramonski/followers","following_url":"https://api.github.com/users/ramonski/following{/other_user}","gists_url":"https://api.github.com/users/ramonski/gists{/gist_id}","starred_url":"https://api.github.com/users/ramonski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramonski/subscriptions","organizations_url":"https://api.github.com/users/ramonski/orgs","repos_url":"https://api.github.com/users/ramonski/repos","events_url":"https://api.github.com/users/ramonski/events{/privacy}","received_events_url":"https://api.github.com/users/ramonski/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":2,"deletions":5,"changed_files":2}}
{"actor":{"display_login":"ramonski"}}