{"action":"created","issue":{"url":"https://api.github.com/repos/grafeas/grafeas/issues/160","repository_url":"https://api.github.com/repos/grafeas/grafeas","labels_url":"https://api.github.com/repos/grafeas/grafeas/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/grafeas/grafeas/issues/160/comments","events_url":"https://api.github.com/repos/grafeas/grafeas/issues/160/events","html_url":"https://github.com/grafeas/grafeas/pull/160","id":332212822,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0NzUxODU4","number":160,"title":"Server-Side Occurrence Names","user":{"login":"DanSanche","id":3914119,"node_id":"MDQ6VXNlcjM5MTQxMTk=","avatar_url":"https://avatars1.githubusercontent.com/u/3914119?v=4","gravatar_id":"","url":"https://api.github.com/users/DanSanche","html_url":"https://github.com/DanSanche","followers_url":"https://api.github.com/users/DanSanche/followers","following_url":"https://api.github.com/users/DanSanche/following{/other_user}","gists_url":"https://api.github.com/users/DanSanche/gists{/gist_id}","starred_url":"https://api.github.com/users/DanSanche/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanSanche/subscriptions","organizations_url":"https://api.github.com/users/DanSanche/orgs","repos_url":"https://api.github.com/users/DanSanche/repos","events_url":"https://api.github.com/users/DanSanche/events{/privacy}","received_events_url":"https://api.github.com/users/DanSanche/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-06-14T00:44:01Z","updated_at":"2018-06-20T14:40:47Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/grafeas/grafeas/pulls/160","html_url":"https://github.com/grafeas/grafeas/pull/160","diff_url":"https://github.com/grafeas/grafeas/pull/160.diff","patch_url":"https://github.com/grafeas/grafeas/pull/160.patch"},"body":"Addressing the following issue: https://github.com/grafeas/grafeas/issues/157\r\n\r\nNow, the server will automatically assign an name to new occurrences, and reject any that try to set an explicit one\r\n\r\nI made use of a UUID library to generate the names, so they will look something like \"projects/best-vuln-scanner/occurrences/fadad2f2-6899-446d-9428-8876c75c7962\"\r\n"},"comment":{"url":"https://api.github.com/repos/grafeas/grafeas/issues/comments/398775124","html_url":"https://github.com/grafeas/grafeas/pull/160#issuecomment-398775124","issue_url":"https://api.github.com/repos/grafeas/grafeas/issues/160","id":398775124,"node_id":"MDEyOklzc3VlQ29tbWVudDM5ODc3NTEyNA==","user":{"login":"sandeeps2","id":37411053,"node_id":"MDQ6VXNlcjM3NDExMDUz","avatar_url":"https://avatars3.githubusercontent.com/u/37411053?v=4","gravatar_id":"","url":"https://api.github.com/users/sandeeps2","html_url":"https://github.com/sandeeps2","followers_url":"https://api.github.com/users/sandeeps2/followers","following_url":"https://api.github.com/users/sandeeps2/following{/other_user}","gists_url":"https://api.github.com/users/sandeeps2/gists{/gist_id}","starred_url":"https://api.github.com/users/sandeeps2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandeeps2/subscriptions","organizations_url":"https://api.github.com/users/sandeeps2/orgs","repos_url":"https://api.github.com/users/sandeeps2/repos","events_url":"https://api.github.com/users/sandeeps2/events{/privacy}","received_events_url":"https://api.github.com/users/sandeeps2/received_events","type":"User","site_admin":false},"created_at":"2018-06-20T14:40:47Z","updated_at":"2018-06-20T14:40:47Z","author_association":"NONE","body":"@vtsao While a general purpose labeling facility will be useful, it is good to have Name as a first class field which can be indexed and easily searched for an Occurrence. My comment was more for the in-flight change for this Issue to retain the Name field of the Occurrence as a user-supplied value and define a new field for the generated ID. I will add my related thoughts on #163 as well. \r\nThanks."}}
{"actor":{"display_login":"sandeeps2"}}