{"action":"created","issue":{"url":"https://api.github.com/repos/informatics-isi-edu/chaise/issues/439","repository_url":"https://api.github.com/repos/informatics-isi-edu/chaise","labels_url":"https://api.github.com/repos/informatics-isi-edu/chaise/issues/439/labels{/name}","comments_url":"https://api.github.com/repos/informatics-isi-edu/chaise/issues/439/comments","events_url":"https://api.github.com/repos/informatics-isi-edu/chaise/issues/439/events","html_url":"https://github.com/informatics-isi-edu/chaise/pull/439","id":159260567,"number":439,"title":"Add edit link to record page (#402)","user":{"login":"howdyjessie","id":4585431,"avatar_url":"https://avatars.githubusercontent.com/u/4585431?v=3","gravatar_id":"","url":"https://api.github.com/users/howdyjessie","html_url":"https://github.com/howdyjessie","followers_url":"https://api.github.com/users/howdyjessie/followers","following_url":"https://api.github.com/users/howdyjessie/following{/other_user}","gists_url":"https://api.github.com/users/howdyjessie/gists{/gist_id}","starred_url":"https://api.github.com/users/howdyjessie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howdyjessie/subscriptions","organizations_url":"https://api.github.com/users/howdyjessie/orgs","repos_url":"https://api.github.com/users/howdyjessie/repos","events_url":"https://api.github.com/users/howdyjessie/events{/privacy}","received_events_url":"https://api.github.com/users/howdyjessie/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/informatics-isi-edu/chaise/labels/data-entry","name":"data-entry","color":"b60205"},{"url":"https://api.github.com/repos/informatics-isi-edu/chaise/labels/record","name":"record","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"karlcz","id":1075148,"avatar_url":"https://avatars.githubusercontent.com/u/1075148?v=3","gravatar_id":"","url":"https://api.github.com/users/karlcz","html_url":"https://github.com/karlcz","followers_url":"https://api.github.com/users/karlcz/followers","following_url":"https://api.github.com/users/karlcz/following{/other_user}","gists_url":"https://api.github.com/users/karlcz/gists{/gist_id}","starred_url":"https://api.github.com/users/karlcz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/karlcz/subscriptions","organizations_url":"https://api.github.com/users/karlcz/orgs","repos_url":"https://api.github.com/users/karlcz/repos","events_url":"https://api.github.com/users/karlcz/events{/privacy}","received_events_url":"https://api.github.com/users/karlcz/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/informatics-isi-edu/chaise/milestones/8","html_url":"https://github.com/informatics-isi-edu/chaise/milestones/2016-06","labels_url":"https://api.github.com/repos/informatics-isi-edu/chaise/milestones/8/labels","id":1756007,"number":8,"title":"2016-06","description":"","creator":{"login":"hongsudt","id":414732,"avatar_url":"https://avatars.githubusercontent.com/u/414732?v=3","gravatar_id":"","url":"https://api.github.com/users/hongsudt","html_url":"https://github.com/hongsudt","followers_url":"https://api.github.com/users/hongsudt/followers","following_url":"https://api.github.com/users/hongsudt/following{/other_user}","gists_url":"https://api.github.com/users/hongsudt/gists{/gist_id}","starred_url":"https://api.github.com/users/hongsudt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hongsudt/subscriptions","organizations_url":"https://api.github.com/users/hongsudt/orgs","repos_url":"https://api.github.com/users/hongsudt/repos","events_url":"https://api.github.com/users/hongsudt/events{/privacy}","received_events_url":"https://api.github.com/users/hongsudt/received_events","type":"User","site_admin":false},"open_issues":46,"closed_issues":0,"state":"open","created_at":"2016-05-09T17:04:23Z","updated_at":"2016-06-10T17:22:32Z","due_on":"2016-07-01T07:00:00Z","closed_at":null},"comments":7,"created_at":"2016-06-08T20:15:21Z","updated_at":"2016-06-10T19:14:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/informatics-isi-edu/chaise/pulls/439","html_url":"https://github.com/informatics-isi-edu/chaise/pull/439","diff_url":"https://github.com/informatics-isi-edu/chaise/pull/439.diff","patch_url":"https://github.com/informatics-isi-edu/chaise/pull/439.patch"},"body":"- The link redirects user to the recordedit (data entry) app.\r\n- The redirect url is determined via `\".../data-entry\"` + `window.location.hash`.\r\n- The Edit link only appears if the catalog ACL for `content_write_user` has an `*` or matches one of the user's session attribute IDs.\r\n\r\n##### To Test #####\r\nVisit a Record page in my user dir, such as [this record from Yang Chai](https://dev.isrd.isi.edu/~jessie/chaise/record/#1/legacy:dataset/id=5776). Next to the Permalink link, click the \"Edit Record\" link. You should be redirected to the recordedit (data entry) app where the input fields are pre-filled with this record's values.\r\nThe code can be pulled down from branch `record-edit-btn`. \r\n\r\n~~Normally I wouldn't have worked on a separate branch for this relatively small enhancement, but I thought it would take more work than was actually necessary when I started.~~ Well now that we have the ACLs, this is no longer the case!"},"comment":{"url":"https://api.github.com/repos/informatics-isi-edu/chaise/issues/comments/225271114","html_url":"https://github.com/informatics-isi-edu/chaise/pull/439#issuecomment-225271114","issue_url":"https://api.github.com/repos/informatics-isi-edu/chaise/issues/439","id":225271114,"user":{"login":"howdyjessie","id":4585431,"avatar_url":"https://avatars.githubusercontent.com/u/4585431?v=3","gravatar_id":"","url":"https://api.github.com/users/howdyjessie","html_url":"https://github.com/howdyjessie","followers_url":"https://api.github.com/users/howdyjessie/followers","following_url":"https://api.github.com/users/howdyjessie/following{/other_user}","gists_url":"https://api.github.com/users/howdyjessie/gists{/gist_id}","starred_url":"https://api.github.com/users/howdyjessie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/howdyjessie/subscriptions","organizations_url":"https://api.github.com/users/howdyjessie/orgs","repos_url":"https://api.github.com/users/howdyjessie/repos","events_url":"https://api.github.com/users/howdyjessie/events{/privacy}","received_events_url":"https://api.github.com/users/howdyjessie/received_events","type":"User","site_admin":false},"created_at":"2016-06-10T19:14:48Z","updated_at":"2016-06-10T19:14:48Z","body":"From today's standup: In addition to the catalog ACL check, the record app must additionally check whether the current table has an `ignore` annotation with an `entry` context with an `edit` sub-context. If so, don't show the edit link. Otherwise, show the link."}}
{"actor":{"display_login":"howdyjessie"}}