{"action":"created","issue":{"url":"https://api.github.com/repos/Tiny-Hands/tinyhands-client/issues/234","repository_url":"https://api.github.com/repos/Tiny-Hands/tinyhands-client","labels_url":"https://api.github.com/repos/Tiny-Hands/tinyhands-client/issues/234/labels{/name}","comments_url":"https://api.github.com/repos/Tiny-Hands/tinyhands-client/issues/234/comments","events_url":"https://api.github.com/repos/Tiny-Hands/tinyhands-client/issues/234/events","html_url":"https://github.com/Tiny-Hands/tinyhands-client/issues/234","id":285050331,"number":234,"title":"Expansion Country Individual Account Permissions","user":{"login":"amunn33","id":7903547,"avatar_url":"https://avatars0.githubusercontent.com/u/7903547?v=4","gravatar_id":"","url":"https://api.github.com/users/amunn33","html_url":"https://github.com/amunn33","followers_url":"https://api.github.com/users/amunn33/followers","following_url":"https://api.github.com/users/amunn33/following{/other_user}","gists_url":"https://api.github.com/users/amunn33/gists{/gist_id}","starred_url":"https://api.github.com/users/amunn33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amunn33/subscriptions","organizations_url":"https://api.github.com/users/amunn33/orgs","repos_url":"https://api.github.com/users/amunn33/repos","events_url":"https://api.github.com/users/amunn33/events{/privacy}","received_events_url":"https://api.github.com/users/amunn33/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-12-29T07:56:23Z","updated_at":"2018-01-01T15:53:21Z","closed_at":null,"author_association":"COLLABORATOR","body":"# Goal\r\nCreate interface to display and manipulate permissions set up on [backend](https://github.com/Tiny-Hands/tinyhands/issues/372).\r\n\r\n# Details\r\n- Country list should get populated by the country table\r\n- Once country is selected (other than all), station list should be visible and populated by station table (filtering only those associated with selected country)\r\n- Update should be required on each page instead of allowing user to switch between permission type (IRF/VIF/Budget, etc.) and location while requiring front-end to keep track of changes.\r\n- Permissions should cascade down. If user has budget add permission for \"Nepal\" \"All\" then when selecting \"Nepal\" \"Birgunj\", the budget add permission should be shown.\r\n- Controller should receive a list containing all of the users permissions along with all countries and all stations so that when changing values in the locations drop downs, the user's permissions for that permission group/location would be displayed.\r\n\r\n# Questions\r\n- Related to cascading permissions, should removing a permission at a more granular level be disabled? (i.e. If a user has budget add permission for all of Nepal, should removing it for a specific station in Nepal be disabled?)\r\n- Should general account info (email, first/last name, designation) be it's own tab/permission group instead of  a constant part of the page?\r\n- Should permissions have a \"granularity\" attribute whereby you could decide whether or not a permission can be controlled at a country or station level? For example, the email notifications would only need to go down to a country-based level and allowing station-based granularity would add some unnecessary complications for the permission-checking on that feature. Budget permissions would be another set of permissions that wouldn't require station-specific access. (This affects front & back-end)\r\n# Pictures\r\n\r\n#### User with all IRF permission for all countries\r\n![account1](https://user-images.githubusercontent.com/7903547/34432312-4603bb86-ec9e-11e7-8511-b0428544dd4e.png)\r\n\r\n#### User with all IRF permissions for Nepal\r\n![account2](https://user-images.githubusercontent.com/7903547/34432402-eb589d90-ec9e-11e7-9abc-96dadd7e9939.png)\r\n\r\n#### User with view IRF permission for South Africa\r\n![account3](https://user-images.githubusercontent.com/7903547/34432403-ebfbbcf0-ec9e-11e7-9f0d-3757cf6a15a6.png)\r\n\r\n#### User with view and add permission for single station in Nepal\r\n![account4](https://user-images.githubusercontent.com/7903547/34432404-ec9beb9e-ec9e-11e7-8f50-63717c58f30d.png)\r\n\r\n#### User with view permission for all stations in Nepal. \r\nIn this case even though the \"All Nepal\" IRF add permission says no, because the user has IRF add permission for a specific station in Nepal, they would be able to enter IRFs for that station.\r\n\r\n![account5](https://user-images.githubusercontent.com/7903547/34432405-ed42f39e-ec9e-11e7-8cbd-a57164c70412.png)\r\n\r\n#### User without any budget permissions for their own station\r\n![account6](https://user-images.githubusercontent.com/7903547/34432406-edcf11d0-ec9e-11e7-9202-18c1b45fb8c8.png)\r\n\r\n#### User receiving investigative and legal alerts for Nepal\r\n![account7](https://user-images.githubusercontent.com/7903547/34432407-ee64f308-ec9e-11e7-8411-405dead95e8c.png)\r\n"},"comment":{"url":"https://api.github.com/repos/Tiny-Hands/tinyhands-client/issues/comments/354660184","html_url":"https://github.com/Tiny-Hands/tinyhands-client/issues/234#issuecomment-354660184","issue_url":"https://api.github.com/repos/Tiny-Hands/tinyhands-client/issues/234","id":354660184,"user":{"login":"scrishel","id":12170592,"avatar_url":"https://avatars2.githubusercontent.com/u/12170592?v=4","gravatar_id":"","url":"https://api.github.com/users/scrishel","html_url":"https://github.com/scrishel","followers_url":"https://api.github.com/users/scrishel/followers","following_url":"https://api.github.com/users/scrishel/following{/other_user}","gists_url":"https://api.github.com/users/scrishel/gists{/gist_id}","starred_url":"https://api.github.com/users/scrishel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scrishel/subscriptions","organizations_url":"https://api.github.com/users/scrishel/orgs","repos_url":"https://api.github.com/users/scrishel/repos","events_url":"https://api.github.com/users/scrishel/events{/privacy}","received_events_url":"https://api.github.com/users/scrishel/received_events","type":"User","site_admin":false},"created_at":"2018-01-01T15:53:21Z","updated_at":"2018-01-01T15:53:21Z","author_association":"NONE","body":"For the multi-select button, are you thinking of something like the following?\r\n![image](https://user-images.githubusercontent.com/12170592/34468951-f84e71c4-eee1-11e7-8103-118df01c8a01.png)\r\n\r\n"}}
{"actor":{"display_login":"scrishel"}}