{"action":"created","comment":{"url":"https://api.github.com/repos/keen/explorer/pulls/comments/44690246","id":44690246,"diff_hunk":"@@ -24,25 +24,79 @@ var GroupByField = React.createClass({\n     return this.props.value;\n   },\n \n+  handleChange: function(name, value) {\n+    var newVal = this.props.value.slice();\n+    var index = name.split('.')[1];\n+    newVal[index] = value;\n+    this.props.handleChange(name.split('.')[0], newVal);\n+  },\n+\n+  toggleMultiGroupBy: function(event) {\n+    event.preventDefault();\n+    var newVal;\n+    switch (this.props.value.length) {\n+      case 0:","path":"client/js/app/components/explorer/query_builder/group_by_field.js","position":15,"original_position":15,"commit_id":"b58406561ee0603acc71cdf46213532dc4044866","original_commit_id":"b58406561ee0603acc71cdf46213532dc4044866","user":{"login":"josephwegner","id":657707,"avatar_url":"https://avatars.githubusercontent.com/u/657707?v=3","gravatar_id":"","url":"https://api.github.com/users/josephwegner","html_url":"https://github.com/josephwegner","followers_url":"https://api.github.com/users/josephwegner/followers","following_url":"https://api.github.com/users/josephwegner/following{/other_user}","gists_url":"https://api.github.com/users/josephwegner/gists{/gist_id}","starred_url":"https://api.github.com/users/josephwegner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josephwegner/subscriptions","organizations_url":"https://api.github.com/users/josephwegner/orgs","repos_url":"https://api.github.com/users/josephwegner/repos","events_url":"https://api.github.com/users/josephwegner/events{/privacy}","received_events_url":"https://api.github.com/users/josephwegner/received_events","type":"User","site_admin":false},"body":"when is this case hit?","created_at":"2015-11-12T17:56:05Z","updated_at":"2015-11-12T17:56:05Z","html_url":"https://github.com/keen/explorer/pull/48#discussion_r44690246","pull_request_url":"https://api.github.com/repos/keen/explorer/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/keen/explorer/pulls/comments/44690246"},"html":{"href":"https://github.com/keen/explorer/pull/48#discussion_r44690246"},"pull_request":{"href":"https://api.github.com/repos/keen/explorer/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/keen/explorer/pulls/48","id":50331696,"html_url":"https://github.com/keen/explorer/pull/48","diff_url":"https://github.com/keen/explorer/pull/48.diff","patch_url":"https://github.com/keen/explorer/pull/48.patch","issue_url":"https://api.github.com/repos/keen/explorer/issues/48","number":48,"state":"open","locked":false,"title":"Multi Group-by","user":{"login":"aroc","id":735257,"avatar_url":"https://avatars.githubusercontent.com/u/735257?v=3","gravatar_id":"","url":"https://api.github.com/users/aroc","html_url":"https://github.com/aroc","followers_url":"https://api.github.com/users/aroc/followers","following_url":"https://api.github.com/users/aroc/following{/other_user}","gists_url":"https://api.github.com/users/aroc/gists{/gist_id}","starred_url":"https://api.github.com/users/aroc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aroc/subscriptions","organizations_url":"https://api.github.com/users/aroc/orgs","repos_url":"https://api.github.com/users/aroc/repos","events_url":"https://api.github.com/users/aroc/events{/privacy}","received_events_url":"https://api.github.com/users/aroc/received_events","type":"User","site_admin":false},"body":"### What does this PR do? How does it affect users?\r\nIt adds support in Explorer to optionally group by two properties. Our API supports this.\r\n\r\n#### Note: Until Keen.js supports this, we cannot merge this PR.\r\n\r\n### How should this be tested (feature switches, URLs, special user permissions)?\r\nTry using the new multi-group by feature in the Query Builder section and see if the UI works as expected.\r\n\r\n### Related Tickets\r\nNone.","created_at":"2015-11-11T00:18:32Z","updated_at":"2015-11-12T17:56:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"acaead6e3b15cbd8273d75e070f2ecfd30ce0951","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/keen/explorer/pulls/48/commits","review_comments_url":"https://api.github.com/repos/keen/explorer/pulls/48/comments","review_comment_url":"https://api.github.com/repos/keen/explorer/pulls/comments{/number}","comments_url":"https://api.github.com/repos/keen/explorer/issues/48/comments","statuses_url":"https://api.github.com/repos/keen/explorer/statuses/b58406561ee0603acc71cdf46213532dc4044866","head":{"label":"keen:multi-group-by","ref":"multi-group-by","sha":"b58406561ee0603acc71cdf46213532dc4044866","user":{"login":"keen","id":8461781,"avatar_url":"https://avatars.githubusercontent.com/u/8461781?v=3","gravatar_id":"","url":"https://api.github.com/users/keen","html_url":"https://github.com/keen","followers_url":"https://api.github.com/users/keen/followers","following_url":"https://api.github.com/users/keen/following{/other_user}","gists_url":"https://api.github.com/users/keen/gists{/gist_id}","starred_url":"https://api.github.com/users/keen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keen/subscriptions","organizations_url":"https://api.github.com/users/keen/orgs","repos_url":"https://api.github.com/users/keen/repos","events_url":"https://api.github.com/users/keen/events{/privacy}","received_events_url":"https://api.github.com/users/keen/received_events","type":"Organization","site_admin":false},"repo":{"id":37276906,"name":"explorer","full_name":"keen/explorer","owner":{"login":"keen","id":8461781,"avatar_url":"https://avatars.githubusercontent.com/u/8461781?v=3","gravatar_id":"","url":"https://api.github.com/users/keen","html_url":"https://github.com/keen","followers_url":"https://api.github.com/users/keen/followers","following_url":"https://api.github.com/users/keen/following{/other_user}","gists_url":"https://api.github.com/users/keen/gists{/gist_id}","starred_url":"https://api.github.com/users/keen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keen/subscriptions","organizations_url":"https://api.github.com/users/keen/orgs","repos_url":"https://api.github.com/users/keen/repos","events_url":"https://api.github.com/users/keen/events{/privacy}","received_events_url":"https://api.github.com/users/keen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/keen/explorer","description":"Data Explorer by Keen IO","fork":false,"url":"https://api.github.com/repos/keen/explorer","forks_url":"https://api.github.com/repos/keen/explorer/forks","keys_url":"https://api.github.com/repos/keen/explorer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keen/explorer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keen/explorer/teams","hooks_url":"https://api.github.com/repos/keen/explorer/hooks","issue_events_url":"https://api.github.com/repos/keen/explorer/issues/events{/number}","events_url":"https://api.github.com/repos/keen/explorer/events","assignees_url":"https://api.github.com/repos/keen/explorer/assignees{/user}","branches_url":"https://api.github.com/repos/keen/explorer/branches{/branch}","tags_url":"https://api.github.com/repos/keen/explorer/tags","blobs_url":"https://api.github.com/repos/keen/explorer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keen/explorer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keen/explorer/git/refs{/sha}","trees_url":"https://api.github.com/repos/keen/explorer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keen/explorer/statuses/{sha}","languages_url":"https://api.github.com/repos/keen/explorer/languages","stargazers_url":"https://api.github.com/repos/keen/explorer/stargazers","contributors_url":"https://api.github.com/repos/keen/explorer/contributors","subscribers_url":"https://api.github.com/repos/keen/explorer/subscribers","subscription_url":"https://api.github.com/repos/keen/explorer/subscription","commits_url":"https://api.github.com/repos/keen/explorer/commits{/sha}","git_commits_url":"https://api.github.com/repos/keen/explorer/git/commits{/sha}","comments_url":"https://api.github.com/repos/keen/explorer/comments{/number}","issue_comment_url":"https://api.github.com/repos/keen/explorer/issues/comments{/number}","contents_url":"https://api.github.com/repos/keen/explorer/contents/{+path}","compare_url":"https://api.github.com/repos/keen/explorer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keen/explorer/merges","archive_url":"https://api.github.com/repos/keen/explorer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keen/explorer/downloads","issues_url":"https://api.github.com/repos/keen/explorer/issues{/number}","pulls_url":"https://api.github.com/repos/keen/explorer/pulls{/number}","milestones_url":"https://api.github.com/repos/keen/explorer/milestones{/number}","notifications_url":"https://api.github.com/repos/keen/explorer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keen/explorer/labels{/name}","releases_url":"https://api.github.com/repos/keen/explorer/releases{/id}","created_at":"2015-06-11T17:56:40Z","updated_at":"2015-11-10T17:15:59Z","pushed_at":"2015-11-12T16:34:06Z","git_url":"git://github.com/keen/explorer.git","ssh_url":"git@github.com:keen/explorer.git","clone_url":"https://github.com/keen/explorer.git","svn_url":"https://github.com/keen/explorer","homepage":"https://keen.github.io/explorer","size":23400,"stargazers_count":560,"watchers_count":560,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":38,"mirror_url":null,"open_issues_count":5,"forks":38,"open_issues":5,"watchers":560,"default_branch":"master"}},"base":{"label":"keen:master","ref":"master","sha":"f7990a62d8435c5eee6f468f83276e270865c4b3","user":{"login":"keen","id":8461781,"avatar_url":"https://avatars.githubusercontent.com/u/8461781?v=3","gravatar_id":"","url":"https://api.github.com/users/keen","html_url":"https://github.com/keen","followers_url":"https://api.github.com/users/keen/followers","following_url":"https://api.github.com/users/keen/following{/other_user}","gists_url":"https://api.github.com/users/keen/gists{/gist_id}","starred_url":"https://api.github.com/users/keen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keen/subscriptions","organizations_url":"https://api.github.com/users/keen/orgs","repos_url":"https://api.github.com/users/keen/repos","events_url":"https://api.github.com/users/keen/events{/privacy}","received_events_url":"https://api.github.com/users/keen/received_events","type":"Organization","site_admin":false},"repo":{"id":37276906,"name":"explorer","full_name":"keen/explorer","owner":{"login":"keen","id":8461781,"avatar_url":"https://avatars.githubusercontent.com/u/8461781?v=3","gravatar_id":"","url":"https://api.github.com/users/keen","html_url":"https://github.com/keen","followers_url":"https://api.github.com/users/keen/followers","following_url":"https://api.github.com/users/keen/following{/other_user}","gists_url":"https://api.github.com/users/keen/gists{/gist_id}","starred_url":"https://api.github.com/users/keen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keen/subscriptions","organizations_url":"https://api.github.com/users/keen/orgs","repos_url":"https://api.github.com/users/keen/repos","events_url":"https://api.github.com/users/keen/events{/privacy}","received_events_url":"https://api.github.com/users/keen/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/keen/explorer","description":"Data Explorer by Keen IO","fork":false,"url":"https://api.github.com/repos/keen/explorer","forks_url":"https://api.github.com/repos/keen/explorer/forks","keys_url":"https://api.github.com/repos/keen/explorer/keys{/key_id}","collaborators_url":"https://api.github.com/repos/keen/explorer/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/keen/explorer/teams","hooks_url":"https://api.github.com/repos/keen/explorer/hooks","issue_events_url":"https://api.github.com/repos/keen/explorer/issues/events{/number}","events_url":"https://api.github.com/repos/keen/explorer/events","assignees_url":"https://api.github.com/repos/keen/explorer/assignees{/user}","branches_url":"https://api.github.com/repos/keen/explorer/branches{/branch}","tags_url":"https://api.github.com/repos/keen/explorer/tags","blobs_url":"https://api.github.com/repos/keen/explorer/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/keen/explorer/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/keen/explorer/git/refs{/sha}","trees_url":"https://api.github.com/repos/keen/explorer/git/trees{/sha}","statuses_url":"https://api.github.com/repos/keen/explorer/statuses/{sha}","languages_url":"https://api.github.com/repos/keen/explorer/languages","stargazers_url":"https://api.github.com/repos/keen/explorer/stargazers","contributors_url":"https://api.github.com/repos/keen/explorer/contributors","subscribers_url":"https://api.github.com/repos/keen/explorer/subscribers","subscription_url":"https://api.github.com/repos/keen/explorer/subscription","commits_url":"https://api.github.com/repos/keen/explorer/commits{/sha}","git_commits_url":"https://api.github.com/repos/keen/explorer/git/commits{/sha}","comments_url":"https://api.github.com/repos/keen/explorer/comments{/number}","issue_comment_url":"https://api.github.com/repos/keen/explorer/issues/comments{/number}","contents_url":"https://api.github.com/repos/keen/explorer/contents/{+path}","compare_url":"https://api.github.com/repos/keen/explorer/compare/{base}...{head}","merges_url":"https://api.github.com/repos/keen/explorer/merges","archive_url":"https://api.github.com/repos/keen/explorer/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/keen/explorer/downloads","issues_url":"https://api.github.com/repos/keen/explorer/issues{/number}","pulls_url":"https://api.github.com/repos/keen/explorer/pulls{/number}","milestones_url":"https://api.github.com/repos/keen/explorer/milestones{/number}","notifications_url":"https://api.github.com/repos/keen/explorer/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/keen/explorer/labels{/name}","releases_url":"https://api.github.com/repos/keen/explorer/releases{/id}","created_at":"2015-06-11T17:56:40Z","updated_at":"2015-11-10T17:15:59Z","pushed_at":"2015-11-12T16:34:06Z","git_url":"git://github.com/keen/explorer.git","ssh_url":"git@github.com:keen/explorer.git","clone_url":"https://github.com/keen/explorer.git","svn_url":"https://github.com/keen/explorer","homepage":"https://keen.github.io/explorer","size":23400,"stargazers_count":560,"watchers_count":560,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":38,"mirror_url":null,"open_issues_count":5,"forks":38,"open_issues":5,"watchers":560,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/keen/explorer/pulls/48"},"html":{"href":"https://github.com/keen/explorer/pull/48"},"issue":{"href":"https://api.github.com/repos/keen/explorer/issues/48"},"comments":{"href":"https://api.github.com/repos/keen/explorer/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/keen/explorer/pulls/48/comments"},"review_comment":{"href":"https://api.github.com/repos/keen/explorer/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/keen/explorer/pulls/48/commits"},"statuses":{"href":"https://api.github.com/repos/keen/explorer/statuses/b58406561ee0603acc71cdf46213532dc4044866"}}}}