{"action":"created","comment":{"url":"https://api.github.com/repos/EverythingMe/redash/pulls/comments/23897380","id":23897380,"diff_hunk":"@@ -158,15 +158,15 @@\n               text: 'Save Image',\n               onclick: function () {\n                 var canvas = document.createElement('canvas'); \n-                window.canvg(canvas, this.getSVG())\n+                window.canvg(canvas, this.getSVG());\n                 var href = canvas.toDataURL('image/png');\n                 var a = document.createElement('a');\n                 a.href = href;\n-                var filenameSuffix = '';\n+                var filenameSuffix = new Date().toISOString();","path":"rd_ui/app/scripts/ng_highchart.js","position":10,"original_position":10,"commit_id":"d9618cb09cecd97c1f6ff567c09b763336404890","original_commit_id":"d9618cb09cecd97c1f6ff567c09b763336404890","user":{"login":"arikfr","id":71468,"avatar_url":"https://avatars.githubusercontent.com/u/71468?v=3","gravatar_id":"","url":"https://api.github.com/users/arikfr","html_url":"https://github.com/arikfr","followers_url":"https://api.github.com/users/arikfr/followers","following_url":"https://api.github.com/users/arikfr/following{/other_user}","gists_url":"https://api.github.com/users/arikfr/gists{/gist_id}","starred_url":"https://api.github.com/users/arikfr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arikfr/subscriptions","organizations_url":"https://api.github.com/users/arikfr/orgs","repos_url":"https://api.github.com/users/arikfr/repos","events_url":"https://api.github.com/users/arikfr/events{/privacy}","received_events_url":"https://api.github.com/users/arikfr/received_events","type":"User","site_admin":false},"body":"`toISOString` includes characters like :, which might be a problem on some file systems. Add `.replace(/:/g,'_').replace('Z', '')` to make it nicer/safer. ","created_at":"2015-02-01T13:05:58Z","updated_at":"2015-02-01T13:05:58Z","html_url":"https://github.com/EverythingMe/redash/pull/370#discussion_r23897380","pull_request_url":"https://api.github.com/repos/EverythingMe/redash/pulls/370","_links":{"self":{"href":"https://api.github.com/repos/EverythingMe/redash/pulls/comments/23897380"},"html":{"href":"https://github.com/EverythingMe/redash/pull/370#discussion_r23897380"},"pull_request":{"href":"https://api.github.com/repos/EverythingMe/redash/pulls/370"}}},"pull_request":{"url":"https://api.github.com/repos/EverythingMe/redash/pulls/370","id":28430702,"html_url":"https://github.com/EverythingMe/redash/pull/370","diff_url":"https://github.com/EverythingMe/redash/pull/370.diff","patch_url":"https://github.com/EverythingMe/redash/pull/370.patch","issue_url":"https://api.github.com/repos/EverythingMe/redash/issues/370","number":370,"state":"open","locked":false,"title":"add ISO datetime to filename when saving chart as image","user":{"login":"alexanderlz","id":1499009,"avatar_url":"https://avatars.githubusercontent.com/u/1499009?v=3","gravatar_id":"","url":"https://api.github.com/users/alexanderlz","html_url":"https://github.com/alexanderlz","followers_url":"https://api.github.com/users/alexanderlz/followers","following_url":"https://api.github.com/users/alexanderlz/following{/other_user}","gists_url":"https://api.github.com/users/alexanderlz/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanderlz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanderlz/subscriptions","organizations_url":"https://api.github.com/users/alexanderlz/orgs","repos_url":"https://api.github.com/users/alexanderlz/repos","events_url":"https://api.github.com/users/alexanderlz/events{/privacy}","received_events_url":"https://api.github.com/users/alexanderlz/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-02-01T12:53:49Z","updated_at":"2015-02-01T13:05:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cd4133dee23bbc8144eeb28d6f33bfec74ae2b7f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/EverythingMe/redash/pulls/370/commits","review_comments_url":"https://api.github.com/repos/EverythingMe/redash/pulls/370/comments","review_comment_url":"https://api.github.com/repos/EverythingMe/redash/pulls/comments/{number}","comments_url":"https://api.github.com/repos/EverythingMe/redash/issues/370/comments","statuses_url":"https://api.github.com/repos/EverythingMe/redash/statuses/d9618cb09cecd97c1f6ff567c09b763336404890","head":{"label":"alexanderlz:master","ref":"master","sha":"d9618cb09cecd97c1f6ff567c09b763336404890","user":{"login":"alexanderlz","id":1499009,"avatar_url":"https://avatars.githubusercontent.com/u/1499009?v=3","gravatar_id":"","url":"https://api.github.com/users/alexanderlz","html_url":"https://github.com/alexanderlz","followers_url":"https://api.github.com/users/alexanderlz/followers","following_url":"https://api.github.com/users/alexanderlz/following{/other_user}","gists_url":"https://api.github.com/users/alexanderlz/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanderlz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanderlz/subscriptions","organizations_url":"https://api.github.com/users/alexanderlz/orgs","repos_url":"https://api.github.com/users/alexanderlz/repos","events_url":"https://api.github.com/users/alexanderlz/events{/privacy}","received_events_url":"https://api.github.com/users/alexanderlz/received_events","type":"User","site_admin":false},"repo":{"id":14085943,"name":"redash","full_name":"alexanderlz/redash","owner":{"login":"alexanderlz","id":1499009,"avatar_url":"https://avatars.githubusercontent.com/u/1499009?v=3","gravatar_id":"","url":"https://api.github.com/users/alexanderlz","html_url":"https://github.com/alexanderlz","followers_url":"https://api.github.com/users/alexanderlz/followers","following_url":"https://api.github.com/users/alexanderlz/following{/other_user}","gists_url":"https://api.github.com/users/alexanderlz/gists{/gist_id}","starred_url":"https://api.github.com/users/alexanderlz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexanderlz/subscriptions","organizations_url":"https://api.github.com/users/alexanderlz/orgs","repos_url":"https://api.github.com/users/alexanderlz/repos","events_url":"https://api.github.com/users/alexanderlz/events{/privacy}","received_events_url":"https://api.github.com/users/alexanderlz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexanderlz/redash","description":"Rethinking how data is queried, shared and visualized. A web application that allows to easily query an existing database, share the dataset and visualize it in different ways. Oh and you can also create dashboards.","fork":true,"url":"https://api.github.com/repos/alexanderlz/redash","forks_url":"https://api.github.com/repos/alexanderlz/redash/forks","keys_url":"https://api.github.com/repos/alexanderlz/redash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexanderlz/redash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexanderlz/redash/teams","hooks_url":"https://api.github.com/repos/alexanderlz/redash/hooks","issue_events_url":"https://api.github.com/repos/alexanderlz/redash/issues/events{/number}","events_url":"https://api.github.com/repos/alexanderlz/redash/events","assignees_url":"https://api.github.com/repos/alexanderlz/redash/assignees{/user}","branches_url":"https://api.github.com/repos/alexanderlz/redash/branches{/branch}","tags_url":"https://api.github.com/repos/alexanderlz/redash/tags","blobs_url":"https://api.github.com/repos/alexanderlz/redash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexanderlz/redash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexanderlz/redash/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexanderlz/redash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexanderlz/redash/statuses/{sha}","languages_url":"https://api.github.com/repos/alexanderlz/redash/languages","stargazers_url":"https://api.github.com/repos/alexanderlz/redash/stargazers","contributors_url":"https://api.github.com/repos/alexanderlz/redash/contributors","subscribers_url":"https://api.github.com/repos/alexanderlz/redash/subscribers","subscription_url":"https://api.github.com/repos/alexanderlz/redash/subscription","commits_url":"https://api.github.com/repos/alexanderlz/redash/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexanderlz/redash/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexanderlz/redash/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexanderlz/redash/issues/comments/{number}","contents_url":"https://api.github.com/repos/alexanderlz/redash/contents/{+path}","compare_url":"https://api.github.com/repos/alexanderlz/redash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexanderlz/redash/merges","archive_url":"https://api.github.com/repos/alexanderlz/redash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexanderlz/redash/downloads","issues_url":"https://api.github.com/repos/alexanderlz/redash/issues{/number}","pulls_url":"https://api.github.com/repos/alexanderlz/redash/pulls{/number}","milestones_url":"https://api.github.com/repos/alexanderlz/redash/milestones{/number}","notifications_url":"https://api.github.com/repos/alexanderlz/redash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexanderlz/redash/labels{/name}","releases_url":"https://api.github.com/repos/alexanderlz/redash/releases{/id}","created_at":"2013-11-03T13:39:29Z","updated_at":"2015-02-01T12:53:10Z","pushed_at":"2015-02-01T12:53:10Z","git_url":"git://github.com/alexanderlz/redash.git","ssh_url":"git@github.com:alexanderlz/redash.git","clone_url":"https://github.com/alexanderlz/redash.git","svn_url":"https://github.com/alexanderlz/redash","homepage":"","size":1761,"stargazers_count":0,"watchers_count":0,"language":"Python","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":"EverythingMe:master","ref":"master","sha":"c8ca683d3a1466fff5cec6fbd6a4fb2f481eee13","user":{"login":"EverythingMe","id":1861297,"avatar_url":"https://avatars.githubusercontent.com/u/1861297?v=3","gravatar_id":"","url":"https://api.github.com/users/EverythingMe","html_url":"https://github.com/EverythingMe","followers_url":"https://api.github.com/users/EverythingMe/followers","following_url":"https://api.github.com/users/EverythingMe/following{/other_user}","gists_url":"https://api.github.com/users/EverythingMe/gists{/gist_id}","starred_url":"https://api.github.com/users/EverythingMe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EverythingMe/subscriptions","organizations_url":"https://api.github.com/users/EverythingMe/orgs","repos_url":"https://api.github.com/users/EverythingMe/repos","events_url":"https://api.github.com/users/EverythingMe/events{/privacy}","received_events_url":"https://api.github.com/users/EverythingMe/received_events","type":"Organization","site_admin":false},"repo":{"id":13926404,"name":"redash","full_name":"EverythingMe/redash","owner":{"login":"EverythingMe","id":1861297,"avatar_url":"https://avatars.githubusercontent.com/u/1861297?v=3","gravatar_id":"","url":"https://api.github.com/users/EverythingMe","html_url":"https://github.com/EverythingMe","followers_url":"https://api.github.com/users/EverythingMe/followers","following_url":"https://api.github.com/users/EverythingMe/following{/other_user}","gists_url":"https://api.github.com/users/EverythingMe/gists{/gist_id}","starred_url":"https://api.github.com/users/EverythingMe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EverythingMe/subscriptions","organizations_url":"https://api.github.com/users/EverythingMe/orgs","repos_url":"https://api.github.com/users/EverythingMe/repos","events_url":"https://api.github.com/users/EverythingMe/events{/privacy}","received_events_url":"https://api.github.com/users/EverythingMe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/EverythingMe/redash","description":"Rethinking how data is queried, shared and visualized. A web application that allows to easily query an existing database, share the dataset and visualize it in different ways. Oh and you can also create dashboards.","fork":false,"url":"https://api.github.com/repos/EverythingMe/redash","forks_url":"https://api.github.com/repos/EverythingMe/redash/forks","keys_url":"https://api.github.com/repos/EverythingMe/redash/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EverythingMe/redash/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EverythingMe/redash/teams","hooks_url":"https://api.github.com/repos/EverythingMe/redash/hooks","issue_events_url":"https://api.github.com/repos/EverythingMe/redash/issues/events{/number}","events_url":"https://api.github.com/repos/EverythingMe/redash/events","assignees_url":"https://api.github.com/repos/EverythingMe/redash/assignees{/user}","branches_url":"https://api.github.com/repos/EverythingMe/redash/branches{/branch}","tags_url":"https://api.github.com/repos/EverythingMe/redash/tags","blobs_url":"https://api.github.com/repos/EverythingMe/redash/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EverythingMe/redash/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EverythingMe/redash/git/refs{/sha}","trees_url":"https://api.github.com/repos/EverythingMe/redash/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EverythingMe/redash/statuses/{sha}","languages_url":"https://api.github.com/repos/EverythingMe/redash/languages","stargazers_url":"https://api.github.com/repos/EverythingMe/redash/stargazers","contributors_url":"https://api.github.com/repos/EverythingMe/redash/contributors","subscribers_url":"https://api.github.com/repos/EverythingMe/redash/subscribers","subscription_url":"https://api.github.com/repos/EverythingMe/redash/subscription","commits_url":"https://api.github.com/repos/EverythingMe/redash/commits{/sha}","git_commits_url":"https://api.github.com/repos/EverythingMe/redash/git/commits{/sha}","comments_url":"https://api.github.com/repos/EverythingMe/redash/comments{/number}","issue_comment_url":"https://api.github.com/repos/EverythingMe/redash/issues/comments/{number}","contents_url":"https://api.github.com/repos/EverythingMe/redash/contents/{+path}","compare_url":"https://api.github.com/repos/EverythingMe/redash/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EverythingMe/redash/merges","archive_url":"https://api.github.com/repos/EverythingMe/redash/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EverythingMe/redash/downloads","issues_url":"https://api.github.com/repos/EverythingMe/redash/issues{/number}","pulls_url":"https://api.github.com/repos/EverythingMe/redash/pulls{/number}","milestones_url":"https://api.github.com/repos/EverythingMe/redash/milestones{/number}","notifications_url":"https://api.github.com/repos/EverythingMe/redash/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EverythingMe/redash/labels{/name}","releases_url":"https://api.github.com/repos/EverythingMe/redash/releases{/id}","created_at":"2013-10-28T13:19:39Z","updated_at":"2015-02-01T11:22:42Z","pushed_at":"2015-02-01T11:25:12Z","git_url":"git://github.com/EverythingMe/redash.git","ssh_url":"git@github.com:EverythingMe/redash.git","clone_url":"https://github.com/EverythingMe/redash.git","svn_url":"https://github.com/EverythingMe/redash","homepage":"http://geeks.everything.me/2013/12/05/introducing_redash/","size":6498,"stargazers_count":218,"watchers_count":218,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":46,"mirror_url":null,"open_issues_count":78,"forks":46,"open_issues":78,"watchers":218,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EverythingMe/redash/pulls/370"},"html":{"href":"https://github.com/EverythingMe/redash/pull/370"},"issue":{"href":"https://api.github.com/repos/EverythingMe/redash/issues/370"},"comments":{"href":"https://api.github.com/repos/EverythingMe/redash/issues/370/comments"},"review_comments":{"href":"https://api.github.com/repos/EverythingMe/redash/pulls/370/comments"},"review_comment":{"href":"https://api.github.com/repos/EverythingMe/redash/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/EverythingMe/redash/pulls/370/commits"},"statuses":{"href":"https://api.github.com/repos/EverythingMe/redash/statuses/d9618cb09cecd97c1f6ff567c09b763336404890"}}}}