{"action":"opened","number":531,"pull_request":{"url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/pulls/531","id":75567838,"html_url":"https://github.com/spark-jobserver/spark-jobserver/pull/531","diff_url":"https://github.com/spark-jobserver/spark-jobserver/pull/531.diff","patch_url":"https://github.com/spark-jobserver/spark-jobserver/pull/531.patch","issue_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/531","number":531,"state":"open","locked":false,"title":"POST /contexts/<contextName> takes typesafe config payload","user":{"login":"casey-green","id":1815573,"avatar_url":"https://avatars.githubusercontent.com/u/1815573?v=3","gravatar_id":"","url":"https://api.github.com/users/casey-green","html_url":"https://github.com/casey-green","followers_url":"https://api.github.com/users/casey-green/followers","following_url":"https://api.github.com/users/casey-green/following{/other_user}","gists_url":"https://api.github.com/users/casey-green/gists{/gist_id}","starred_url":"https://api.github.com/users/casey-green/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casey-green/subscriptions","organizations_url":"https://api.github.com/users/casey-green/orgs","repos_url":"https://api.github.com/users/casey-green/repos","events_url":"https://api.github.com/users/casey-green/events{/privacy}","received_events_url":"https://api.github.com/users/casey-green/received_events","type":"User","site_admin":false},"body":"#### Motivation\r\nI have a lot of spark configs I want to set on my spark context. The only way to do this when creating a context is to supply the configs as URL parameters, but I get a `414: URI Too Long` because there are too many.\r\n\r\n#### Solution\r\nAdd support for typesafe config in the payload of the `POST /contexts/<contextName>` endpoint. This is the same support for the `POST /jobs` endpoint - the user can supply:\r\n```\r\nspark.context-settings {\r\n  # spark configs\r\n  hadoop {\r\n    # hadoop configs\r\n  }\r\n}","created_at":"2016-06-28T23:36:51Z","updated_at":"2016-06-28T23:36:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/pulls/531/commits","review_comments_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/pulls/531/comments","review_comment_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/pulls/comments{/number}","comments_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/531/comments","statuses_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/statuses/b3273e2ca7426558793121db90fa4255b686ee97","head":{"label":"casey-green:casey/context-spark-config-in-body","ref":"casey/context-spark-config-in-body","sha":"b3273e2ca7426558793121db90fa4255b686ee97","user":{"login":"casey-green","id":1815573,"avatar_url":"https://avatars.githubusercontent.com/u/1815573?v=3","gravatar_id":"","url":"https://api.github.com/users/casey-green","html_url":"https://github.com/casey-green","followers_url":"https://api.github.com/users/casey-green/followers","following_url":"https://api.github.com/users/casey-green/following{/other_user}","gists_url":"https://api.github.com/users/casey-green/gists{/gist_id}","starred_url":"https://api.github.com/users/casey-green/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casey-green/subscriptions","organizations_url":"https://api.github.com/users/casey-green/orgs","repos_url":"https://api.github.com/users/casey-green/repos","events_url":"https://api.github.com/users/casey-green/events{/privacy}","received_events_url":"https://api.github.com/users/casey-green/received_events","type":"User","site_admin":false},"repo":{"id":62179048,"name":"spark-jobserver","full_name":"casey-green/spark-jobserver","owner":{"login":"casey-green","id":1815573,"avatar_url":"https://avatars.githubusercontent.com/u/1815573?v=3","gravatar_id":"","url":"https://api.github.com/users/casey-green","html_url":"https://github.com/casey-green","followers_url":"https://api.github.com/users/casey-green/followers","following_url":"https://api.github.com/users/casey-green/following{/other_user}","gists_url":"https://api.github.com/users/casey-green/gists{/gist_id}","starred_url":"https://api.github.com/users/casey-green/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/casey-green/subscriptions","organizations_url":"https://api.github.com/users/casey-green/orgs","repos_url":"https://api.github.com/users/casey-green/repos","events_url":"https://api.github.com/users/casey-green/events{/privacy}","received_events_url":"https://api.github.com/users/casey-green/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/casey-green/spark-jobserver","description":"REST job server for Apache Spark","fork":true,"url":"https://api.github.com/repos/casey-green/spark-jobserver","forks_url":"https://api.github.com/repos/casey-green/spark-jobserver/forks","keys_url":"https://api.github.com/repos/casey-green/spark-jobserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/casey-green/spark-jobserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/casey-green/spark-jobserver/teams","hooks_url":"https://api.github.com/repos/casey-green/spark-jobserver/hooks","issue_events_url":"https://api.github.com/repos/casey-green/spark-jobserver/issues/events{/number}","events_url":"https://api.github.com/repos/casey-green/spark-jobserver/events","assignees_url":"https://api.github.com/repos/casey-green/spark-jobserver/assignees{/user}","branches_url":"https://api.github.com/repos/casey-green/spark-jobserver/branches{/branch}","tags_url":"https://api.github.com/repos/casey-green/spark-jobserver/tags","blobs_url":"https://api.github.com/repos/casey-green/spark-jobserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/casey-green/spark-jobserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/casey-green/spark-jobserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/casey-green/spark-jobserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/casey-green/spark-jobserver/statuses/{sha}","languages_url":"https://api.github.com/repos/casey-green/spark-jobserver/languages","stargazers_url":"https://api.github.com/repos/casey-green/spark-jobserver/stargazers","contributors_url":"https://api.github.com/repos/casey-green/spark-jobserver/contributors","subscribers_url":"https://api.github.com/repos/casey-green/spark-jobserver/subscribers","subscription_url":"https://api.github.com/repos/casey-green/spark-jobserver/subscription","commits_url":"https://api.github.com/repos/casey-green/spark-jobserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/casey-green/spark-jobserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/casey-green/spark-jobserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/casey-green/spark-jobserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/casey-green/spark-jobserver/contents/{+path}","compare_url":"https://api.github.com/repos/casey-green/spark-jobserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/casey-green/spark-jobserver/merges","archive_url":"https://api.github.com/repos/casey-green/spark-jobserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/casey-green/spark-jobserver/downloads","issues_url":"https://api.github.com/repos/casey-green/spark-jobserver/issues{/number}","pulls_url":"https://api.github.com/repos/casey-green/spark-jobserver/pulls{/number}","milestones_url":"https://api.github.com/repos/casey-green/spark-jobserver/milestones{/number}","notifications_url":"https://api.github.com/repos/casey-green/spark-jobserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/casey-green/spark-jobserver/labels{/name}","releases_url":"https://api.github.com/repos/casey-green/spark-jobserver/releases{/id}","deployments_url":"https://api.github.com/repos/casey-green/spark-jobserver/deployments","created_at":"2016-06-28T22:44:42Z","updated_at":"2016-06-28T22:44:43Z","pushed_at":"2016-06-28T23:29:53Z","git_url":"git://github.com/casey-green/spark-jobserver.git","ssh_url":"git@github.com:casey-green/spark-jobserver.git","clone_url":"https://github.com/casey-green/spark-jobserver.git","svn_url":"https://github.com/casey-green/spark-jobserver","homepage":"","size":5074,"stargazers_count":0,"watchers_count":0,"language":"Scala","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":"spark-jobserver:master","ref":"master","sha":"a3f62939a63980d4d6481ba31c54401da1da8b4b","user":{"login":"spark-jobserver","id":8494302,"avatar_url":"https://avatars.githubusercontent.com/u/8494302?v=3","gravatar_id":"","url":"https://api.github.com/users/spark-jobserver","html_url":"https://github.com/spark-jobserver","followers_url":"https://api.github.com/users/spark-jobserver/followers","following_url":"https://api.github.com/users/spark-jobserver/following{/other_user}","gists_url":"https://api.github.com/users/spark-jobserver/gists{/gist_id}","starred_url":"https://api.github.com/users/spark-jobserver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spark-jobserver/subscriptions","organizations_url":"https://api.github.com/users/spark-jobserver/orgs","repos_url":"https://api.github.com/users/spark-jobserver/repos","events_url":"https://api.github.com/users/spark-jobserver/events{/privacy}","received_events_url":"https://api.github.com/users/spark-jobserver/received_events","type":"Organization","site_admin":false},"repo":{"id":23205911,"name":"spark-jobserver","full_name":"spark-jobserver/spark-jobserver","owner":{"login":"spark-jobserver","id":8494302,"avatar_url":"https://avatars.githubusercontent.com/u/8494302?v=3","gravatar_id":"","url":"https://api.github.com/users/spark-jobserver","html_url":"https://github.com/spark-jobserver","followers_url":"https://api.github.com/users/spark-jobserver/followers","following_url":"https://api.github.com/users/spark-jobserver/following{/other_user}","gists_url":"https://api.github.com/users/spark-jobserver/gists{/gist_id}","starred_url":"https://api.github.com/users/spark-jobserver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spark-jobserver/subscriptions","organizations_url":"https://api.github.com/users/spark-jobserver/orgs","repos_url":"https://api.github.com/users/spark-jobserver/repos","events_url":"https://api.github.com/users/spark-jobserver/events{/privacy}","received_events_url":"https://api.github.com/users/spark-jobserver/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/spark-jobserver/spark-jobserver","description":"REST job server for Apache Spark","fork":false,"url":"https://api.github.com/repos/spark-jobserver/spark-jobserver","forks_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/forks","keys_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/keys{/key_id}","collaborators_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/teams","hooks_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/hooks","issue_events_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/events{/number}","events_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/events","assignees_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/assignees{/user}","branches_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/branches{/branch}","tags_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/tags","blobs_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/git/refs{/sha}","trees_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/git/trees{/sha}","statuses_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/statuses/{sha}","languages_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/languages","stargazers_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/stargazers","contributors_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/contributors","subscribers_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/subscribers","subscription_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/subscription","commits_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/commits{/sha}","git_commits_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/git/commits{/sha}","comments_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/comments{/number}","issue_comment_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/comments{/number}","contents_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/contents/{+path}","compare_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/compare/{base}...{head}","merges_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/merges","archive_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/downloads","issues_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues{/number}","pulls_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/pulls{/number}","milestones_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/milestones{/number}","notifications_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/labels{/name}","releases_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/releases{/id}","deployments_url":"https://api.github.com/repos/spark-jobserver/spark-jobserver/deployments","created_at":"2014-08-21T23:07:47Z","updated_at":"2016-06-28T18:24:29Z","pushed_at":"2016-06-28T23:36:51Z","git_url":"git://github.com/spark-jobserver/spark-jobserver.git","ssh_url":"git@github.com:spark-jobserver/spark-jobserver.git","clone_url":"https://github.com/spark-jobserver/spark-jobserver.git","svn_url":"https://github.com/spark-jobserver/spark-jobserver","homepage":"","size":5074,"stargazers_count":1099,"watchers_count":1099,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":447,"mirror_url":null,"open_issues_count":63,"forks":447,"open_issues":63,"watchers":1099,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/spark-jobserver/spark-jobserver/pulls/531"},"html":{"href":"https://github.com/spark-jobserver/spark-jobserver/pull/531"},"issue":{"href":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/531"},"comments":{"href":"https://api.github.com/repos/spark-jobserver/spark-jobserver/issues/531/comments"},"review_comments":{"href":"https://api.github.com/repos/spark-jobserver/spark-jobserver/pulls/531/comments"},"review_comment":{"href":"https://api.github.com/repos/spark-jobserver/spark-jobserver/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/spark-jobserver/spark-jobserver/pulls/531/commits"},"statuses":{"href":"https://api.github.com/repos/spark-jobserver/spark-jobserver/statuses/b3273e2ca7426558793121db90fa4255b686ee97"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":29,"deletions":14,"changed_files":2}}
{"actor":{"display_login":"casey-green"}}