{"action":"created","issue":{"url":"https://api.github.com/repos/Coderockr/vitrine-social/issues/139","repository_url":"https://api.github.com/repos/Coderockr/vitrine-social","labels_url":"https://api.github.com/repos/Coderockr/vitrine-social/issues/139/labels{/name}","comments_url":"https://api.github.com/repos/Coderockr/vitrine-social/issues/139/comments","events_url":"https://api.github.com/repos/Coderockr/vitrine-social/issues/139/events","html_url":"https://github.com/Coderockr/vitrine-social/pull/139","id":329604160,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyODIwMTky","number":139,"title":"GraphQL","user":{"login":"lucassabreu","id":3457213,"node_id":"MDQ6VXNlcjM0NTcyMTM=","avatar_url":"https://avatars2.githubusercontent.com/u/3457213?v=4","gravatar_id":"","url":"https://api.github.com/users/lucassabreu","html_url":"https://github.com/lucassabreu","followers_url":"https://api.github.com/users/lucassabreu/followers","following_url":"https://api.github.com/users/lucassabreu/following{/other_user}","gists_url":"https://api.github.com/users/lucassabreu/gists{/gist_id}","starred_url":"https://api.github.com/users/lucassabreu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucassabreu/subscriptions","organizations_url":"https://api.github.com/users/lucassabreu/orgs","repos_url":"https://api.github.com/users/lucassabreu/repos","events_url":"https://api.github.com/users/lucassabreu/events{/privacy}","received_events_url":"https://api.github.com/users/lucassabreu/received_events","type":"User","site_admin":false},"labels":[{"id":677039146,"node_id":"MDU6TGFiZWw2NzcwMzkxNDY=","url":"https://api.github.com/repos/Coderockr/vitrine-social/labels/Stage:%20In%20progress","name":"Stage: In progress","color":"fbca04","default":false},{"id":803869278,"node_id":"MDU6TGFiZWw4MDM4NjkyNzg=","url":"https://api.github.com/repos/Coderockr/vitrine-social/labels/WIP","name":"WIP","color":"d93f0b","default":false}],"state":"open","locked":false,"assignee":{"login":"lucassabreu","id":3457213,"node_id":"MDQ6VXNlcjM0NTcyMTM=","avatar_url":"https://avatars2.githubusercontent.com/u/3457213?v=4","gravatar_id":"","url":"https://api.github.com/users/lucassabreu","html_url":"https://github.com/lucassabreu","followers_url":"https://api.github.com/users/lucassabreu/followers","following_url":"https://api.github.com/users/lucassabreu/following{/other_user}","gists_url":"https://api.github.com/users/lucassabreu/gists{/gist_id}","starred_url":"https://api.github.com/users/lucassabreu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucassabreu/subscriptions","organizations_url":"https://api.github.com/users/lucassabreu/orgs","repos_url":"https://api.github.com/users/lucassabreu/repos","events_url":"https://api.github.com/users/lucassabreu/events{/privacy}","received_events_url":"https://api.github.com/users/lucassabreu/received_events","type":"User","site_admin":false},"assignees":[{"login":"lucassabreu","id":3457213,"node_id":"MDQ6VXNlcjM0NTcyMTM=","avatar_url":"https://avatars2.githubusercontent.com/u/3457213?v=4","gravatar_id":"","url":"https://api.github.com/users/lucassabreu","html_url":"https://github.com/lucassabreu","followers_url":"https://api.github.com/users/lucassabreu/followers","following_url":"https://api.github.com/users/lucassabreu/following{/other_user}","gists_url":"https://api.github.com/users/lucassabreu/gists{/gist_id}","starred_url":"https://api.github.com/users/lucassabreu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucassabreu/subscriptions","organizations_url":"https://api.github.com/users/lucassabreu/orgs","repos_url":"https://api.github.com/users/lucassabreu/repos","events_url":"https://api.github.com/users/lucassabreu/events{/privacy}","received_events_url":"https://api.github.com/users/lucassabreu/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-06-05T20:01:40Z","updated_at":"2018-07-04T18:49:15Z","closed_at":null,"author_association":"COLLABORATOR","pull_request":{"url":"https://api.github.com/repos/Coderockr/vitrine-social/pulls/139","html_url":"https://github.com/Coderockr/vitrine-social/pull/139","diff_url":"https://github.com/Coderockr/vitrine-social/pull/139.diff","patch_url":"https://github.com/Coderockr/vitrine-social/pull/139.patch"},"body":"Schema a ser desenvolvido:\r\n\r\n### Types:\r\n\r\n- [x] `Organization`\r\n  - [x] `id:Int!, email:String!, logo:String!, name:String!, phone:String!, slug:String!, video:String!,about:String!,address:Address!`\r\n- [x] `Address`\r\n  - [x] `city:String, complement:String, neighbordhood:String, number:String, state:String, street:String, zipcode:String`\r\n- [x] `Category`\r\n  - [x] `icon:String!, id:Int!, name:String!`\r\n  - [x] `needsCount:Int!`\r\n- [x] `Need`\r\n  - [x] `category: Category, description: String!, dueDate: Date, id: Int!, organization: Organization, reachedQuantity: Int, requiredQuantity: Int, status: NeedStatus, title: String!, unity: String`\r\n  - [x] `createdAt:Date`\r\n  - [x] `updatedAt:Date`\r\n  - [x] `images: [NeedImage]`\r\n- [x] `NeedImage`\r\n  - [x] `id:Int!,name:String!,url:String!`\r\n- [x] `OrganizationImage`\r\n  - [x] `id:Int!,name:String!,url:String!`\r\n- [x] `NeedStatus`: `ACTIVE`, `INACTIVE`\r\n- [x] `LoginResult`: \r\n  - [x] `organization:Organization, token:String!`\r\n\r\n### Queries:\r\n\r\n- [x] `allCategories(): [Category]`\r\n- [x] `category(id:Int!): Category`\r\n- [x] `need(id:Int!): Need`\r\n- [x] `organization(id:Int!): Organization`\r\n- [x] `search(categories:[Int],organization:Int,page:Int,text:String): [Need]`\r\n- [x] `viewer(token:String!): Organization`\r\n\r\n### Mutations:\r\n\r\n- [x] `login(email:String!, password:String!): LoginResult`\r\n- [x] `viewer(token:String!):ViewerMutation`\r\n- [ ] `subscribeToOrganization(input:SubscribeOrganizationInput): SubscribeOrganizationPayload`\r\n  - [ ] `SubscribeOrganizationInput`\r\n    - [ ] `organizationId:Int!`\r\n    - [ ] `email:String!`\r\n  - [ ] `SubscribeOrganizationPayload`\r\n    - [ ] `organization:Organization`\r\n- [ ] `unsubscribeToOrganization(input:UnsubscribeOrganizationInput): UnsubscribeOrganizationPayload`\r\n  - [ ] `UnsubscribeOrganizationInput`\r\n    - [ ] `organizationId:Int!`\r\n    - [ ] `email:String!`\r\n  - [ ] `UnsubscribeOrganizationPayload`\r\n    - [ ] `organization:Organization`\r\n    - [ ] `email:String!`\r\n- [x] `resetPassword(input:ResetPasswordInput):ResetPasswordPaylod`\r\n  - [x] `ResetPasswordInput`\r\n    - [x] `token:String!`\r\n    - [x] `newPassword:String!`\r\n  - [x] `ResetPasswordPayload`\r\n    - [x] `organization:Organization`\r\n- [ ] `answerNeed(input:AnswerNeedInput):AnswerNeedPaylod`\r\n  - [ ] `AnswerNeedInput`\r\n    - [ ] `email:String, name:String!,phone:String,address:AddressInput,message:String!`\r\n  - [ ] `AnswerNeedPaylod`\r\n    - [ ] `need:Need`\r\n\r\n#### ViewerMutation\r\n\r\n- [x] `needCreate(input: NeedCreateInput): NeedCreatePayload`\r\n  - [x] `NeedCreateInput`\r\n    - [x] `unity: String!, dueDate: Date, categoryId: Int!, title: String!, description: String!, requiredQuantity: Int, reachedQuantity: Int`\r\n  - [x] `NeedCreatePayload`\r\n    - [x] `need: Need`\r\n- [x] `needUpdate(input: NeedUpdateInput): NeedUpdatePayload`\r\n  - [x] `NeedUpdateInput`\r\n    - [x] `id:Int!`\r\n    - [x] `patch: NeedPatchInput!`\r\n  - [x] `NeedPatchInput`\r\n    - [x] `reachedQuantity: Int, unity: String, dueDate: Date, categoryId: Int, status: NeedStatus, title: String, description: String, requiredQuantity: Int`\r\n- [ ] `needImageCreate(input: NeedImageCreateInput): NeedImageCreatePayload`\r\n  - [ ] `NeedImageCreateInput`\r\n    - [ ] `name:String!, file:Upload`\r\n  - [ ] `NeedImageCreatePayload`\r\n    - [ ] `need: Need`\r\n    - [ ] `image: NeedImage`\r\n- [ ] `needImageDelete(input: NeedImageDeleteInput): NeedImageDeletePayload`\r\n  - [ ] `NeedImageDeleteInput`\r\n    - [ ] `needImageId:Int!`\r\n  - [ ] `NeedImageDeletePayload`\r\n    - [ ] `need: Need`\r\n    - [ ] `image: NeedImage`\r\n- [x] `organizationUpdate(input: OrganizationUpdateInput): OrganizationUpdatePayload`\r\n  - [x] `OrganizationUpdateInput`\r\n    - [x] `address: AddressInput, name: String, logo: String, phone: String, about: String, video: String, email: String`\r\n  - [x] `AddressInput`\r\n    - [x] `neighbordhood: String, city: String, state: String, zipcode: String, street: String, number: String, complement: String`\r\n  - [x] `OrganizationUpdatePayload`\r\n    - [x] `organization: Organization`\r\n- [x] `updatePassword(input: UpdatePasswordInput): UpdatePasswordPayload`\r\n  - [x] `UpdatePasswordInput`\r\n    - [x] `currentPassword: String!, newPassword: String!`\r\n  - [x] `UpdatePasswordPayload`\r\n    - [x] `organization: Organization`\r\n- [ ] `organizationImageCreate(input:OrganizationImageCreateInput): OrganizationImageCreatePayload`\r\n  - [ ] `OrganizationImageCreateInput`\r\n    - [ ] `name:String!, file:Upload`\r\n  - [ ] `OrganizationImageCreatePayload`\r\n    - [ ] `organization:Organization`\r\n    - [ ] `image: OrganizationImage`\r\n- [ ] `organizationImageDelete(input:OrganizationImageDeleteInput): OrganizationImageDeletePayload`\r\n  - [ ] `OrganizationImageDeleteInput`\r\n    - [ ] `organizationImageId:Int!`\r\n  - [ ] `OrganizationImageDeletePayload`\r\n    - [ ] `organization:Organization`\r\n    - [ ] `image:OrganizationImage`"},"comment":{"url":"https://api.github.com/repos/Coderockr/vitrine-social/issues/comments/402542182","html_url":"https://github.com/Coderockr/vitrine-social/pull/139#issuecomment-402542182","issue_url":"https://api.github.com/repos/Coderockr/vitrine-social/issues/139","id":402542182,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjU0MjE4Mg==","user":{"login":"codacy-bot","id":19940114,"node_id":"MDQ6VXNlcjE5OTQwMTE0","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},"created_at":"2018-07-04T18:49:15Z","updated_at":"2018-07-04T18:49:15Z","author_association":"NONE","body":"\n![Codacy](https://app.codacy.com/assets/images/favicon.png) Here is an overview of what got changed by this pull request:\n\n\n```diff\n\nComplexity increasing per file\n==============================\n- server/db/repo/organization.go  6\n- server/handlers/update_password.go  2\n         \n```\n\n\nSee the complete overview on [Codacy](https://app.codacy.com/app/coderockrdev/vitrine-social/pullRequest?prid=1862288&bid=7898186)\n        "}}
{"actor":{"display_login":"codacy-bot"}}