{"action":"created","issue":{"url":"https://api.github.com/repos/biocore/qiita/issues/900","labels_url":"https://api.github.com/repos/biocore/qiita/issues/900/labels{/name}","comments_url":"https://api.github.com/repos/biocore/qiita/issues/900/comments","events_url":"https://api.github.com/repos/biocore/qiita/issues/900/events","html_url":"https://github.com/biocore/qiita/pull/900","id":59849849,"number":900,"title":"Issue 855","user":{"login":"josenavas","id":2501478,"avatar_url":"https://avatars.githubusercontent.com/u/2501478?v=3","gravatar_id":"","url":"https://api.github.com/users/josenavas","html_url":"https://github.com/josenavas","followers_url":"https://api.github.com/users/josenavas/followers","following_url":"https://api.github.com/users/josenavas/following{/other_user}","gists_url":"https://api.github.com/users/josenavas/gists{/gist_id}","starred_url":"https://api.github.com/users/josenavas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josenavas/subscriptions","organizations_url":"https://api.github.com/users/josenavas/orgs","repos_url":"https://api.github.com/users/josenavas/repos","events_url":"https://api.github.com/users/josenavas/events{/privacy}","received_events_url":"https://api.github.com/users/josenavas/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/biocore/qiita/labels/database%20changes","name":"database changes","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-04T19:38:45Z","updated_at":"2015-03-19T19:44:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/biocore/qiita/pulls/900","html_url":"https://github.com/biocore/qiita/pull/900","diff_url":"https://github.com/biocore/qiita/pull/900.diff","patch_url":"https://github.com/biocore/qiita/pull/900.patch"},"body":":feelsgood::feelsgood::feelsgood::feelsgood:\r\n\r\nFixes #855 \r\n\r\nI've moved the status column from the study object to the processed data and now the status of the study is inferred by the status of its processed data.\r\n\r\nI've all the tests passing (at least on my machine) but I don't think the functionality is currently consistent!\r\n\r\nThe issue is that the metadata pipeline will show all the processed data for a given study, even if a given processed data is not public... Since this PR is making a deep change in the db structure and has impacts in a lot of parts of the codebase; I think the most secure way of moving this forward is making a PR so people can download the PR and check different contexts, in case that I missed something.\r\n\r\nMissing things (that I can think of - please add as needed):\r\n- [x] Modify interface so the `make public / revert to sandbox / etc` buttons are in per processed data basis.\r\n- [ ] The meta-analysis pipeline should only show the processed data that is public or that the user is the owner (see https://github.com/biocore/qiita/issues/1005)\r\n- [x] If accessing a public study, the study description page should only show the public raw and (pre)processed data from the public processed data.\r\n- [x] The studies awaiting approval page for admins should show which processed data is awaiting approval."},"comment":{"url":"https://api.github.com/repos/biocore/qiita/issues/comments/83736209","html_url":"https://github.com/biocore/qiita/pull/900#issuecomment-83736209","issue_url":"https://api.github.com/repos/biocore/qiita/issues/900","id":83736209,"user":{"login":"josenavas","id":2501478,"avatar_url":"https://avatars.githubusercontent.com/u/2501478?v=3","gravatar_id":"","url":"https://api.github.com/users/josenavas","html_url":"https://github.com/josenavas","followers_url":"https://api.github.com/users/josenavas/followers","following_url":"https://api.github.com/users/josenavas/following{/other_user}","gists_url":"https://api.github.com/users/josenavas/gists{/gist_id}","starred_url":"https://api.github.com/users/josenavas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josenavas/subscriptions","organizations_url":"https://api.github.com/users/josenavas/orgs","repos_url":"https://api.github.com/users/josenavas/repos","events_url":"https://api.github.com/users/josenavas/events{/privacy}","received_events_url":"https://api.github.com/users/josenavas/received_events","type":"User","site_admin":false},"created_at":"2015-03-19T19:44:04Z","updated_at":"2015-03-19T19:44:04Z","body":"Added a new issue to keep track of the missing point: https://github.com/biocore/qiita/issues/1005"}}