{"action":"closed","issue":{"url":"https://api.github.com/repos/ushahidi/platform/issues/1281","repository_url":"https://api.github.com/repos/ushahidi/platform","labels_url":"https://api.github.com/repos/ushahidi/platform/issues/1281/labels{/name}","comments_url":"https://api.github.com/repos/ushahidi/platform/issues/1281/comments","events_url":"https://api.github.com/repos/ushahidi/platform/issues/1281/events","html_url":"https://github.com/ushahidi/platform/issues/1281","id":163589172,"number":1281,"title":"Feature: Replace \"visible to\" with Published/Under review/Archived","user":{"login":"rjmackay","id":7965,"avatar_url":"https://avatars.githubusercontent.com/u/7965?v=3","gravatar_id":"","url":"https://api.github.com/users/rjmackay","html_url":"https://github.com/rjmackay","followers_url":"https://api.github.com/users/rjmackay/followers","following_url":"https://api.github.com/users/rjmackay/following{/other_user}","gists_url":"https://api.github.com/users/rjmackay/gists{/gist_id}","starred_url":"https://api.github.com/users/rjmackay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjmackay/subscriptions","organizations_url":"https://api.github.com/users/rjmackay/orgs","repos_url":"https://api.github.com/users/rjmackay/repos","events_url":"https://api.github.com/users/rjmackay/events{/privacy}","received_events_url":"https://api.github.com/users/rjmackay/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ushahidi/platform/labels/P1%20-%20Immediate","name":"P1 - Immediate","color":"eb6420"}],"state":"closed","locked":false,"assignee":{"login":"rjmackay","id":7965,"avatar_url":"https://avatars.githubusercontent.com/u/7965?v=3","gravatar_id":"","url":"https://api.github.com/users/rjmackay","html_url":"https://github.com/rjmackay","followers_url":"https://api.github.com/users/rjmackay/followers","following_url":"https://api.github.com/users/rjmackay/following{/other_user}","gists_url":"https://api.github.com/users/rjmackay/gists{/gist_id}","starred_url":"https://api.github.com/users/rjmackay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjmackay/subscriptions","organizations_url":"https://api.github.com/users/rjmackay/orgs","repos_url":"https://api.github.com/users/rjmackay/repos","events_url":"https://api.github.com/users/rjmackay/events{/privacy}","received_events_url":"https://api.github.com/users/rjmackay/received_events","type":"User","site_admin":false},"assignees":[{"login":"rjmackay","id":7965,"avatar_url":"https://avatars.githubusercontent.com/u/7965?v=3","gravatar_id":"","url":"https://api.github.com/users/rjmackay","html_url":"https://github.com/rjmackay","followers_url":"https://api.github.com/users/rjmackay/followers","following_url":"https://api.github.com/users/rjmackay/following{/other_user}","gists_url":"https://api.github.com/users/rjmackay/gists{/gist_id}","starred_url":"https://api.github.com/users/rjmackay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjmackay/subscriptions","organizations_url":"https://api.github.com/users/rjmackay/orgs","repos_url":"https://api.github.com/users/rjmackay/repos","events_url":"https://api.github.com/users/rjmackay/events{/privacy}","received_events_url":"https://api.github.com/users/rjmackay/received_events","type":"User","site_admin":false},{"login":"jshorland","id":3224856,"avatar_url":"https://avatars.githubusercontent.com/u/3224856?v=3","gravatar_id":"","url":"https://api.github.com/users/jshorland","html_url":"https://github.com/jshorland","followers_url":"https://api.github.com/users/jshorland/followers","following_url":"https://api.github.com/users/jshorland/following{/other_user}","gists_url":"https://api.github.com/users/jshorland/gists{/gist_id}","starred_url":"https://api.github.com/users/jshorland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshorland/subscriptions","organizations_url":"https://api.github.com/users/jshorland/orgs","repos_url":"https://api.github.com/users/jshorland/repos","events_url":"https://api.github.com/users/jshorland/events{/privacy}","received_events_url":"https://api.github.com/users/jshorland/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/ushahidi/platform/milestones/21","html_url":"https://github.com/ushahidi/platform/milestones/Sprint%208","labels_url":"https://api.github.com/repos/ushahidi/platform/milestones/21/labels","id":1839372,"number":21,"title":"Sprint 8","description":"August 1 - 30","creator":{"login":"jshorland","id":3224856,"avatar_url":"https://avatars.githubusercontent.com/u/3224856?v=3","gravatar_id":"","url":"https://api.github.com/users/jshorland","html_url":"https://github.com/jshorland","followers_url":"https://api.github.com/users/jshorland/followers","following_url":"https://api.github.com/users/jshorland/following{/other_user}","gists_url":"https://api.github.com/users/jshorland/gists{/gist_id}","starred_url":"https://api.github.com/users/jshorland/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jshorland/subscriptions","organizations_url":"https://api.github.com/users/jshorland/orgs","repos_url":"https://api.github.com/users/jshorland/repos","events_url":"https://api.github.com/users/jshorland/events{/privacy}","received_events_url":"https://api.github.com/users/jshorland/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":11,"state":"open","created_at":"2016-06-20T22:25:47Z","updated_at":"2016-08-27T01:45:32Z","due_on":"2016-07-27T12:00:00Z","closed_at":null},"comments":11,"created_at":"2016-07-04T01:17:41Z","updated_at":"2016-08-27T01:45:32Z","closed_at":"2016-08-27T01:45:31Z","body":"Changes:\r\n- [x] Update post status display with new icons/text \r\n- [x] Update post filters to filter by status, not visible to\r\n- [x] Update post edit with control to set status, remove visibility control\r\n- [x] Add \"Mark as\" dropdown to timeline bulk actions (excluding spam/duplicate)\r\n- [x] Update post actions dropdown to add Put under review/archive/publish options\r\n- [x] Update post detail and post edit layouts\r\n- [x] API: Add \"archived\" status\r\n- [x] API: Migrate posts already published to specific roles??\r\n  - Run data to see how many this is. \r\n  - Possibly push all these posts back into draft and add to a collection for admin review.\r\n\r\nBackground: https://github.com/ushahidi/platform/issues/1263#issuecomment-228464926\r\n\r\n----\r\n\r\nThe idea is basically this: From a user-facing point of view, let's scrap \"Who can see this,\" and instead double down on \"Post status.\" A post that's saved within a deployment is either:\r\n\r\n* Published\r\n* Under review\r\n* Archived\r\n\r\nAny user needs around the fine-tuned visibility of posts will therefore have to be constrained to Role configuration. This effects, well, a lot of screens. But here's the jist of it:\r\n\r\n## Postcards\r\nAnywhere you see a postcard (including as [a map popup](http://github.ushahidi.org/platform-pattern-library/assets/html/5_layouts/map.html), in [the Timeline](http://github.ushahidi.org/platform-pattern-library/assets/html/5_layouts/timeline.html), and [post detail](http://github.ushahidi.org/platform-pattern-library/assets/html/5_layouts/post-detail.html)), you'll see a consistent email-like treatment of its \"status.\"\r\n\r\nExample:\r\n![postcards](https://cloud.githubusercontent.com/assets/1136279/16350397/2018537e-3a24-11e6-889a-a638fa580aff.png)\r\n\r\nIn the top-left of the postcard, a status indicator is displayed with one of the three status icons. If it's \"Under review,\" it glows yellow (similar to an \"unread\" indicator), suggesting it requires attention. Otherwise, it's a subtle icon.\r\n\r\nIf you mouseover it, a short description of the status appears:\r\n\r\n![mouseover](https://cloud.githubusercontent.com/assets/1136279/16350516/ae0da940-3a24-11e6-92a0-135f36e6ac63.png)\r\n\r\nYou can, of course, change a post's status when you edit it. But you can also change its status from:\r\n\r\n1. The listing toolbar:\r\n![listing toolbar](https://cloud.githubusercontent.com/assets/1136279/16350541/e42e8274-3a24-11e6-963a-2b316a92309a.png)\r\n\r\n2. The post's actions dropdown:\r\n![actions dropdown](https://cloud.githubusercontent.com/assets/1136279/16350552/03f0b2c6-3a25-11e6-89ef-36870917cc8b.png)\r\n\r\nThe status-related actions available correspond to the post's current status.\r\n\r\n## [Map](http://github.ushahidi.org/platform-pattern-library/assets/html/5_layouts/map.html) & [Timeline](http://github.ushahidi.org/platform-pattern-library/assets/html/5_layouts/timeline.html)\r\n\r\nThe tools we provide for mashing up the data you're looking are naturally affected by this. \r\n the toolbar's more exhaustive \"Filters\" control also includes this feature:\r\n\r\n![searchbar](https://cloud.githubusercontent.com/assets/1136279/16350664/be221464-3a25-11e6-8a6a-d94510290801.png)\r\n\r\n## [Post edit](http://github.ushahidi.org/platform-pattern-library/assets/html/5_layouts/post-edit.html)\r\n\r\nThe example I've staged also assumes the user can edit the post time (and author). But you can see there's a very visible control there for changing the post's status:\r\n\r\n![post edit](https://cloud.githubusercontent.com/assets/1136279/16395357/03a0e94c-3c7f-11e6-9927-fc23d7c31402.png)"}}
{"actor":{"display_login":"jshorland"}}