{"action":"opened","number":167,"pull_request":{"url":"https://api.github.com/repos/graphql/graphiql/pulls/167","id":85872703,"html_url":"https://github.com/graphql/graphiql/pull/167","diff_url":"https://github.com/graphql/graphiql/pull/167.diff","patch_url":"https://github.com/graphql/graphiql/pull/167.patch","issue_url":"https://api.github.com/repos/graphql/graphiql/issues/167","number":167,"state":"open","locked":false,"title":"Handle null/undefined variables","user":{"login":"OlegIlyenko","id":156569,"avatar_url":"https://avatars.githubusercontent.com/u/156569?v=3","gravatar_id":"","url":"https://api.github.com/users/OlegIlyenko","html_url":"https://github.com/OlegIlyenko","followers_url":"https://api.github.com/users/OlegIlyenko/followers","following_url":"https://api.github.com/users/OlegIlyenko/following{/other_user}","gists_url":"https://api.github.com/users/OlegIlyenko/gists{/gist_id}","starred_url":"https://api.github.com/users/OlegIlyenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlegIlyenko/subscriptions","organizations_url":"https://api.github.com/users/OlegIlyenko/orgs","repos_url":"https://api.github.com/users/OlegIlyenko/repos","events_url":"https://api.github.com/users/OlegIlyenko/events{/privacy}","received_events_url":"https://api.github.com/users/OlegIlyenko/received_events","type":"User","site_admin":false},"body":"Pretty often I end up in this kind of situation:\r\n\r\n![graphiql-null-vars](https://cloud.githubusercontent.com/assets/156569/18649448/d09beb0e-7ebf-11e6-9fb2-26c5480ffc27.png)\r\n\r\nSteps to reproduce it:\r\n\r\n1. When creating a GraphiQL component, provide a prop: `variables: null`\r\n2. Refresh a page couple of times\r\n3. Remove `variables: null`\r\n4. Refresh the page (the result is shown on the screenshot)\r\n\r\nThis PR tries to address this issue by preventing null/undefined variables to be stored.","created_at":"2016-09-19T21:26:24Z","updated_at":"2016-09-19T21:26:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"dfdb4bb995dc3ac7e3ba09735ec3579e13faf784","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/graphql/graphiql/pulls/167/commits","review_comments_url":"https://api.github.com/repos/graphql/graphiql/pulls/167/comments","review_comment_url":"https://api.github.com/repos/graphql/graphiql/pulls/comments{/number}","comments_url":"https://api.github.com/repos/graphql/graphiql/issues/167/comments","statuses_url":"https://api.github.com/repos/graphql/graphiql/statuses/41894e58f66db239f6b0ba5a4c33e74ab9a028c0","head":{"label":"OlegIlyenko:prevent-null-variables","ref":"prevent-null-variables","sha":"41894e58f66db239f6b0ba5a4c33e74ab9a028c0","user":{"login":"OlegIlyenko","id":156569,"avatar_url":"https://avatars.githubusercontent.com/u/156569?v=3","gravatar_id":"","url":"https://api.github.com/users/OlegIlyenko","html_url":"https://github.com/OlegIlyenko","followers_url":"https://api.github.com/users/OlegIlyenko/followers","following_url":"https://api.github.com/users/OlegIlyenko/following{/other_user}","gists_url":"https://api.github.com/users/OlegIlyenko/gists{/gist_id}","starred_url":"https://api.github.com/users/OlegIlyenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlegIlyenko/subscriptions","organizations_url":"https://api.github.com/users/OlegIlyenko/orgs","repos_url":"https://api.github.com/users/OlegIlyenko/repos","events_url":"https://api.github.com/users/OlegIlyenko/events{/privacy}","received_events_url":"https://api.github.com/users/OlegIlyenko/received_events","type":"User","site_admin":false},"repo":{"id":68641036,"name":"graphiql","full_name":"OlegIlyenko/graphiql","owner":{"login":"OlegIlyenko","id":156569,"avatar_url":"https://avatars.githubusercontent.com/u/156569?v=3","gravatar_id":"","url":"https://api.github.com/users/OlegIlyenko","html_url":"https://github.com/OlegIlyenko","followers_url":"https://api.github.com/users/OlegIlyenko/followers","following_url":"https://api.github.com/users/OlegIlyenko/following{/other_user}","gists_url":"https://api.github.com/users/OlegIlyenko/gists{/gist_id}","starred_url":"https://api.github.com/users/OlegIlyenko/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OlegIlyenko/subscriptions","organizations_url":"https://api.github.com/users/OlegIlyenko/orgs","repos_url":"https://api.github.com/users/OlegIlyenko/repos","events_url":"https://api.github.com/users/OlegIlyenko/events{/privacy}","received_events_url":"https://api.github.com/users/OlegIlyenko/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/OlegIlyenko/graphiql","description":"An in-browser IDE for exploring GraphQL.","fork":true,"url":"https://api.github.com/repos/OlegIlyenko/graphiql","forks_url":"https://api.github.com/repos/OlegIlyenko/graphiql/forks","keys_url":"https://api.github.com/repos/OlegIlyenko/graphiql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/OlegIlyenko/graphiql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/OlegIlyenko/graphiql/teams","hooks_url":"https://api.github.com/repos/OlegIlyenko/graphiql/hooks","issue_events_url":"https://api.github.com/repos/OlegIlyenko/graphiql/issues/events{/number}","events_url":"https://api.github.com/repos/OlegIlyenko/graphiql/events","assignees_url":"https://api.github.com/repos/OlegIlyenko/graphiql/assignees{/user}","branches_url":"https://api.github.com/repos/OlegIlyenko/graphiql/branches{/branch}","tags_url":"https://api.github.com/repos/OlegIlyenko/graphiql/tags","blobs_url":"https://api.github.com/repos/OlegIlyenko/graphiql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/OlegIlyenko/graphiql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/OlegIlyenko/graphiql/git/refs{/sha}","trees_url":"https://api.github.com/repos/OlegIlyenko/graphiql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/OlegIlyenko/graphiql/statuses/{sha}","languages_url":"https://api.github.com/repos/OlegIlyenko/graphiql/languages","stargazers_url":"https://api.github.com/repos/OlegIlyenko/graphiql/stargazers","contributors_url":"https://api.github.com/repos/OlegIlyenko/graphiql/contributors","subscribers_url":"https://api.github.com/repos/OlegIlyenko/graphiql/subscribers","subscription_url":"https://api.github.com/repos/OlegIlyenko/graphiql/subscription","commits_url":"https://api.github.com/repos/OlegIlyenko/graphiql/commits{/sha}","git_commits_url":"https://api.github.com/repos/OlegIlyenko/graphiql/git/commits{/sha}","comments_url":"https://api.github.com/repos/OlegIlyenko/graphiql/comments{/number}","issue_comment_url":"https://api.github.com/repos/OlegIlyenko/graphiql/issues/comments{/number}","contents_url":"https://api.github.com/repos/OlegIlyenko/graphiql/contents/{+path}","compare_url":"https://api.github.com/repos/OlegIlyenko/graphiql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/OlegIlyenko/graphiql/merges","archive_url":"https://api.github.com/repos/OlegIlyenko/graphiql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/OlegIlyenko/graphiql/downloads","issues_url":"https://api.github.com/repos/OlegIlyenko/graphiql/issues{/number}","pulls_url":"https://api.github.com/repos/OlegIlyenko/graphiql/pulls{/number}","milestones_url":"https://api.github.com/repos/OlegIlyenko/graphiql/milestones{/number}","notifications_url":"https://api.github.com/repos/OlegIlyenko/graphiql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/OlegIlyenko/graphiql/labels{/name}","releases_url":"https://api.github.com/repos/OlegIlyenko/graphiql/releases{/id}","deployments_url":"https://api.github.com/repos/OlegIlyenko/graphiql/deployments","created_at":"2016-09-19T19:54:38Z","updated_at":"2016-09-19T19:54:39Z","pushed_at":"2016-09-19T21:20:28Z","git_url":"git://github.com/OlegIlyenko/graphiql.git","ssh_url":"git@github.com:OlegIlyenko/graphiql.git","clone_url":"https://github.com/OlegIlyenko/graphiql.git","svn_url":"https://github.com/OlegIlyenko/graphiql","homepage":null,"size":780,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"graphql:master","ref":"master","sha":"aef44793142c34fb631c7206aaa97e62320288e2","user":{"login":"graphql","id":12972006,"avatar_url":"https://avatars.githubusercontent.com/u/12972006?v=3","gravatar_id":"","url":"https://api.github.com/users/graphql","html_url":"https://github.com/graphql","followers_url":"https://api.github.com/users/graphql/followers","following_url":"https://api.github.com/users/graphql/following{/other_user}","gists_url":"https://api.github.com/users/graphql/gists{/gist_id}","starred_url":"https://api.github.com/users/graphql/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graphql/subscriptions","organizations_url":"https://api.github.com/users/graphql/orgs","repos_url":"https://api.github.com/users/graphql/repos","events_url":"https://api.github.com/users/graphql/events{/privacy}","received_events_url":"https://api.github.com/users/graphql/received_events","type":"Organization","site_admin":false},"repo":{"id":40518025,"name":"graphiql","full_name":"graphql/graphiql","owner":{"login":"graphql","id":12972006,"avatar_url":"https://avatars.githubusercontent.com/u/12972006?v=3","gravatar_id":"","url":"https://api.github.com/users/graphql","html_url":"https://github.com/graphql","followers_url":"https://api.github.com/users/graphql/followers","following_url":"https://api.github.com/users/graphql/following{/other_user}","gists_url":"https://api.github.com/users/graphql/gists{/gist_id}","starred_url":"https://api.github.com/users/graphql/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/graphql/subscriptions","organizations_url":"https://api.github.com/users/graphql/orgs","repos_url":"https://api.github.com/users/graphql/repos","events_url":"https://api.github.com/users/graphql/events{/privacy}","received_events_url":"https://api.github.com/users/graphql/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/graphql/graphiql","description":"An in-browser IDE for exploring GraphQL.","fork":false,"url":"https://api.github.com/repos/graphql/graphiql","forks_url":"https://api.github.com/repos/graphql/graphiql/forks","keys_url":"https://api.github.com/repos/graphql/graphiql/keys{/key_id}","collaborators_url":"https://api.github.com/repos/graphql/graphiql/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/graphql/graphiql/teams","hooks_url":"https://api.github.com/repos/graphql/graphiql/hooks","issue_events_url":"https://api.github.com/repos/graphql/graphiql/issues/events{/number}","events_url":"https://api.github.com/repos/graphql/graphiql/events","assignees_url":"https://api.github.com/repos/graphql/graphiql/assignees{/user}","branches_url":"https://api.github.com/repos/graphql/graphiql/branches{/branch}","tags_url":"https://api.github.com/repos/graphql/graphiql/tags","blobs_url":"https://api.github.com/repos/graphql/graphiql/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/graphql/graphiql/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/graphql/graphiql/git/refs{/sha}","trees_url":"https://api.github.com/repos/graphql/graphiql/git/trees{/sha}","statuses_url":"https://api.github.com/repos/graphql/graphiql/statuses/{sha}","languages_url":"https://api.github.com/repos/graphql/graphiql/languages","stargazers_url":"https://api.github.com/repos/graphql/graphiql/stargazers","contributors_url":"https://api.github.com/repos/graphql/graphiql/contributors","subscribers_url":"https://api.github.com/repos/graphql/graphiql/subscribers","subscription_url":"https://api.github.com/repos/graphql/graphiql/subscription","commits_url":"https://api.github.com/repos/graphql/graphiql/commits{/sha}","git_commits_url":"https://api.github.com/repos/graphql/graphiql/git/commits{/sha}","comments_url":"https://api.github.com/repos/graphql/graphiql/comments{/number}","issue_comment_url":"https://api.github.com/repos/graphql/graphiql/issues/comments{/number}","contents_url":"https://api.github.com/repos/graphql/graphiql/contents/{+path}","compare_url":"https://api.github.com/repos/graphql/graphiql/compare/{base}...{head}","merges_url":"https://api.github.com/repos/graphql/graphiql/merges","archive_url":"https://api.github.com/repos/graphql/graphiql/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/graphql/graphiql/downloads","issues_url":"https://api.github.com/repos/graphql/graphiql/issues{/number}","pulls_url":"https://api.github.com/repos/graphql/graphiql/pulls{/number}","milestones_url":"https://api.github.com/repos/graphql/graphiql/milestones{/number}","notifications_url":"https://api.github.com/repos/graphql/graphiql/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/graphql/graphiql/labels{/name}","releases_url":"https://api.github.com/repos/graphql/graphiql/releases{/id}","deployments_url":"https://api.github.com/repos/graphql/graphiql/deployments","created_at":"2015-08-11T02:56:22Z","updated_at":"2016-09-19T20:03:26Z","pushed_at":"2016-09-19T21:26:25Z","git_url":"git://github.com/graphql/graphiql.git","ssh_url":"git@github.com:graphql/graphiql.git","clone_url":"https://github.com/graphql/graphiql.git","svn_url":"https://github.com/graphql/graphiql","homepage":null,"size":780,"stargazers_count":1689,"watchers_count":1689,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":97,"mirror_url":null,"open_issues_count":18,"forks":97,"open_issues":18,"watchers":1689,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/graphql/graphiql/pulls/167"},"html":{"href":"https://github.com/graphql/graphiql/pull/167"},"issue":{"href":"https://api.github.com/repos/graphql/graphiql/issues/167"},"comments":{"href":"https://api.github.com/repos/graphql/graphiql/issues/167/comments"},"review_comments":{"href":"https://api.github.com/repos/graphql/graphiql/pulls/167/comments"},"review_comment":{"href":"https://api.github.com/repos/graphql/graphiql/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/graphql/graphiql/pulls/167/commits"},"statuses":{"href":"https://api.github.com/repos/graphql/graphiql/statuses/41894e58f66db239f6b0ba5a4c33e74ab9a028c0"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":2,"deletions":1,"changed_files":1}}
{"actor":{"display_login":"OlegIlyenko"}}