{"action":"created","comment":{"url":"https://api.github.com/repos/Alameen688/MyDiary/pulls/comments/207192019","pull_request_review_id":142751302,"id":207192019,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzE5MjAxOQ==","diff_hunk":"@@ -1,16 +1,17 @@\n /* eslint-disable no-unused-vars */\n const baseUrl = 'http://127.0.0.1:3000/api/v1';\n+/** WORKING WITH COOKIES REFERENCE https://www.w3schools.com/js/js_cookies.asp* */\n const getCookie = (cname) => {\n   const name = `${cname}=`;\n   const decodedCookie = decodeURIComponent(document.cookie);\n-  const cookieStringArray = decodedCookie.split(';');\n-  for (let i = 0; i < cookieStringArray.length; i + 1) {\n-    let cookieString = cookieStringArray[i];\n-    while (cookieString.charAt(0) === ' ') {\n-      cookieString = cookieString.substring(1);\n+  const ca = decodedCookie.split(';');","path":"client/js/utils.js","position":12,"original_position":12,"commit_id":"328d298ab809c9ab6f9a51cfc3cda1e877a99af2","original_commit_id":"328d298ab809c9ab6f9a51cfc3cda1e877a99af2","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","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":"'const' is available in ES6 (use 'esversion: 6') or Mozilla JS extensions (use moz).","created_at":"2018-08-02T11:29:58Z","updated_at":"2018-08-02T11:29:59Z","html_url":"https://github.com/Alameen688/MyDiary/pull/29#discussion_r207192019","pull_request_url":"https://api.github.com/repos/Alameen688/MyDiary/pulls/29","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Alameen688/MyDiary/pulls/comments/207192019"},"html":{"href":"https://github.com/Alameen688/MyDiary/pull/29#discussion_r207192019"},"pull_request":{"href":"https://api.github.com/repos/Alameen688/MyDiary/pulls/29"}}},"pull_request":{"url":"https://api.github.com/repos/Alameen688/MyDiary/pulls/29","id":205703089,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA1NzAzMDg5","html_url":"https://github.com/Alameen688/MyDiary/pull/29","diff_url":"https://github.com/Alameen688/MyDiary/pull/29.diff","patch_url":"https://github.com/Alameen688/MyDiary/pull/29.patch","issue_url":"https://api.github.com/repos/Alameen688/MyDiary/issues/29","number":29,"state":"open","locked":false,"title":"159483112 Frontend Client should be able to see list of entries and also view a particular entry from the list","user":{"login":"Alameen688","id":9039613,"node_id":"MDQ6VXNlcjkwMzk2MTM=","avatar_url":"https://avatars3.githubusercontent.com/u/9039613?v=4","gravatar_id":"","url":"https://api.github.com/users/Alameen688","html_url":"https://github.com/Alameen688","followers_url":"https://api.github.com/users/Alameen688/followers","following_url":"https://api.github.com/users/Alameen688/following{/other_user}","gists_url":"https://api.github.com/users/Alameen688/gists{/gist_id}","starred_url":"https://api.github.com/users/Alameen688/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alameen688/subscriptions","organizations_url":"https://api.github.com/users/Alameen688/orgs","repos_url":"https://api.github.com/users/Alameen688/repos","events_url":"https://api.github.com/users/Alameen688/events{/privacy}","received_events_url":"https://api.github.com/users/Alameen688/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nImplements a working frontend list entries and view entry by connecting ui template and server api\r\nendpoint for get all entries and get entry by id. A change to the\r\nindex.html is also included to remove unnecessary footer text (based on LFA feedback)\r\n#### Description of Task to be completed?\r\nThe following should be working\r\n- List all diary entry for logged in user\r\n- View a particular by id for a logged in user\r\n#### How should this be manually tested?\r\nAfter cloning the repo, cd into it then\r\n- make sure you have postgresql installed on your machine and start it.\r\n- add a postgreSQL DATABASE_URL to your .env file\r\n   ```\r\n     DATABASE_URL=postgresql://username:password@localhost:5432/mydiarydb\r\n   ```\r\n - RUN  `npm run dev` to start the server\r\n - Navigate to `/client/list-entry.html`, you should be able to view a list of all entries for the logged in user\r\n - Navigate to the address of one of the entries on the list `/client/view-entry.html?id=<entry_id>`, you should be see the details for that particular entry with the specified <entry_id>\r\n#### Any background context you want to provide?\r\nnone\r\n#### What are the relevant pivotal tracker stories?\r\n[#159483112](https://www.pivotaltracker.com/story/show/159483112)\r\n\r\n","created_at":"2018-08-02T11:29:49Z","updated_at":"2018-08-02T11:30:00Z","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/Alameen688/MyDiary/pulls/29/commits","review_comments_url":"https://api.github.com/repos/Alameen688/MyDiary/pulls/29/comments","review_comment_url":"https://api.github.com/repos/Alameen688/MyDiary/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Alameen688/MyDiary/issues/29/comments","statuses_url":"https://api.github.com/repos/Alameen688/MyDiary/statuses/328d298ab809c9ab6f9a51cfc3cda1e877a99af2","head":{"label":"Alameen688:ft-frontend-list-view-159483112","ref":"ft-frontend-list-view-159483112","sha":"328d298ab809c9ab6f9a51cfc3cda1e877a99af2","user":{"login":"Alameen688","id":9039613,"node_id":"MDQ6VXNlcjkwMzk2MTM=","avatar_url":"https://avatars3.githubusercontent.com/u/9039613?v=4","gravatar_id":"","url":"https://api.github.com/users/Alameen688","html_url":"https://github.com/Alameen688","followers_url":"https://api.github.com/users/Alameen688/followers","following_url":"https://api.github.com/users/Alameen688/following{/other_user}","gists_url":"https://api.github.com/users/Alameen688/gists{/gist_id}","starred_url":"https://api.github.com/users/Alameen688/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alameen688/subscriptions","organizations_url":"https://api.github.com/users/Alameen688/orgs","repos_url":"https://api.github.com/users/Alameen688/repos","events_url":"https://api.github.com/users/Alameen688/events{/privacy}","received_events_url":"https://api.github.com/users/Alameen688/received_events","type":"User","site_admin":false},"repo":{"id":140422404,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA0MjI0MDQ=","name":"MyDiary","full_name":"Alameen688/MyDiary","owner":{"login":"Alameen688","id":9039613,"node_id":"MDQ6VXNlcjkwMzk2MTM=","avatar_url":"https://avatars3.githubusercontent.com/u/9039613?v=4","gravatar_id":"","url":"https://api.github.com/users/Alameen688","html_url":"https://github.com/Alameen688","followers_url":"https://api.github.com/users/Alameen688/followers","following_url":"https://api.github.com/users/Alameen688/following{/other_user}","gists_url":"https://api.github.com/users/Alameen688/gists{/gist_id}","starred_url":"https://api.github.com/users/Alameen688/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alameen688/subscriptions","organizations_url":"https://api.github.com/users/Alameen688/orgs","repos_url":"https://api.github.com/users/Alameen688/repos","events_url":"https://api.github.com/users/Alameen688/events{/privacy}","received_events_url":"https://api.github.com/users/Alameen688/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Alameen688/MyDiary","description":null,"fork":false,"url":"https://api.github.com/repos/Alameen688/MyDiary","forks_url":"https://api.github.com/repos/Alameen688/MyDiary/forks","keys_url":"https://api.github.com/repos/Alameen688/MyDiary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Alameen688/MyDiary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Alameen688/MyDiary/teams","hooks_url":"https://api.github.com/repos/Alameen688/MyDiary/hooks","issue_events_url":"https://api.github.com/repos/Alameen688/MyDiary/issues/events{/number}","events_url":"https://api.github.com/repos/Alameen688/MyDiary/events","assignees_url":"https://api.github.com/repos/Alameen688/MyDiary/assignees{/user}","branches_url":"https://api.github.com/repos/Alameen688/MyDiary/branches{/branch}","tags_url":"https://api.github.com/repos/Alameen688/MyDiary/tags","blobs_url":"https://api.github.com/repos/Alameen688/MyDiary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Alameen688/MyDiary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Alameen688/MyDiary/git/refs{/sha}","trees_url":"https://api.github.com/repos/Alameen688/MyDiary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Alameen688/MyDiary/statuses/{sha}","languages_url":"https://api.github.com/repos/Alameen688/MyDiary/languages","stargazers_url":"https://api.github.com/repos/Alameen688/MyDiary/stargazers","contributors_url":"https://api.github.com/repos/Alameen688/MyDiary/contributors","subscribers_url":"https://api.github.com/repos/Alameen688/MyDiary/subscribers","subscription_url":"https://api.github.com/repos/Alameen688/MyDiary/subscription","commits_url":"https://api.github.com/repos/Alameen688/MyDiary/commits{/sha}","git_commits_url":"https://api.github.com/repos/Alameen688/MyDiary/git/commits{/sha}","comments_url":"https://api.github.com/repos/Alameen688/MyDiary/comments{/number}","issue_comment_url":"https://api.github.com/repos/Alameen688/MyDiary/issues/comments{/number}","contents_url":"https://api.github.com/repos/Alameen688/MyDiary/contents/{+path}","compare_url":"https://api.github.com/repos/Alameen688/MyDiary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Alameen688/MyDiary/merges","archive_url":"https://api.github.com/repos/Alameen688/MyDiary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Alameen688/MyDiary/downloads","issues_url":"https://api.github.com/repos/Alameen688/MyDiary/issues{/number}","pulls_url":"https://api.github.com/repos/Alameen688/MyDiary/pulls{/number}","milestones_url":"https://api.github.com/repos/Alameen688/MyDiary/milestones{/number}","notifications_url":"https://api.github.com/repos/Alameen688/MyDiary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Alameen688/MyDiary/labels{/name}","releases_url":"https://api.github.com/repos/Alameen688/MyDiary/releases{/id}","deployments_url":"https://api.github.com/repos/Alameen688/MyDiary/deployments","created_at":"2018-07-10T11:32:33Z","updated_at":"2018-07-13T15:04:20Z","pushed_at":"2018-08-02T11:29:50Z","git_url":"git://github.com/Alameen688/MyDiary.git","ssh_url":"git@github.com:Alameen688/MyDiary.git","clone_url":"https://github.com/Alameen688/MyDiary.git","svn_url":"https://github.com/Alameen688/MyDiary","homepage":null,"size":12109,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Alameen688:develop","ref":"develop","sha":"47a0d82b1a9f05fd7ec9b3514479e57a567f0cdc","user":{"login":"Alameen688","id":9039613,"node_id":"MDQ6VXNlcjkwMzk2MTM=","avatar_url":"https://avatars3.githubusercontent.com/u/9039613?v=4","gravatar_id":"","url":"https://api.github.com/users/Alameen688","html_url":"https://github.com/Alameen688","followers_url":"https://api.github.com/users/Alameen688/followers","following_url":"https://api.github.com/users/Alameen688/following{/other_user}","gists_url":"https://api.github.com/users/Alameen688/gists{/gist_id}","starred_url":"https://api.github.com/users/Alameen688/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alameen688/subscriptions","organizations_url":"https://api.github.com/users/Alameen688/orgs","repos_url":"https://api.github.com/users/Alameen688/repos","events_url":"https://api.github.com/users/Alameen688/events{/privacy}","received_events_url":"https://api.github.com/users/Alameen688/received_events","type":"User","site_admin":false},"repo":{"id":140422404,"node_id":"MDEwOlJlcG9zaXRvcnkxNDA0MjI0MDQ=","name":"MyDiary","full_name":"Alameen688/MyDiary","owner":{"login":"Alameen688","id":9039613,"node_id":"MDQ6VXNlcjkwMzk2MTM=","avatar_url":"https://avatars3.githubusercontent.com/u/9039613?v=4","gravatar_id":"","url":"https://api.github.com/users/Alameen688","html_url":"https://github.com/Alameen688","followers_url":"https://api.github.com/users/Alameen688/followers","following_url":"https://api.github.com/users/Alameen688/following{/other_user}","gists_url":"https://api.github.com/users/Alameen688/gists{/gist_id}","starred_url":"https://api.github.com/users/Alameen688/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alameen688/subscriptions","organizations_url":"https://api.github.com/users/Alameen688/orgs","repos_url":"https://api.github.com/users/Alameen688/repos","events_url":"https://api.github.com/users/Alameen688/events{/privacy}","received_events_url":"https://api.github.com/users/Alameen688/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Alameen688/MyDiary","description":null,"fork":false,"url":"https://api.github.com/repos/Alameen688/MyDiary","forks_url":"https://api.github.com/repos/Alameen688/MyDiary/forks","keys_url":"https://api.github.com/repos/Alameen688/MyDiary/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Alameen688/MyDiary/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Alameen688/MyDiary/teams","hooks_url":"https://api.github.com/repos/Alameen688/MyDiary/hooks","issue_events_url":"https://api.github.com/repos/Alameen688/MyDiary/issues/events{/number}","events_url":"https://api.github.com/repos/Alameen688/MyDiary/events","assignees_url":"https://api.github.com/repos/Alameen688/MyDiary/assignees{/user}","branches_url":"https://api.github.com/repos/Alameen688/MyDiary/branches{/branch}","tags_url":"https://api.github.com/repos/Alameen688/MyDiary/tags","blobs_url":"https://api.github.com/repos/Alameen688/MyDiary/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Alameen688/MyDiary/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Alameen688/MyDiary/git/refs{/sha}","trees_url":"https://api.github.com/repos/Alameen688/MyDiary/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Alameen688/MyDiary/statuses/{sha}","languages_url":"https://api.github.com/repos/Alameen688/MyDiary/languages","stargazers_url":"https://api.github.com/repos/Alameen688/MyDiary/stargazers","contributors_url":"https://api.github.com/repos/Alameen688/MyDiary/contributors","subscribers_url":"https://api.github.com/repos/Alameen688/MyDiary/subscribers","subscription_url":"https://api.github.com/repos/Alameen688/MyDiary/subscription","commits_url":"https://api.github.com/repos/Alameen688/MyDiary/commits{/sha}","git_commits_url":"https://api.github.com/repos/Alameen688/MyDiary/git/commits{/sha}","comments_url":"https://api.github.com/repos/Alameen688/MyDiary/comments{/number}","issue_comment_url":"https://api.github.com/repos/Alameen688/MyDiary/issues/comments{/number}","contents_url":"https://api.github.com/repos/Alameen688/MyDiary/contents/{+path}","compare_url":"https://api.github.com/repos/Alameen688/MyDiary/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Alameen688/MyDiary/merges","archive_url":"https://api.github.com/repos/Alameen688/MyDiary/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Alameen688/MyDiary/downloads","issues_url":"https://api.github.com/repos/Alameen688/MyDiary/issues{/number}","pulls_url":"https://api.github.com/repos/Alameen688/MyDiary/pulls{/number}","milestones_url":"https://api.github.com/repos/Alameen688/MyDiary/milestones{/number}","notifications_url":"https://api.github.com/repos/Alameen688/MyDiary/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Alameen688/MyDiary/labels{/name}","releases_url":"https://api.github.com/repos/Alameen688/MyDiary/releases{/id}","deployments_url":"https://api.github.com/repos/Alameen688/MyDiary/deployments","created_at":"2018-07-10T11:32:33Z","updated_at":"2018-07-13T15:04:20Z","pushed_at":"2018-08-02T11:29:50Z","git_url":"git://github.com/Alameen688/MyDiary.git","ssh_url":"git@github.com:Alameen688/MyDiary.git","clone_url":"https://github.com/Alameen688/MyDiary.git","svn_url":"https://github.com/Alameen688/MyDiary","homepage":null,"size":12109,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Alameen688/MyDiary/pulls/29"},"html":{"href":"https://github.com/Alameen688/MyDiary/pull/29"},"issue":{"href":"https://api.github.com/repos/Alameen688/MyDiary/issues/29"},"comments":{"href":"https://api.github.com/repos/Alameen688/MyDiary/issues/29/comments"},"review_comments":{"href":"https://api.github.com/repos/Alameen688/MyDiary/pulls/29/comments"},"review_comment":{"href":"https://api.github.com/repos/Alameen688/MyDiary/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Alameen688/MyDiary/pulls/29/commits"},"statuses":{"href":"https://api.github.com/repos/Alameen688/MyDiary/statuses/328d298ab809c9ab6f9a51cfc3cda1e877a99af2"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}