{"action":"created","comment":{"url":"https://api.github.com/repos/sdec-brasil/dashboard/pulls/comments/293626868","pull_request_review_id":249666448,"id":293626868,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI5MzYyNjg2OA==","diff_hunk":"@@ -1,11 +1,46 @@\n /* eslint-disable class-methods-use-this */\n \n+import models from '../models';\n+import { limitSettings } from '../config/config';\n+import { treatNestedFilters } from '../utils';\n+import ResponseList from '../utils/response';\n+\n+\n+const sqs = require('sequelize-querystring');\n+\n export default class CitiesController {\n   async get(req, res) {\n-    throw new Error('Not implemented');\n+    const sq = sqs.withSymbolicOps(models.Sequelize, { symbolic: true });\n+    const where = req.query.filter ? sq.find(req.query.filter) : {};\n+    treatNestedFilters(req.query, where);\n+    models.prefeitura.findAndCountAll({","path":"api/src/controllers/Cities.js","position":17,"original_position":17,"commit_id":"6fe7834fa542a90de5e62df190ddf53569d0c8ad","original_commit_id":"6fe7834fa542a90de5e62df190ddf53569d0c8ad","user":{"login":"tloriato","id":11580564,"node_id":"MDQ6VXNlcjExNTgwNTY0","avatar_url":"https://avatars1.githubusercontent.com/u/11580564?v=4","gravatar_id":"","url":"https://api.github.com/users/tloriato","html_url":"https://github.com/tloriato","followers_url":"https://api.github.com/users/tloriato/followers","following_url":"https://api.github.com/users/tloriato/following{/other_user}","gists_url":"https://api.github.com/users/tloriato/gists{/gist_id}","starred_url":"https://api.github.com/users/tloriato/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tloriato/subscriptions","organizations_url":"https://api.github.com/users/tloriato/orgs","repos_url":"https://api.github.com/users/tloriato/repos","events_url":"https://api.github.com/users/tloriato/events{/privacy}","received_events_url":"https://api.github.com/users/tloriato/received_events","type":"User","site_admin":false},"body":"Que nem o InvoiceGet está implementado mais ou menos","created_at":"2019-06-14T00:47:23Z","updated_at":"2019-06-14T00:49:25Z","html_url":"https://github.com/sdec-brasil/dashboard/pull/51#discussion_r293626868","pull_request_url":"https://api.github.com/repos/sdec-brasil/dashboard/pulls/51","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/sdec-brasil/dashboard/pulls/comments/293626868"},"html":{"href":"https://github.com/sdec-brasil/dashboard/pull/51#discussion_r293626868"},"pull_request":{"href":"https://api.github.com/repos/sdec-brasil/dashboard/pulls/51"}},"in_reply_to_id":293625382},"pull_request":{"url":"https://api.github.com/repos/sdec-brasil/dashboard/pulls/51","id":286267703,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjg2MjY3NzAz","html_url":"https://github.com/sdec-brasil/dashboard/pull/51","diff_url":"https://github.com/sdec-brasil/dashboard/pull/51.diff","patch_url":"https://github.com/sdec-brasil/dashboard/pull/51.patch","issue_url":"https://api.github.com/repos/sdec-brasil/dashboard/issues/51","number":51,"state":"open","locked":false,"title":"Invoices list view","user":{"login":"dbeyda","id":13556776,"node_id":"MDQ6VXNlcjEzNTU2Nzc2","avatar_url":"https://avatars0.githubusercontent.com/u/13556776?v=4","gravatar_id":"","url":"https://api.github.com/users/dbeyda","html_url":"https://github.com/dbeyda","followers_url":"https://api.github.com/users/dbeyda/followers","following_url":"https://api.github.com/users/dbeyda/following{/other_user}","gists_url":"https://api.github.com/users/dbeyda/gists{/gist_id}","starred_url":"https://api.github.com/users/dbeyda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbeyda/subscriptions","organizations_url":"https://api.github.com/users/dbeyda/orgs","repos_url":"https://api.github.com/users/dbeyda/repos","events_url":"https://api.github.com/users/dbeyda/events{/privacy}","received_events_url":"https://api.github.com/users/dbeyda/received_events","type":"User","site_admin":false},"body":"Invoices list view ready.\r\nAll filters working, but filters do not have the same names specified on the docs. If this is a problem, we can think of something to correct it.\r\nThe response from the endpoint is being formatted as requested. \r\n\r\nAlso updated ResponseList and FilterListSet to support more data types.","created_at":"2019-06-07T17:09:15Z","updated_at":"2019-06-14T00:49:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sdec-brasil/dashboard/pulls/51/commits","review_comments_url":"https://api.github.com/repos/sdec-brasil/dashboard/pulls/51/comments","review_comment_url":"https://api.github.com/repos/sdec-brasil/dashboard/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sdec-brasil/dashboard/issues/51/comments","statuses_url":"https://api.github.com/repos/sdec-brasil/dashboard/statuses/6fe7834fa542a90de5e62df190ddf53569d0c8ad","head":{"label":"sdec-brasil:invoicesListView","ref":"invoicesListView","sha":"6fe7834fa542a90de5e62df190ddf53569d0c8ad","user":{"login":"sdec-brasil","id":47876397,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3ODc2Mzk3","avatar_url":"https://avatars3.githubusercontent.com/u/47876397?v=4","gravatar_id":"","url":"https://api.github.com/users/sdec-brasil","html_url":"https://github.com/sdec-brasil","followers_url":"https://api.github.com/users/sdec-brasil/followers","following_url":"https://api.github.com/users/sdec-brasil/following{/other_user}","gists_url":"https://api.github.com/users/sdec-brasil/gists{/gist_id}","starred_url":"https://api.github.com/users/sdec-brasil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdec-brasil/subscriptions","organizations_url":"https://api.github.com/users/sdec-brasil/orgs","repos_url":"https://api.github.com/users/sdec-brasil/repos","events_url":"https://api.github.com/users/sdec-brasil/events{/privacy}","received_events_url":"https://api.github.com/users/sdec-brasil/received_events","type":"Organization","site_admin":false},"repo":{"id":173507297,"node_id":"MDEwOlJlcG9zaXRvcnkxNzM1MDcyOTc=","name":"dashboard","full_name":"sdec-brasil/dashboard","private":false,"owner":{"login":"sdec-brasil","id":47876397,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3ODc2Mzk3","avatar_url":"https://avatars3.githubusercontent.com/u/47876397?v=4","gravatar_id":"","url":"https://api.github.com/users/sdec-brasil","html_url":"https://github.com/sdec-brasil","followers_url":"https://api.github.com/users/sdec-brasil/followers","following_url":"https://api.github.com/users/sdec-brasil/following{/other_user}","gists_url":"https://api.github.com/users/sdec-brasil/gists{/gist_id}","starred_url":"https://api.github.com/users/sdec-brasil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdec-brasil/subscriptions","organizations_url":"https://api.github.com/users/sdec-brasil/orgs","repos_url":"https://api.github.com/users/sdec-brasil/repos","events_url":"https://api.github.com/users/sdec-brasil/events{/privacy}","received_events_url":"https://api.github.com/users/sdec-brasil/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/sdec-brasil/dashboard","description":"Painel de Controle Público do SDEC","fork":false,"url":"https://api.github.com/repos/sdec-brasil/dashboard","forks_url":"https://api.github.com/repos/sdec-brasil/dashboard/forks","keys_url":"https://api.github.com/repos/sdec-brasil/dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sdec-brasil/dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sdec-brasil/dashboard/teams","hooks_url":"https://api.github.com/repos/sdec-brasil/dashboard/hooks","issue_events_url":"https://api.github.com/repos/sdec-brasil/dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/sdec-brasil/dashboard/events","assignees_url":"https://api.github.com/repos/sdec-brasil/dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/sdec-brasil/dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/sdec-brasil/dashboard/tags","blobs_url":"https://api.github.com/repos/sdec-brasil/dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sdec-brasil/dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sdec-brasil/dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/sdec-brasil/dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sdec-brasil/dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/sdec-brasil/dashboard/languages","stargazers_url":"https://api.github.com/repos/sdec-brasil/dashboard/stargazers","contributors_url":"https://api.github.com/repos/sdec-brasil/dashboard/contributors","subscribers_url":"https://api.github.com/repos/sdec-brasil/dashboard/subscribers","subscription_url":"https://api.github.com/repos/sdec-brasil/dashboard/subscription","commits_url":"https://api.github.com/repos/sdec-brasil/dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/sdec-brasil/dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/sdec-brasil/dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/sdec-brasil/dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/sdec-brasil/dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/sdec-brasil/dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sdec-brasil/dashboard/merges","archive_url":"https://api.github.com/repos/sdec-brasil/dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sdec-brasil/dashboard/downloads","issues_url":"https://api.github.com/repos/sdec-brasil/dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/sdec-brasil/dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/sdec-brasil/dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/sdec-brasil/dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sdec-brasil/dashboard/labels{/name}","releases_url":"https://api.github.com/repos/sdec-brasil/dashboard/releases{/id}","deployments_url":"https://api.github.com/repos/sdec-brasil/dashboard/deployments","created_at":"2019-03-02T22:48:10Z","updated_at":"2019-06-13T20:58:00Z","pushed_at":"2019-06-13T23:07:39Z","git_url":"git://github.com/sdec-brasil/dashboard.git","ssh_url":"git@github.com:sdec-brasil/dashboard.git","clone_url":"https://github.com/sdec-brasil/dashboard.git","svn_url":"https://github.com/sdec-brasil/dashboard","homepage":null,"size":1014,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":6,"watchers":3,"default_branch":"master"}},"base":{"label":"sdec-brasil:master","ref":"master","sha":"92c2c6859fe46db81428793d85facde6af707234","user":{"login":"sdec-brasil","id":47876397,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3ODc2Mzk3","avatar_url":"https://avatars3.githubusercontent.com/u/47876397?v=4","gravatar_id":"","url":"https://api.github.com/users/sdec-brasil","html_url":"https://github.com/sdec-brasil","followers_url":"https://api.github.com/users/sdec-brasil/followers","following_url":"https://api.github.com/users/sdec-brasil/following{/other_user}","gists_url":"https://api.github.com/users/sdec-brasil/gists{/gist_id}","starred_url":"https://api.github.com/users/sdec-brasil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdec-brasil/subscriptions","organizations_url":"https://api.github.com/users/sdec-brasil/orgs","repos_url":"https://api.github.com/users/sdec-brasil/repos","events_url":"https://api.github.com/users/sdec-brasil/events{/privacy}","received_events_url":"https://api.github.com/users/sdec-brasil/received_events","type":"Organization","site_admin":false},"repo":{"id":173507297,"node_id":"MDEwOlJlcG9zaXRvcnkxNzM1MDcyOTc=","name":"dashboard","full_name":"sdec-brasil/dashboard","private":false,"owner":{"login":"sdec-brasil","id":47876397,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3ODc2Mzk3","avatar_url":"https://avatars3.githubusercontent.com/u/47876397?v=4","gravatar_id":"","url":"https://api.github.com/users/sdec-brasil","html_url":"https://github.com/sdec-brasil","followers_url":"https://api.github.com/users/sdec-brasil/followers","following_url":"https://api.github.com/users/sdec-brasil/following{/other_user}","gists_url":"https://api.github.com/users/sdec-brasil/gists{/gist_id}","starred_url":"https://api.github.com/users/sdec-brasil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdec-brasil/subscriptions","organizations_url":"https://api.github.com/users/sdec-brasil/orgs","repos_url":"https://api.github.com/users/sdec-brasil/repos","events_url":"https://api.github.com/users/sdec-brasil/events{/privacy}","received_events_url":"https://api.github.com/users/sdec-brasil/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/sdec-brasil/dashboard","description":"Painel de Controle Público do SDEC","fork":false,"url":"https://api.github.com/repos/sdec-brasil/dashboard","forks_url":"https://api.github.com/repos/sdec-brasil/dashboard/forks","keys_url":"https://api.github.com/repos/sdec-brasil/dashboard/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sdec-brasil/dashboard/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sdec-brasil/dashboard/teams","hooks_url":"https://api.github.com/repos/sdec-brasil/dashboard/hooks","issue_events_url":"https://api.github.com/repos/sdec-brasil/dashboard/issues/events{/number}","events_url":"https://api.github.com/repos/sdec-brasil/dashboard/events","assignees_url":"https://api.github.com/repos/sdec-brasil/dashboard/assignees{/user}","branches_url":"https://api.github.com/repos/sdec-brasil/dashboard/branches{/branch}","tags_url":"https://api.github.com/repos/sdec-brasil/dashboard/tags","blobs_url":"https://api.github.com/repos/sdec-brasil/dashboard/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sdec-brasil/dashboard/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sdec-brasil/dashboard/git/refs{/sha}","trees_url":"https://api.github.com/repos/sdec-brasil/dashboard/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sdec-brasil/dashboard/statuses/{sha}","languages_url":"https://api.github.com/repos/sdec-brasil/dashboard/languages","stargazers_url":"https://api.github.com/repos/sdec-brasil/dashboard/stargazers","contributors_url":"https://api.github.com/repos/sdec-brasil/dashboard/contributors","subscribers_url":"https://api.github.com/repos/sdec-brasil/dashboard/subscribers","subscription_url":"https://api.github.com/repos/sdec-brasil/dashboard/subscription","commits_url":"https://api.github.com/repos/sdec-brasil/dashboard/commits{/sha}","git_commits_url":"https://api.github.com/repos/sdec-brasil/dashboard/git/commits{/sha}","comments_url":"https://api.github.com/repos/sdec-brasil/dashboard/comments{/number}","issue_comment_url":"https://api.github.com/repos/sdec-brasil/dashboard/issues/comments{/number}","contents_url":"https://api.github.com/repos/sdec-brasil/dashboard/contents/{+path}","compare_url":"https://api.github.com/repos/sdec-brasil/dashboard/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sdec-brasil/dashboard/merges","archive_url":"https://api.github.com/repos/sdec-brasil/dashboard/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sdec-brasil/dashboard/downloads","issues_url":"https://api.github.com/repos/sdec-brasil/dashboard/issues{/number}","pulls_url":"https://api.github.com/repos/sdec-brasil/dashboard/pulls{/number}","milestones_url":"https://api.github.com/repos/sdec-brasil/dashboard/milestones{/number}","notifications_url":"https://api.github.com/repos/sdec-brasil/dashboard/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sdec-brasil/dashboard/labels{/name}","releases_url":"https://api.github.com/repos/sdec-brasil/dashboard/releases{/id}","deployments_url":"https://api.github.com/repos/sdec-brasil/dashboard/deployments","created_at":"2019-03-02T22:48:10Z","updated_at":"2019-06-13T20:58:00Z","pushed_at":"2019-06-13T23:07:39Z","git_url":"git://github.com/sdec-brasil/dashboard.git","ssh_url":"git@github.com:sdec-brasil/dashboard.git","clone_url":"https://github.com/sdec-brasil/dashboard.git","svn_url":"https://github.com/sdec-brasil/dashboard","homepage":null,"size":1014,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":6,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sdec-brasil/dashboard/pulls/51"},"html":{"href":"https://github.com/sdec-brasil/dashboard/pull/51"},"issue":{"href":"https://api.github.com/repos/sdec-brasil/dashboard/issues/51"},"comments":{"href":"https://api.github.com/repos/sdec-brasil/dashboard/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/sdec-brasil/dashboard/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/sdec-brasil/dashboard/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sdec-brasil/dashboard/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/sdec-brasil/dashboard/statuses/6fe7834fa542a90de5e62df190ddf53569d0c8ad"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"tloriato"}}