{"action":"created","issue":{"url":"https://api.github.com/repos/netlify/netlify-cms/issues/1303","repository_url":"https://api.github.com/repos/netlify/netlify-cms","labels_url":"https://api.github.com/repos/netlify/netlify-cms/issues/1303/labels{/name}","comments_url":"https://api.github.com/repos/netlify/netlify-cms/issues/1303/comments","events_url":"https://api.github.com/repos/netlify/netlify-cms/issues/1303/events","html_url":"https://github.com/netlify/netlify-cms/pull/1303","id":316452253,"number":1303,"title":"Support displayFields in the Relation widget","user":{"login":"zurawiki","id":1464035,"avatar_url":"https://avatars3.githubusercontent.com/u/1464035?v=4","gravatar_id":"","url":"https://api.github.com/users/zurawiki","html_url":"https://github.com/zurawiki","followers_url":"https://api.github.com/users/zurawiki/followers","following_url":"https://api.github.com/users/zurawiki/following{/other_user}","gists_url":"https://api.github.com/users/zurawiki/gists{/gist_id}","starred_url":"https://api.github.com/users/zurawiki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zurawiki/subscriptions","organizations_url":"https://api.github.com/users/zurawiki/orgs","repos_url":"https://api.github.com/users/zurawiki/repos","events_url":"https://api.github.com/users/zurawiki/events{/privacy}","received_events_url":"https://api.github.com/users/zurawiki/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-04-21T01:57:11Z","updated_at":"2018-04-21T02:07:11Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/netlify/netlify-cms/pulls/1303","html_url":"https://github.com/netlify/netlify-cms/pull/1303","diff_url":"https://github.com/netlify/netlify-cms/pull/1303.diff","patch_url":"https://github.com/netlify/netlify-cms/pull/1303.patch"},"body":"<!--\r\nThanks for submitting a pull request!\r\n\r\nPlease make sure you've read and understood our contributing guidelines;\r\nhttps://github.com/netlify/netlify-cms/blob/master/CONTRIBUTING.md\r\n\r\nIf this is a bug fix, make sure your description includes \"fixes #xxxx\", or\r\n\"closes #xxxx\", where #xxxx is the issue number.\r\n\r\nPlease provide enough information so that others can review your pull request.\r\nThe first three fields are mandatory:\r\n-->\r\n\r\n**- Summary**\r\n\r\nSome relation objects I have are stored by an `id` field to guarantee each object has a unique value. My `id`s are random hashes though and they are not very informative, especially looking through the autocomplete options. \r\n\r\nBy adding the `displayFields` option, we can render information of the object that is more useful to the user. In my case I can display the title and author, which helps distinguish posts with the same title.\r\n\r\n**- Test plan**\r\n\r\nManual testing works\r\nThe test suite passes using `yarn test`\r\n\r\n**- Description for the changelog**\r\n\r\nThe relation widget now supports custom display fields\r\n"},"comment":{"url":"https://api.github.com/repos/netlify/netlify-cms/issues/comments/383259592","html_url":"https://github.com/netlify/netlify-cms/pull/1303#issuecomment-383259592","issue_url":"https://api.github.com/repos/netlify/netlify-cms/issues/1303","id":383259592,"user":{"login":"erquhart","id":2112202,"avatar_url":"https://avatars3.githubusercontent.com/u/2112202?v=4","gravatar_id":"","url":"https://api.github.com/users/erquhart","html_url":"https://github.com/erquhart","followers_url":"https://api.github.com/users/erquhart/followers","following_url":"https://api.github.com/users/erquhart/following{/other_user}","gists_url":"https://api.github.com/users/erquhart/gists{/gist_id}","starred_url":"https://api.github.com/users/erquhart/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erquhart/subscriptions","organizations_url":"https://api.github.com/users/erquhart/orgs","repos_url":"https://api.github.com/users/erquhart/repos","events_url":"https://api.github.com/users/erquhart/events{/privacy}","received_events_url":"https://api.github.com/users/erquhart/received_events","type":"User","site_admin":false},"created_at":"2018-04-21T02:07:11Z","updated_at":"2018-04-21T02:07:11Z","author_association":"MEMBER","body":"@zurawiki man you are on fire, where did you come from? These may need get much activity before Monday, but thank you!\n\n<sub>Sent with <a href=\"http://githawk.com\">GitHawk</a></sub>"}}
{"actor":{"display_login":"erquhart"}}