{"action":"created","issue":{"url":"https://api.github.com/repos/projecthydra/sufia/issues/2966","repository_url":"https://api.github.com/repos/projecthydra/sufia","labels_url":"https://api.github.com/repos/projecthydra/sufia/issues/2966/labels{/name}","comments_url":"https://api.github.com/repos/projecthydra/sufia/issues/2966/comments","events_url":"https://api.github.com/repos/projecthydra/sufia/issues/2966/events","html_url":"https://github.com/projecthydra/sufia/pull/2966","id":194714572,"number":2966,"title":"[WIP] Create Work, Admin set restricts release options","user":{"login":"tdonohue","id":483997,"avatar_url":"https://avatars.githubusercontent.com/u/483997?v=3","gravatar_id":"","url":"https://api.github.com/users/tdonohue","html_url":"https://github.com/tdonohue","followers_url":"https://api.github.com/users/tdonohue/followers","following_url":"https://api.github.com/users/tdonohue/following{/other_user}","gists_url":"https://api.github.com/users/tdonohue/gists{/gist_id}","starred_url":"https://api.github.com/users/tdonohue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdonohue/subscriptions","organizations_url":"https://api.github.com/users/tdonohue/orgs","repos_url":"https://api.github.com/users/tdonohue/repos","events_url":"https://api.github.com/users/tdonohue/events{/privacy}","received_events_url":"https://api.github.com/users/tdonohue/received_events","type":"User","site_admin":false},"labels":[{"id":178718266,"url":"https://api.github.com/repos/projecthydra/sufia/labels/in%20progress","name":"in progress","color":"ededed","default":false},{"id":188993249,"url":"https://api.github.com/repos/projecthydra/sufia/labels/ready%20for%20review","name":"ready for review","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-12-09T22:39:57Z","updated_at":"2016-12-20T16:08:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/projecthydra/sufia/pulls/2966","html_url":"https://github.com/projecthydra/sufia/pull/2966","diff_url":"https://github.com/projecthydra/sufia/pull/2966.diff","patch_url":"https://github.com/projecthydra/sufia/pull/2966.patch"},"body":"Fixes projecthydra-labs/hyku#424\r\n\r\nOn the Create Work screen, based on a selected AdminSet, require or limit the visibility options available.\r\n\r\nThis PR uses the AdminSet Permission Template to auto-select or limit the \"Visibility\" options available to users when creating a new Work. For example, the below screenshot shows selecting an AdminSet that requires all works become public on Dec 25, 2017. \r\n![screenshot](https://cloud.githubusercontent.com/assets/483997/21066863/920451ee-be2d-11e6-85c5-e7914d4dc927.png)\r\n\r\nThis functionality works with Javascript turned on (in which case Javascript limits the options so that invalid ones cannot be selected/chosen). \r\n\r\nHowever, a validator is still needed for situations where Javascript may be turned off (or REST calls are made).  Additionally, all commits need to be squashed.\r\n\r\n@projecthydra/sufia-code-reviewers\r\n"},"comment":{"url":"https://api.github.com/repos/projecthydra/sufia/issues/comments/268283062","html_url":"https://github.com/projecthydra/sufia/pull/2966#issuecomment-268283062","issue_url":"https://api.github.com/repos/projecthydra/sufia/issues/2966","id":268283062,"user":{"login":"tdonohue","id":483997,"avatar_url":"https://avatars.githubusercontent.com/u/483997?v=3","gravatar_id":"","url":"https://api.github.com/users/tdonohue","html_url":"https://github.com/tdonohue","followers_url":"https://api.github.com/users/tdonohue/followers","following_url":"https://api.github.com/users/tdonohue/following{/other_user}","gists_url":"https://api.github.com/users/tdonohue/gists{/gist_id}","starred_url":"https://api.github.com/users/tdonohue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tdonohue/subscriptions","organizations_url":"https://api.github.com/users/tdonohue/orgs","repos_url":"https://api.github.com/users/tdonohue/repos","events_url":"https://api.github.com/users/tdonohue/events{/privacy}","received_events_url":"https://api.github.com/users/tdonohue/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T16:08:00Z","updated_at":"2016-12-20T16:08:00Z","body":"Added `[WIP]` back in the title while I work on some Jasmine tests for the JS code. As a part of that, I'll likely also decompose some of the larger JS methods into more bite-sized chunks."}}
{"actor":{"display_login":"tdonohue"}}