{"action":"created","issue":{"url":"https://api.github.com/repos/fakhrullah/nasihati/issues/25","repository_url":"https://api.github.com/repos/fakhrullah/nasihati","labels_url":"https://api.github.com/repos/fakhrullah/nasihati/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/fakhrullah/nasihati/issues/25/comments","events_url":"https://api.github.com/repos/fakhrullah/nasihati/issues/25/events","html_url":"https://github.com/fakhrullah/nasihati/pull/25","id":242294273,"number":25,"title":"Modularization","user":{"login":"Xavier-IV","id":14009259,"avatar_url":"https://avatars5.githubusercontent.com/u/14009259?v=4","gravatar_id":"","url":"https://api.github.com/users/Xavier-IV","html_url":"https://github.com/Xavier-IV","followers_url":"https://api.github.com/users/Xavier-IV/followers","following_url":"https://api.github.com/users/Xavier-IV/following{/other_user}","gists_url":"https://api.github.com/users/Xavier-IV/gists{/gist_id}","starred_url":"https://api.github.com/users/Xavier-IV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xavier-IV/subscriptions","organizations_url":"https://api.github.com/users/Xavier-IV/orgs","repos_url":"https://api.github.com/users/Xavier-IV/repos","events_url":"https://api.github.com/users/Xavier-IV/events{/privacy}","received_events_url":"https://api.github.com/users/Xavier-IV/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2017-07-12T08:08:55Z","updated_at":"2017-07-14T15:35:37Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/fakhrullah/nasihati/pulls/25","html_url":"https://github.com/fakhrullah/nasihati/pull/25","diff_url":"https://github.com/fakhrullah/nasihati/pull/25.diff","patch_url":"https://github.com/fakhrullah/nasihati/pull/25.patch"},"body":"## Removed Dependencies\r\n- [x] Project no longer require `routes/nasihat.js`\r\n- [x] Project no longer require `routes/user.js`\r\n\r\n`routes/nasihat.js` has been modularized into controller `app/controllers/resource.controller.js`\r\n`routes/user.js` has been modularized into controller `app/controllers/activity.controller.js`\r\n\r\n## Model `Advices`\r\n- [x] Added static findNextResource function to replace `nasihat_col.js`'s `getNextNasihatForId`\r\n- [x] Added static findPrevResource function to replace `nasihat_col.js`'s `getPrevNasihatForId`\r\n\r\nYou can now use the model **Find Next/Prev Resource**\r\n```\r\nlet Nasihat = require(nasihat_model_path)\r\n\r\n// Finding next nasihat resource\r\nNasihat.findPrevResource(curentId, (data) => { res.json(data[0]) })\r\n\r\n// Finding prev nasihat resource\r\nNasihat.findPrevResource(curentId, (data) => { res.json(data[0]) })\r\n\r\n```\r\n\r\n## Standard\r\n[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)\r\n\r\n## TODO\r\n\r\nPlease check again that all routes are working properly."},"comment":{"url":"https://api.github.com/repos/fakhrullah/nasihati/issues/comments/315391168","html_url":"https://github.com/fakhrullah/nasihati/pull/25#issuecomment-315391168","issue_url":"https://api.github.com/repos/fakhrullah/nasihati/issues/25","id":315391168,"user":{"login":"Xavier-IV","id":14009259,"avatar_url":"https://avatars5.githubusercontent.com/u/14009259?v=4","gravatar_id":"","url":"https://api.github.com/users/Xavier-IV","html_url":"https://github.com/Xavier-IV","followers_url":"https://api.github.com/users/Xavier-IV/followers","following_url":"https://api.github.com/users/Xavier-IV/following{/other_user}","gists_url":"https://api.github.com/users/Xavier-IV/gists{/gist_id}","starred_url":"https://api.github.com/users/Xavier-IV/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Xavier-IV/subscriptions","organizations_url":"https://api.github.com/users/Xavier-IV/orgs","repos_url":"https://api.github.com/users/Xavier-IV/repos","events_url":"https://api.github.com/users/Xavier-IV/events{/privacy}","received_events_url":"https://api.github.com/users/Xavier-IV/received_events","type":"User","site_admin":false},"created_at":"2017-07-14T15:35:37Z","updated_at":"2017-07-14T15:35:37Z","body":"## Todo\r\n\r\n- [x] Removed ESLint\r\n- [x] Better Naming\r\n   - [x] ActivityController -> NasihatController\r\n   - [x] ResourceController ->PageController\r\n- [ ] Failing routes"}}
{"actor":{"display_login":"Xavier-IV"}}