{"action":"created","issue":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/7854","repository_url":"https://api.github.com/repos/gatsbyjs/gatsby","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/7854/labels{/name}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/7854/comments","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/7854/events","html_url":"https://github.com/gatsbyjs/gatsby/pull/7854","id":356674011,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEyODcxMzUw","number":7854,"title":"[gatsby-source-contentful] Added support for non localized fields without use of fallback locales","user":{"login":"stoltzrobin","id":32954817,"node_id":"MDQ6VXNlcjMyOTU0ODE3","avatar_url":"https://avatars0.githubusercontent.com/u/32954817?v=4","gravatar_id":"","url":"https://api.github.com/users/stoltzrobin","html_url":"https://github.com/stoltzrobin","followers_url":"https://api.github.com/users/stoltzrobin/followers","following_url":"https://api.github.com/users/stoltzrobin/following{/other_user}","gists_url":"https://api.github.com/users/stoltzrobin/gists{/gist_id}","starred_url":"https://api.github.com/users/stoltzrobin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stoltzrobin/subscriptions","organizations_url":"https://api.github.com/users/stoltzrobin/orgs","repos_url":"https://api.github.com/users/stoltzrobin/repos","events_url":"https://api.github.com/users/stoltzrobin/events{/privacy}","received_events_url":"https://api.github.com/users/stoltzrobin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-04T06:49:52Z","updated_at":"2018-09-04T12:10:40Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/pulls/7854","html_url":"https://github.com/gatsbyjs/gatsby/pull/7854","diff_url":"https://github.com/gatsbyjs/gatsby/pull/7854.diff","patch_url":"https://github.com/gatsbyjs/gatsby/pull/7854.patch"},"body":"Fixes for #2937, default locale is added to support a contentful setup where fallback locales are not used. \r\n\r\n### Test case\r\nA content model existing of 2 fields (the environment is setup without having any fallbacks.\r\n- Name (localized)\r\n- slug (not localized)\r\n\r\n### Result from graphQL query\r\n```\r\n{\r\n  \"data\": {\r\n    \"allContentfulPage\": {\r\n      \"edges\": [\r\n        {\r\n          \"node\": {\r\n            \"name\": \"Page A\",\r\n            \"node_locale\": \"en-US\",\r\n            \"slug\": \"/\"\r\n          }\r\n        },\r\n        {\r\n          \"node\": {\r\n            \"name\": \"Page B\",\r\n            \"node_locale\": \"es-ES\",\r\n            \"slug\": null\r\n          }\r\n        },\r\n      ]\r\n    }\r\n  }\r\n}\r\n```\r\n\r\n### Expected Result\r\n\r\n```\r\n{\r\n  \"data\": {\r\n    \"allContentfulPage\": {\r\n      \"edges\": [\r\n        {\r\n          \"node\": {\r\n            \"name\": \"Page A\",\r\n            \"node_locale\": \"en-US\",\r\n            \"slug\": \"/\"\r\n          }\r\n        },\r\n        {\r\n          \"node\": {\r\n            \"name\": \"Page B\",\r\n            \"node_locale\": \"es-ES\",\r\n            \"slug\": \"/\"\r\n          }\r\n        },\r\n      ]\r\n    }\r\n  }\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments/418343550","html_url":"https://github.com/gatsbyjs/gatsby/pull/7854#issuecomment-418343550","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/7854","id":418343550,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODM0MzU1MA==","user":{"login":"Khaledgarbaya","id":1156093,"node_id":"MDQ6VXNlcjExNTYwOTM=","avatar_url":"https://avatars1.githubusercontent.com/u/1156093?v=4","gravatar_id":"","url":"https://api.github.com/users/Khaledgarbaya","html_url":"https://github.com/Khaledgarbaya","followers_url":"https://api.github.com/users/Khaledgarbaya/followers","following_url":"https://api.github.com/users/Khaledgarbaya/following{/other_user}","gists_url":"https://api.github.com/users/Khaledgarbaya/gists{/gist_id}","starred_url":"https://api.github.com/users/Khaledgarbaya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Khaledgarbaya/subscriptions","organizations_url":"https://api.github.com/users/Khaledgarbaya/orgs","repos_url":"https://api.github.com/users/Khaledgarbaya/repos","events_url":"https://api.github.com/users/Khaledgarbaya/events{/privacy}","received_events_url":"https://api.github.com/users/Khaledgarbaya/received_events","type":"User","site_admin":false},"created_at":"2018-09-04T12:10:40Z","updated_at":"2018-09-04T12:10:40Z","author_association":"CONTRIBUTOR","body":"Hey @stoltzrobin,\r\ncan you add some test so I get to see the problem better?\r\n\r\nBest,\r\nKhaled"}}
{"actor":{"display_login":"Khaledgarbaya"}}