{"action":"created","comment":{"url":"https://api.github.com/repos/offtherailz/MapStore2/pulls/comments/151060045","pull_request_review_id":76704455,"id":151060045,"diff_hunk":"@@ -0,0 +1,146 @@\n+ /*\n+  * Copyright 2017, GeoSolutions Sas.\n+  * All rights reserved.\n+  *\n+  * This source code is licensed under the BSD-style license found in the\n+  * LICENSE file in the root directory of this source tree.\n+  */\n+const React = require('react');\n+const {Row, Col, Form, FormGroup, ControlLabel} = require('react-bootstrap');\n+const Message = require('../../../../I18N/Message');\n+const Select = require('react-select');\n+const ColorRangeSelector = require('../../../../style/ColorRangeSelector');\n+const StepHeader = require('../../../../misc/wizard/StepHeader');\n+const SwitchButton = require('../../../../misc/switch/SwitchButton');\n+const COLORS = [{\n+    name: 'global.colors.random',\n+    schema: 'qualitative',\n+    options: {base: 190, range: 360, options: {}}\n+}, {\n+    name: 'global.colors.blue',\n+    schema: 'sequencial',\n+    options: {base: 190, range: 20}\n+}, {\n+    name: 'global.colors.red',\n+    schema: 'sequencial',\n+    options: {base: 10, range: 4}\n+}, {\n+    name: 'global.colors.green',\n+    schema: 'sequencial',\n+    options: {base: 120, range: 4}\n+}, {\n+    name: 'global.colors.brown',\n+    schema: 'sequencial',\n+    options: {base: 30, range: 4}\n+}, {\n+    name: 'global.colors.purple',\n+    schema: 'sequencial',\n+    options: {base: 300, range: 4}\n+}];\n+\n+\n+const getColorRangeItems = (type) => {\n+    if ( type !== \"pie\") {\n+        return COLORS.filter( c => c.schema !== 'qualitative');\n+    }\n+    return COLORS;\n+};\n+\n+module.exports = ({data = {options: {}}, onChange = () => {}, options=[], aggregationOptions = [], sampleChart}) => (<Row>\n+        <StepHeader title={<Message msgId={`widgets.chartOptionsTitle`} />} />\n+          <Col xs={12}>\n+              <div style={{marginBottom: \"30px\"}}>\n+                  {sampleChart}\n+              </div>\n+              </Col>\n+          <Col xs={12}>\n+          <Form className=\"chart-options-form\" horizontal>\n+        <FormGroup controlId=\"groupByAttributes\" className=\"mapstore-block-width\">\n+          <Col componentClass={ControlLabel} sm={6}>\n+            <Message msgId={`widgets.groupByAttributes.${data.type}`} />\n+          </Col>\n+          <Col sm={6}>\n+              <Select\n+                  value={data.options && data.options.groupByAttributes}\n+                  options={options}\n+                  placeholder={'Select attribute'}\n+                  onChange={(val) => {\n+                      onChange(\"options.groupByAttributes\", val && val.value);\n+                  }}\n+                  />\n+          </Col>\n+        </FormGroup>\n+\n+        <FormGroup controlId=\"aggregationAttribute\" className=\"mapstore-block-width\">\n+            <Col componentClass={ControlLabel} sm={6}>\n+              <Message msgId={`widgets.aggregationAttribute.${data.type}`} />","path":"web/client/components/widgets/builder/wizard/chart/ChartOptions.jsx","position":76,"original_position":76,"commit_id":"2ebed8a8849514d5e03471dcc0d996878926c9d5","original_commit_id":"2ebed8a8849514d5e03471dcc0d996878926c9d5","user":{"login":"codacy-bot","id":19940114,"avatar_url":"https://avatars1.githubusercontent.com/u/19940114?v=4","gravatar_id":"","url":"https://api.github.com/users/codacy-bot","html_url":"https://github.com/codacy-bot","followers_url":"https://api.github.com/users/codacy-bot/followers","following_url":"https://api.github.com/users/codacy-bot/following{/other_user}","gists_url":"https://api.github.com/users/codacy-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/codacy-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codacy-bot/subscriptions","organizations_url":"https://api.github.com/users/codacy-bot/orgs","repos_url":"https://api.github.com/users/codacy-bot/repos","events_url":"https://api.github.com/users/codacy-bot/events{/privacy}","received_events_url":"https://api.github.com/users/codacy-bot/received_events","type":"User","site_admin":false},"body":"![Codacy](https://www.codacy.com/assets/images/favicon.png) Issue found: [Expected indentation of 20 spaces but found 14. (indent)](https://www.codacy.com/app/offtherailz/MapStore2/pullRequest?prid=1075545)","created_at":"2017-11-15T08:31:04Z","updated_at":"2017-11-15T08:31:04Z","html_url":"https://github.com/offtherailz/MapStore2/pull/25#discussion_r151060045","pull_request_url":"https://api.github.com/repos/offtherailz/MapStore2/pulls/25","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/offtherailz/MapStore2/pulls/comments/151060045"},"html":{"href":"https://github.com/offtherailz/MapStore2/pull/25#discussion_r151060045"},"pull_request":{"href":"https://api.github.com/repos/offtherailz/MapStore2/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/offtherailz/MapStore2/pulls/25","id":152571805,"html_url":"https://github.com/offtherailz/MapStore2/pull/25","diff_url":"https://github.com/offtherailz/MapStore2/pull/25.diff","patch_url":"https://github.com/offtherailz/MapStore2/pull/25.patch","issue_url":"https://api.github.com/repos/offtherailz/MapStore2/issues/25","number":25,"state":"open","locked":false,"title":"Widgets","user":{"login":"offtherailz","id":1279510,"avatar_url":"https://avatars2.githubusercontent.com/u/1279510?v=4","gravatar_id":"","url":"https://api.github.com/users/offtherailz","html_url":"https://github.com/offtherailz","followers_url":"https://api.github.com/users/offtherailz/followers","following_url":"https://api.github.com/users/offtherailz/following{/other_user}","gists_url":"https://api.github.com/users/offtherailz/gists{/gist_id}","starred_url":"https://api.github.com/users/offtherailz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/offtherailz/subscriptions","organizations_url":"https://api.github.com/users/offtherailz/orgs","repos_url":"https://api.github.com/users/offtherailz/repos","events_url":"https://api.github.com/users/offtherailz/events{/privacy}","received_events_url":"https://api.github.com/users/offtherailz/received_events","type":"User","site_admin":false},"body":"## Description\r\nA few sentences describing the overall goals of the pull request' s commits.\r\n\r\n## Issues\r\n - Fix #<issue>\r\n - ...\r\n\r\n**Please check if the PR fulfills these requirements**\r\n- [ ] The commit message follows our guidelines: https://github.com/geosolutions-it/MapStore2/blob/master/CONTRIBUTING.md\r\n- [ ] Tests for the changes have been added (for bug fixes / features)\r\n- [ ] Docs have been added / updated (for bug fixes / features)\r\n\r\n\r\n**What kind of change does this PR introduce?** (check one with \"x\", remove the others)\r\n\r\n - [ ] Bugfix\r\n - [ ] Feature\r\n - [ ] Code style update (formatting, local variables)\r\n - [ ] Refactoring (no functional changes, no api changes)\r\n - [ ] Build related changes\r\n - [ ] CI related changes\r\n - [ ] Other... Please describe:\r\n\r\n\r\n**What is the current behavior?** (You can also link to an open issue here)\r\n\r\n\r\n**What is the new behavior?**\r\n\r\n\r\n**Does this PR introduce a breaking change?** (check one with \"x\", remove the other)\r\n\r\n - [ ] Yes\r\n - [ ] No\r\n\r\nIf this PR contains a breaking change, please describe the impact and migration path for existing applications: ...\r\n\r\n**Other information**:\r\n","created_at":"2017-11-14T17:41:38Z","updated_at":"2017-11-15T08:31:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d4908d2ce640269dea9088ec76d1ea2d8a594070","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/offtherailz/MapStore2/pulls/25/commits","review_comments_url":"https://api.github.com/repos/offtherailz/MapStore2/pulls/25/comments","review_comment_url":"https://api.github.com/repos/offtherailz/MapStore2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/offtherailz/MapStore2/issues/25/comments","statuses_url":"https://api.github.com/repos/offtherailz/MapStore2/statuses/2ebed8a8849514d5e03471dcc0d996878926c9d5","head":{"label":"offtherailz:widgets","ref":"widgets","sha":"2ebed8a8849514d5e03471dcc0d996878926c9d5","user":{"login":"offtherailz","id":1279510,"avatar_url":"https://avatars2.githubusercontent.com/u/1279510?v=4","gravatar_id":"","url":"https://api.github.com/users/offtherailz","html_url":"https://github.com/offtherailz","followers_url":"https://api.github.com/users/offtherailz/followers","following_url":"https://api.github.com/users/offtherailz/following{/other_user}","gists_url":"https://api.github.com/users/offtherailz/gists{/gist_id}","starred_url":"https://api.github.com/users/offtherailz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/offtherailz/subscriptions","organizations_url":"https://api.github.com/users/offtherailz/orgs","repos_url":"https://api.github.com/users/offtherailz/repos","events_url":"https://api.github.com/users/offtherailz/events{/privacy}","received_events_url":"https://api.github.com/users/offtherailz/received_events","type":"User","site_admin":false},"repo":{"id":39825439,"name":"MapStore2","full_name":"offtherailz/MapStore2","owner":{"login":"offtherailz","id":1279510,"avatar_url":"https://avatars2.githubusercontent.com/u/1279510?v=4","gravatar_id":"","url":"https://api.github.com/users/offtherailz","html_url":"https://github.com/offtherailz","followers_url":"https://api.github.com/users/offtherailz/followers","following_url":"https://api.github.com/users/offtherailz/following{/other_user}","gists_url":"https://api.github.com/users/offtherailz/gists{/gist_id}","starred_url":"https://api.github.com/users/offtherailz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/offtherailz/subscriptions","organizations_url":"https://api.github.com/users/offtherailz/orgs","repos_url":"https://api.github.com/users/offtherailz/repos","events_url":"https://api.github.com/users/offtherailz/events{/privacy}","received_events_url":"https://api.github.com/users/offtherailz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/offtherailz/MapStore2","description":"Create, save and share maps and mashup in a simple and intuitive way!","fork":true,"url":"https://api.github.com/repos/offtherailz/MapStore2","forks_url":"https://api.github.com/repos/offtherailz/MapStore2/forks","keys_url":"https://api.github.com/repos/offtherailz/MapStore2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/offtherailz/MapStore2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/offtherailz/MapStore2/teams","hooks_url":"https://api.github.com/repos/offtherailz/MapStore2/hooks","issue_events_url":"https://api.github.com/repos/offtherailz/MapStore2/issues/events{/number}","events_url":"https://api.github.com/repos/offtherailz/MapStore2/events","assignees_url":"https://api.github.com/repos/offtherailz/MapStore2/assignees{/user}","branches_url":"https://api.github.com/repos/offtherailz/MapStore2/branches{/branch}","tags_url":"https://api.github.com/repos/offtherailz/MapStore2/tags","blobs_url":"https://api.github.com/repos/offtherailz/MapStore2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/offtherailz/MapStore2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/offtherailz/MapStore2/git/refs{/sha}","trees_url":"https://api.github.com/repos/offtherailz/MapStore2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/offtherailz/MapStore2/statuses/{sha}","languages_url":"https://api.github.com/repos/offtherailz/MapStore2/languages","stargazers_url":"https://api.github.com/repos/offtherailz/MapStore2/stargazers","contributors_url":"https://api.github.com/repos/offtherailz/MapStore2/contributors","subscribers_url":"https://api.github.com/repos/offtherailz/MapStore2/subscribers","subscription_url":"https://api.github.com/repos/offtherailz/MapStore2/subscription","commits_url":"https://api.github.com/repos/offtherailz/MapStore2/commits{/sha}","git_commits_url":"https://api.github.com/repos/offtherailz/MapStore2/git/commits{/sha}","comments_url":"https://api.github.com/repos/offtherailz/MapStore2/comments{/number}","issue_comment_url":"https://api.github.com/repos/offtherailz/MapStore2/issues/comments{/number}","contents_url":"https://api.github.com/repos/offtherailz/MapStore2/contents/{+path}","compare_url":"https://api.github.com/repos/offtherailz/MapStore2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/offtherailz/MapStore2/merges","archive_url":"https://api.github.com/repos/offtherailz/MapStore2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/offtherailz/MapStore2/downloads","issues_url":"https://api.github.com/repos/offtherailz/MapStore2/issues{/number}","pulls_url":"https://api.github.com/repos/offtherailz/MapStore2/pulls{/number}","milestones_url":"https://api.github.com/repos/offtherailz/MapStore2/milestones{/number}","notifications_url":"https://api.github.com/repos/offtherailz/MapStore2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/offtherailz/MapStore2/labels{/name}","releases_url":"https://api.github.com/repos/offtherailz/MapStore2/releases{/id}","deployments_url":"https://api.github.com/repos/offtherailz/MapStore2/deployments","created_at":"2015-07-28T09:39:23Z","updated_at":"2016-03-15T15:48:22Z","pushed_at":"2017-11-14T17:42:43Z","git_url":"git://github.com/offtherailz/MapStore2.git","ssh_url":"git@github.com:offtherailz/MapStore2.git","clone_url":"https://github.com/offtherailz/MapStore2.git","svn_url":"https://github.com/offtherailz/MapStore2","homepage":"http://www.geo-solutions.it/technologies/mapstore/","size":20232,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"base":{"label":"offtherailz:master","ref":"master","sha":"a5059e9bef55e83102207f93f5c680ca3b93ef7d","user":{"login":"offtherailz","id":1279510,"avatar_url":"https://avatars2.githubusercontent.com/u/1279510?v=4","gravatar_id":"","url":"https://api.github.com/users/offtherailz","html_url":"https://github.com/offtherailz","followers_url":"https://api.github.com/users/offtherailz/followers","following_url":"https://api.github.com/users/offtherailz/following{/other_user}","gists_url":"https://api.github.com/users/offtherailz/gists{/gist_id}","starred_url":"https://api.github.com/users/offtherailz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/offtherailz/subscriptions","organizations_url":"https://api.github.com/users/offtherailz/orgs","repos_url":"https://api.github.com/users/offtherailz/repos","events_url":"https://api.github.com/users/offtherailz/events{/privacy}","received_events_url":"https://api.github.com/users/offtherailz/received_events","type":"User","site_admin":false},"repo":{"id":39825439,"name":"MapStore2","full_name":"offtherailz/MapStore2","owner":{"login":"offtherailz","id":1279510,"avatar_url":"https://avatars2.githubusercontent.com/u/1279510?v=4","gravatar_id":"","url":"https://api.github.com/users/offtherailz","html_url":"https://github.com/offtherailz","followers_url":"https://api.github.com/users/offtherailz/followers","following_url":"https://api.github.com/users/offtherailz/following{/other_user}","gists_url":"https://api.github.com/users/offtherailz/gists{/gist_id}","starred_url":"https://api.github.com/users/offtherailz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/offtherailz/subscriptions","organizations_url":"https://api.github.com/users/offtherailz/orgs","repos_url":"https://api.github.com/users/offtherailz/repos","events_url":"https://api.github.com/users/offtherailz/events{/privacy}","received_events_url":"https://api.github.com/users/offtherailz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/offtherailz/MapStore2","description":"Create, save and share maps and mashup in a simple and intuitive way!","fork":true,"url":"https://api.github.com/repos/offtherailz/MapStore2","forks_url":"https://api.github.com/repos/offtherailz/MapStore2/forks","keys_url":"https://api.github.com/repos/offtherailz/MapStore2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/offtherailz/MapStore2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/offtherailz/MapStore2/teams","hooks_url":"https://api.github.com/repos/offtherailz/MapStore2/hooks","issue_events_url":"https://api.github.com/repos/offtherailz/MapStore2/issues/events{/number}","events_url":"https://api.github.com/repos/offtherailz/MapStore2/events","assignees_url":"https://api.github.com/repos/offtherailz/MapStore2/assignees{/user}","branches_url":"https://api.github.com/repos/offtherailz/MapStore2/branches{/branch}","tags_url":"https://api.github.com/repos/offtherailz/MapStore2/tags","blobs_url":"https://api.github.com/repos/offtherailz/MapStore2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/offtherailz/MapStore2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/offtherailz/MapStore2/git/refs{/sha}","trees_url":"https://api.github.com/repos/offtherailz/MapStore2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/offtherailz/MapStore2/statuses/{sha}","languages_url":"https://api.github.com/repos/offtherailz/MapStore2/languages","stargazers_url":"https://api.github.com/repos/offtherailz/MapStore2/stargazers","contributors_url":"https://api.github.com/repos/offtherailz/MapStore2/contributors","subscribers_url":"https://api.github.com/repos/offtherailz/MapStore2/subscribers","subscription_url":"https://api.github.com/repos/offtherailz/MapStore2/subscription","commits_url":"https://api.github.com/repos/offtherailz/MapStore2/commits{/sha}","git_commits_url":"https://api.github.com/repos/offtherailz/MapStore2/git/commits{/sha}","comments_url":"https://api.github.com/repos/offtherailz/MapStore2/comments{/number}","issue_comment_url":"https://api.github.com/repos/offtherailz/MapStore2/issues/comments{/number}","contents_url":"https://api.github.com/repos/offtherailz/MapStore2/contents/{+path}","compare_url":"https://api.github.com/repos/offtherailz/MapStore2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/offtherailz/MapStore2/merges","archive_url":"https://api.github.com/repos/offtherailz/MapStore2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/offtherailz/MapStore2/downloads","issues_url":"https://api.github.com/repos/offtherailz/MapStore2/issues{/number}","pulls_url":"https://api.github.com/repos/offtherailz/MapStore2/pulls{/number}","milestones_url":"https://api.github.com/repos/offtherailz/MapStore2/milestones{/number}","notifications_url":"https://api.github.com/repos/offtherailz/MapStore2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/offtherailz/MapStore2/labels{/name}","releases_url":"https://api.github.com/repos/offtherailz/MapStore2/releases{/id}","deployments_url":"https://api.github.com/repos/offtherailz/MapStore2/deployments","created_at":"2015-07-28T09:39:23Z","updated_at":"2016-03-15T15:48:22Z","pushed_at":"2017-11-14T17:42:43Z","git_url":"git://github.com/offtherailz/MapStore2.git","ssh_url":"git@github.com:offtherailz/MapStore2.git","clone_url":"https://github.com/offtherailz/MapStore2.git","svn_url":"https://github.com/offtherailz/MapStore2","homepage":"http://www.geo-solutions.it/technologies/mapstore/","size":20232,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/offtherailz/MapStore2/pulls/25"},"html":{"href":"https://github.com/offtherailz/MapStore2/pull/25"},"issue":{"href":"https://api.github.com/repos/offtherailz/MapStore2/issues/25"},"comments":{"href":"https://api.github.com/repos/offtherailz/MapStore2/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/offtherailz/MapStore2/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/offtherailz/MapStore2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/offtherailz/MapStore2/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/offtherailz/MapStore2/statuses/2ebed8a8849514d5e03471dcc0d996878926c9d5"}},"author_association":"OWNER"}}
{"actor":{"display_login":"codacy-bot"}}