{"action":"created","comment":{"url":"https://api.github.com/repos/PopulateTools/gobierto/pulls/comments/175097572","pull_request_review_id":104574982,"id":175097572,"diff_hunk":"@@ -0,0 +1,27 @@\n+'use strict';\n+\n+var DebtLevelCard = Class.extend({\n+  init: function(divClass, city_id, current_year) {\n+    this.container = divClass;\n+    this.currentYear = (current_year !== undefined) ? parseInt(current_year) : null;\n+    this.tbiToken = window.populateData.token;\n+    this.popUrl = window.populateData.endpoint + '/datasets/ds-nivel-endeudamiento.json?sort_desc_by=date&with_metadata=true&limit=5&filter_by_municipality_id=' + city_id + '&date_date_range=20100101-' + this.currentYear + '1231';\n+  },\n+  getData: function() {\n+    var pop = d3.json(this.popUrl)\n+      .header('authorization', 'Bearer ' + this.tbiToken)\n+\n+    d3.queue()\n+      .defer(pop.get)\n+      .await(function (error, jsonData) {\n+        if (error) throw error;\n+\n+        var value = jsonData.data[0].value;\n+\n+        new SimpleCard(this.container, jsonData, value, 'tax_autonomy');","path":"app/assets/javascripts/gobierto_budgets/cards/debt_level.js","position":21,"original_position":21,"commit_id":"e27a0d6b066c730d714432b1c77556b295b94cac","original_commit_id":"e27a0d6b066c730d714432b1c77556b295b94cac","user":{"login":"houndci-bot","id":6697940,"avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"'SimpleCard' is not defined                         no-undef","created_at":"2018-03-16T13:59:31Z","updated_at":"2018-03-16T13:59:31Z","html_url":"https://github.com/PopulateTools/gobierto/pull/1518#discussion_r175097572","pull_request_url":"https://api.github.com/repos/PopulateTools/gobierto/pulls/1518","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/PopulateTools/gobierto/pulls/comments/175097572"},"html":{"href":"https://github.com/PopulateTools/gobierto/pull/1518#discussion_r175097572"},"pull_request":{"href":"https://api.github.com/repos/PopulateTools/gobierto/pulls/1518"}}},"pull_request":{"url":"https://api.github.com/repos/PopulateTools/gobierto/pulls/1518","id":174930799,"html_url":"https://github.com/PopulateTools/gobierto/pull/1518","diff_url":"https://github.com/PopulateTools/gobierto/pull/1518.diff","patch_url":"https://github.com/PopulateTools/gobierto/pull/1518.patch","issue_url":"https://api.github.com/repos/PopulateTools/gobierto/issues/1518","number":1518,"state":"open","locked":false,"title":"Budgets indicators page","user":{"login":"apradillap","id":69764,"avatar_url":"https://avatars0.githubusercontent.com/u/69764?v=4","gravatar_id":"","url":"https://api.github.com/users/apradillap","html_url":"https://github.com/apradillap","followers_url":"https://api.github.com/users/apradillap/followers","following_url":"https://api.github.com/users/apradillap/following{/other_user}","gists_url":"https://api.github.com/users/apradillap/gists{/gist_id}","starred_url":"https://api.github.com/users/apradillap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apradillap/subscriptions","organizations_url":"https://api.github.com/users/apradillap/orgs","repos_url":"https://api.github.com/users/apradillap/repos","events_url":"https://api.github.com/users/apradillap/events{/privacy}","received_events_url":"https://api.github.com/users/apradillap/received_events","type":"User","site_admin":false},"body":"Closes #1510 \r\n\r\n## :v: What does this PR do?\r\n\r\nNew subsection in Budgets module, Indicators:\r\n\r\n- ds-ahorro-bruto\r\n- ds-ahorro-neto\r\n- ds-autonomia-fiscal\r\n- ds-capacidad-autofinanciacion\r\n- ds-carga-financiera\r\n- ds-coste-deuda\r\n- ds-financiacion-inversiones\r\n- ds-indice-ahorro-bruto\r\n- ds-indice-ahorro-neto\r\n- ds-inversion-por-habitante\r\n- ds-nivel-endeudamiento\r\n- ds-presion-fiscal-por-habitante\r\n- ds-presupuestos-municipales-partida\r\n- ds-presupuestos-municipales-total\r\n- ds-riesgo-financiero\r\n- ds-rigidez-gasto\r\n\r\n## :mag: How should this be manually tested?\r\n\r\nEnable the section:\r\n\r\n/admin/gobierto_budgets/options\r\n\r\nSee the section:\r\n\r\n/presupuestos/indicadores\r\n\r\n## :eyes: Screenshots\r\n\r\n### Before this PR\r\n\r\nNothing, new section\r\n\r\n### After this PR\r\n\r\n![captura de pantalla 2018-03-14 a las 12 46 49](https://user-images.githubusercontent.com/69764/37400671-eaeefb3e-2785-11e8-982b-a4ebf857c7ba.png)\r\n\r\n![captura de pantalla 2018-03-14 a las 12 47 14](https://user-images.githubusercontent.com/69764/37400674-eccadcde-2785-11e8-8198-f8793b6ea321.png)\r\n\r\n## :shipit: Does this PR changes any configuration file?\r\n\r\nNo\r\n\r\n## Pending\r\n\r\n- [ ] As we have brought the styles of another module GobiertoObservatory, having \"body with the classes governing_budgets indicators index indicators_index\" are not shown properly","created_at":"2018-03-14T11:50:02Z","updated_at":"2018-03-16T13:59:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"80b652b57c72549f869272fc8ecfbddf30c0733f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":474325430,"url":"https://api.github.com/repos/PopulateTools/gobierto/labels/gobierto-budgets","name":"gobierto-budgets","color":"fbca04","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/PopulateTools/gobierto/pulls/1518/commits","review_comments_url":"https://api.github.com/repos/PopulateTools/gobierto/pulls/1518/comments","review_comment_url":"https://api.github.com/repos/PopulateTools/gobierto/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PopulateTools/gobierto/issues/1518/comments","statuses_url":"https://api.github.com/repos/PopulateTools/gobierto/statuses/e27a0d6b066c730d714432b1c77556b295b94cac","head":{"label":"PopulateTools:1510-budgets-indicators-page","ref":"1510-budgets-indicators-page","sha":"e27a0d6b066c730d714432b1c77556b295b94cac","user":{"login":"PopulateTools","id":12809868,"avatar_url":"https://avatars2.githubusercontent.com/u/12809868?v=4","gravatar_id":"","url":"https://api.github.com/users/PopulateTools","html_url":"https://github.com/PopulateTools","followers_url":"https://api.github.com/users/PopulateTools/followers","following_url":"https://api.github.com/users/PopulateTools/following{/other_user}","gists_url":"https://api.github.com/users/PopulateTools/gists{/gist_id}","starred_url":"https://api.github.com/users/PopulateTools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PopulateTools/subscriptions","organizations_url":"https://api.github.com/users/PopulateTools/orgs","repos_url":"https://api.github.com/users/PopulateTools/repos","events_url":"https://api.github.com/users/PopulateTools/events{/privacy}","received_events_url":"https://api.github.com/users/PopulateTools/received_events","type":"Organization","site_admin":false},"repo":{"id":71801692,"name":"gobierto","full_name":"PopulateTools/gobierto","owner":{"login":"PopulateTools","id":12809868,"avatar_url":"https://avatars2.githubusercontent.com/u/12809868?v=4","gravatar_id":"","url":"https://api.github.com/users/PopulateTools","html_url":"https://github.com/PopulateTools","followers_url":"https://api.github.com/users/PopulateTools/followers","following_url":"https://api.github.com/users/PopulateTools/following{/other_user}","gists_url":"https://api.github.com/users/PopulateTools/gists{/gist_id}","starred_url":"https://api.github.com/users/PopulateTools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PopulateTools/subscriptions","organizations_url":"https://api.github.com/users/PopulateTools/orgs","repos_url":"https://api.github.com/users/PopulateTools/repos","events_url":"https://api.github.com/users/PopulateTools/events{/privacy}","received_events_url":"https://api.github.com/users/PopulateTools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PopulateTools/gobierto","description":"Plataforma de gobierno abierto open source","fork":false,"url":"https://api.github.com/repos/PopulateTools/gobierto","forks_url":"https://api.github.com/repos/PopulateTools/gobierto/forks","keys_url":"https://api.github.com/repos/PopulateTools/gobierto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PopulateTools/gobierto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PopulateTools/gobierto/teams","hooks_url":"https://api.github.com/repos/PopulateTools/gobierto/hooks","issue_events_url":"https://api.github.com/repos/PopulateTools/gobierto/issues/events{/number}","events_url":"https://api.github.com/repos/PopulateTools/gobierto/events","assignees_url":"https://api.github.com/repos/PopulateTools/gobierto/assignees{/user}","branches_url":"https://api.github.com/repos/PopulateTools/gobierto/branches{/branch}","tags_url":"https://api.github.com/repos/PopulateTools/gobierto/tags","blobs_url":"https://api.github.com/repos/PopulateTools/gobierto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PopulateTools/gobierto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PopulateTools/gobierto/git/refs{/sha}","trees_url":"https://api.github.com/repos/PopulateTools/gobierto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PopulateTools/gobierto/statuses/{sha}","languages_url":"https://api.github.com/repos/PopulateTools/gobierto/languages","stargazers_url":"https://api.github.com/repos/PopulateTools/gobierto/stargazers","contributors_url":"https://api.github.com/repos/PopulateTools/gobierto/contributors","subscribers_url":"https://api.github.com/repos/PopulateTools/gobierto/subscribers","subscription_url":"https://api.github.com/repos/PopulateTools/gobierto/subscription","commits_url":"https://api.github.com/repos/PopulateTools/gobierto/commits{/sha}","git_commits_url":"https://api.github.com/repos/PopulateTools/gobierto/git/commits{/sha}","comments_url":"https://api.github.com/repos/PopulateTools/gobierto/comments{/number}","issue_comment_url":"https://api.github.com/repos/PopulateTools/gobierto/issues/comments{/number}","contents_url":"https://api.github.com/repos/PopulateTools/gobierto/contents/{+path}","compare_url":"https://api.github.com/repos/PopulateTools/gobierto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PopulateTools/gobierto/merges","archive_url":"https://api.github.com/repos/PopulateTools/gobierto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PopulateTools/gobierto/downloads","issues_url":"https://api.github.com/repos/PopulateTools/gobierto/issues{/number}","pulls_url":"https://api.github.com/repos/PopulateTools/gobierto/pulls{/number}","milestones_url":"https://api.github.com/repos/PopulateTools/gobierto/milestones{/number}","notifications_url":"https://api.github.com/repos/PopulateTools/gobierto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PopulateTools/gobierto/labels{/name}","releases_url":"https://api.github.com/repos/PopulateTools/gobierto/releases{/id}","deployments_url":"https://api.github.com/repos/PopulateTools/gobierto/deployments","created_at":"2016-10-24T15:13:26Z","updated_at":"2018-03-16T11:09:20Z","pushed_at":"2018-03-16T13:59:15Z","git_url":"git://github.com/PopulateTools/gobierto.git","ssh_url":"git@github.com:PopulateTools/gobierto.git","clone_url":"https://github.com/PopulateTools/gobierto.git","svn_url":"https://github.com/PopulateTools/gobierto","homepage":"https://gobierto.es","size":20130,"stargazers_count":32,"watchers_count":32,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":95,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":8,"open_issues":95,"watchers":32,"default_branch":"master"}},"base":{"label":"PopulateTools:master","ref":"master","sha":"0f3a88a6ca56fae78cae6c935705bdc4b523aa13","user":{"login":"PopulateTools","id":12809868,"avatar_url":"https://avatars2.githubusercontent.com/u/12809868?v=4","gravatar_id":"","url":"https://api.github.com/users/PopulateTools","html_url":"https://github.com/PopulateTools","followers_url":"https://api.github.com/users/PopulateTools/followers","following_url":"https://api.github.com/users/PopulateTools/following{/other_user}","gists_url":"https://api.github.com/users/PopulateTools/gists{/gist_id}","starred_url":"https://api.github.com/users/PopulateTools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PopulateTools/subscriptions","organizations_url":"https://api.github.com/users/PopulateTools/orgs","repos_url":"https://api.github.com/users/PopulateTools/repos","events_url":"https://api.github.com/users/PopulateTools/events{/privacy}","received_events_url":"https://api.github.com/users/PopulateTools/received_events","type":"Organization","site_admin":false},"repo":{"id":71801692,"name":"gobierto","full_name":"PopulateTools/gobierto","owner":{"login":"PopulateTools","id":12809868,"avatar_url":"https://avatars2.githubusercontent.com/u/12809868?v=4","gravatar_id":"","url":"https://api.github.com/users/PopulateTools","html_url":"https://github.com/PopulateTools","followers_url":"https://api.github.com/users/PopulateTools/followers","following_url":"https://api.github.com/users/PopulateTools/following{/other_user}","gists_url":"https://api.github.com/users/PopulateTools/gists{/gist_id}","starred_url":"https://api.github.com/users/PopulateTools/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PopulateTools/subscriptions","organizations_url":"https://api.github.com/users/PopulateTools/orgs","repos_url":"https://api.github.com/users/PopulateTools/repos","events_url":"https://api.github.com/users/PopulateTools/events{/privacy}","received_events_url":"https://api.github.com/users/PopulateTools/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PopulateTools/gobierto","description":"Plataforma de gobierno abierto open source","fork":false,"url":"https://api.github.com/repos/PopulateTools/gobierto","forks_url":"https://api.github.com/repos/PopulateTools/gobierto/forks","keys_url":"https://api.github.com/repos/PopulateTools/gobierto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PopulateTools/gobierto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PopulateTools/gobierto/teams","hooks_url":"https://api.github.com/repos/PopulateTools/gobierto/hooks","issue_events_url":"https://api.github.com/repos/PopulateTools/gobierto/issues/events{/number}","events_url":"https://api.github.com/repos/PopulateTools/gobierto/events","assignees_url":"https://api.github.com/repos/PopulateTools/gobierto/assignees{/user}","branches_url":"https://api.github.com/repos/PopulateTools/gobierto/branches{/branch}","tags_url":"https://api.github.com/repos/PopulateTools/gobierto/tags","blobs_url":"https://api.github.com/repos/PopulateTools/gobierto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PopulateTools/gobierto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PopulateTools/gobierto/git/refs{/sha}","trees_url":"https://api.github.com/repos/PopulateTools/gobierto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PopulateTools/gobierto/statuses/{sha}","languages_url":"https://api.github.com/repos/PopulateTools/gobierto/languages","stargazers_url":"https://api.github.com/repos/PopulateTools/gobierto/stargazers","contributors_url":"https://api.github.com/repos/PopulateTools/gobierto/contributors","subscribers_url":"https://api.github.com/repos/PopulateTools/gobierto/subscribers","subscription_url":"https://api.github.com/repos/PopulateTools/gobierto/subscription","commits_url":"https://api.github.com/repos/PopulateTools/gobierto/commits{/sha}","git_commits_url":"https://api.github.com/repos/PopulateTools/gobierto/git/commits{/sha}","comments_url":"https://api.github.com/repos/PopulateTools/gobierto/comments{/number}","issue_comment_url":"https://api.github.com/repos/PopulateTools/gobierto/issues/comments{/number}","contents_url":"https://api.github.com/repos/PopulateTools/gobierto/contents/{+path}","compare_url":"https://api.github.com/repos/PopulateTools/gobierto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PopulateTools/gobierto/merges","archive_url":"https://api.github.com/repos/PopulateTools/gobierto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PopulateTools/gobierto/downloads","issues_url":"https://api.github.com/repos/PopulateTools/gobierto/issues{/number}","pulls_url":"https://api.github.com/repos/PopulateTools/gobierto/pulls{/number}","milestones_url":"https://api.github.com/repos/PopulateTools/gobierto/milestones{/number}","notifications_url":"https://api.github.com/repos/PopulateTools/gobierto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PopulateTools/gobierto/labels{/name}","releases_url":"https://api.github.com/repos/PopulateTools/gobierto/releases{/id}","deployments_url":"https://api.github.com/repos/PopulateTools/gobierto/deployments","created_at":"2016-10-24T15:13:26Z","updated_at":"2018-03-16T11:09:20Z","pushed_at":"2018-03-16T13:59:15Z","git_url":"git://github.com/PopulateTools/gobierto.git","ssh_url":"git@github.com:PopulateTools/gobierto.git","clone_url":"https://github.com/PopulateTools/gobierto.git","svn_url":"https://github.com/PopulateTools/gobierto","homepage":"https://gobierto.es","size":20130,"stargazers_count":32,"watchers_count":32,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"archived":false,"open_issues_count":95,"license":{"key":"agpl-3.0","name":"GNU Affero General Public License v3.0","spdx_id":"AGPL-3.0","url":"https://api.github.com/licenses/agpl-3.0"},"forks":8,"open_issues":95,"watchers":32,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PopulateTools/gobierto/pulls/1518"},"html":{"href":"https://github.com/PopulateTools/gobierto/pull/1518"},"issue":{"href":"https://api.github.com/repos/PopulateTools/gobierto/issues/1518"},"comments":{"href":"https://api.github.com/repos/PopulateTools/gobierto/issues/1518/comments"},"review_comments":{"href":"https://api.github.com/repos/PopulateTools/gobierto/pulls/1518/comments"},"review_comment":{"href":"https://api.github.com/repos/PopulateTools/gobierto/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PopulateTools/gobierto/pulls/1518/commits"},"statuses":{"href":"https://api.github.com/repos/PopulateTools/gobierto/statuses/e27a0d6b066c730d714432b1c77556b295b94cac"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"houndci-bot"}}