{"action":"reopened","number":41,"pull_request":{"url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/pulls/41","id":175713289,"node_id":"MDExOlB1bGxSZXF1ZXN0MTc1NzEzMjg5","html_url":"https://github.com/CS3099JH2017/cs3099jh/pull/41","diff_url":"https://github.com/CS3099JH2017/cs3099jh/pull/41.diff","patch_url":"https://github.com/CS3099JH2017/cs3099jh/pull/41.patch","issue_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/issues/41","number":41,"state":"open","locked":false,"title":"Children field in meta view has unnecessary information","user":{"login":"rminami","id":12246974,"node_id":"MDQ6VXNlcjEyMjQ2OTc0","avatar_url":"https://avatars3.githubusercontent.com/u/12246974?v=4","gravatar_id":"","url":"https://api.github.com/users/rminami","html_url":"https://github.com/rminami","followers_url":"https://api.github.com/users/rminami/followers","following_url":"https://api.github.com/users/rminami/following{/other_user}","gists_url":"https://api.github.com/users/rminami/gists{/gist_id}","starred_url":"https://api.github.com/users/rminami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rminami/subscriptions","organizations_url":"https://api.github.com/users/rminami/orgs","repos_url":"https://api.github.com/users/rminami/repos","events_url":"https://api.github.com/users/rminami/events{/privacy}","received_events_url":"https://api.github.com/users/rminami/received_events","type":"User","site_admin":false},"body":"Currently, when HCI wants to display all of the folders in a directory, it sends a GET request to the path of the directory with the query parameter `\"include_children\"`, upon which it receives a response matching\r\n\r\n```\r\n{\r\n    \"children\": array({\r\n        \"file_path\": string,\r\n        \"file_name\": string,\r\n        \"id\": string,\r\n        \"supported_views\": {},\r\n        \"type\": string,\r\n        \"metadata\": metadata,\r\n        \"status\": alternative([\r\n            \"uploading\",\r\n            \"preprocessing\",\r\n            \"ready\"\r\n        ])\r\n    })\r\n}\r\n```\r\n\r\nHowever, all of the information contained in `\"supported_views\"` is not used until the file itself is selected. \r\n\r\nCreating this could potentially be expensive for the backend, since it involves parsing every CSV and extracting metadata from every image in the selected directory. The same is also true for the `\"metadata\"` field as well. (I know some groups have all of this stored in a database, but still.) \r\n\r\nThus, the protocol here should be changed to\r\n\r\n```\r\n{\r\n    \"children\": array({\r\n        \"file_path\": string,\r\n        \"file_name\": string,\r\n        \"id\": string,\r\n        \"type\": string,\r\n        \"status\": alternative([\r\n            \"uploading\",\r\n            \"preprocessing\",\r\n            \"ready\"\r\n        ])\r\n    })\r\n}\r\n```\r\n\r\nThis reduces unnecessary work for the backend server. ","created_at":"2018-03-17T18:06:31Z","updated_at":"2018-09-24T17:36:20Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7b5dc0ec7e52a7063b1931eac5ec768edc0240a2","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/pulls/41/commits","review_comments_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/pulls/41/comments","review_comment_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/issues/41/comments","statuses_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/statuses/179066765e574f05a44ae5cff8884097f294ec09","head":{"label":"rminami:simplify-children","ref":"simplify-children","sha":"179066765e574f05a44ae5cff8884097f294ec09","user":{"login":"rminami","id":12246974,"node_id":"MDQ6VXNlcjEyMjQ2OTc0","avatar_url":"https://avatars3.githubusercontent.com/u/12246974?v=4","gravatar_id":"","url":"https://api.github.com/users/rminami","html_url":"https://github.com/rminami","followers_url":"https://api.github.com/users/rminami/followers","following_url":"https://api.github.com/users/rminami/following{/other_user}","gists_url":"https://api.github.com/users/rminami/gists{/gist_id}","starred_url":"https://api.github.com/users/rminami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rminami/subscriptions","organizations_url":"https://api.github.com/users/rminami/orgs","repos_url":"https://api.github.com/users/rminami/repos","events_url":"https://api.github.com/users/rminami/events{/privacy}","received_events_url":"https://api.github.com/users/rminami/received_events","type":"User","site_admin":false},"repo":{"id":109531182,"node_id":"MDEwOlJlcG9zaXRvcnkxMDk1MzExODI=","name":"cs3099jh","full_name":"rminami/cs3099jh","private":false,"owner":{"login":"rminami","id":12246974,"node_id":"MDQ6VXNlcjEyMjQ2OTc0","avatar_url":"https://avatars3.githubusercontent.com/u/12246974?v=4","gravatar_id":"","url":"https://api.github.com/users/rminami","html_url":"https://github.com/rminami","followers_url":"https://api.github.com/users/rminami/followers","following_url":"https://api.github.com/users/rminami/following{/other_user}","gists_url":"https://api.github.com/users/rminami/gists{/gist_id}","starred_url":"https://api.github.com/users/rminami/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rminami/subscriptions","organizations_url":"https://api.github.com/users/rminami/orgs","repos_url":"https://api.github.com/users/rminami/repos","events_url":"https://api.github.com/users/rminami/events{/privacy}","received_events_url":"https://api.github.com/users/rminami/received_events","type":"User","site_admin":false},"html_url":"https://github.com/rminami/cs3099jh","description":"CS3099 Junior Honours Project Protocol and Discussion Central Repo","fork":true,"url":"https://api.github.com/repos/rminami/cs3099jh","forks_url":"https://api.github.com/repos/rminami/cs3099jh/forks","keys_url":"https://api.github.com/repos/rminami/cs3099jh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rminami/cs3099jh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rminami/cs3099jh/teams","hooks_url":"https://api.github.com/repos/rminami/cs3099jh/hooks","issue_events_url":"https://api.github.com/repos/rminami/cs3099jh/issues/events{/number}","events_url":"https://api.github.com/repos/rminami/cs3099jh/events","assignees_url":"https://api.github.com/repos/rminami/cs3099jh/assignees{/user}","branches_url":"https://api.github.com/repos/rminami/cs3099jh/branches{/branch}","tags_url":"https://api.github.com/repos/rminami/cs3099jh/tags","blobs_url":"https://api.github.com/repos/rminami/cs3099jh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rminami/cs3099jh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rminami/cs3099jh/git/refs{/sha}","trees_url":"https://api.github.com/repos/rminami/cs3099jh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rminami/cs3099jh/statuses/{sha}","languages_url":"https://api.github.com/repos/rminami/cs3099jh/languages","stargazers_url":"https://api.github.com/repos/rminami/cs3099jh/stargazers","contributors_url":"https://api.github.com/repos/rminami/cs3099jh/contributors","subscribers_url":"https://api.github.com/repos/rminami/cs3099jh/subscribers","subscription_url":"https://api.github.com/repos/rminami/cs3099jh/subscription","commits_url":"https://api.github.com/repos/rminami/cs3099jh/commits{/sha}","git_commits_url":"https://api.github.com/repos/rminami/cs3099jh/git/commits{/sha}","comments_url":"https://api.github.com/repos/rminami/cs3099jh/comments{/number}","issue_comment_url":"https://api.github.com/repos/rminami/cs3099jh/issues/comments{/number}","contents_url":"https://api.github.com/repos/rminami/cs3099jh/contents/{+path}","compare_url":"https://api.github.com/repos/rminami/cs3099jh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rminami/cs3099jh/merges","archive_url":"https://api.github.com/repos/rminami/cs3099jh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rminami/cs3099jh/downloads","issues_url":"https://api.github.com/repos/rminami/cs3099jh/issues{/number}","pulls_url":"https://api.github.com/repos/rminami/cs3099jh/pulls{/number}","milestones_url":"https://api.github.com/repos/rminami/cs3099jh/milestones{/number}","notifications_url":"https://api.github.com/repos/rminami/cs3099jh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rminami/cs3099jh/labels{/name}","releases_url":"https://api.github.com/repos/rminami/cs3099jh/releases{/id}","deployments_url":"https://api.github.com/repos/rminami/cs3099jh/deployments","created_at":"2017-11-04T21:21:58Z","updated_at":"2017-11-02T12:22:18Z","pushed_at":"2018-04-02T16:18:06Z","git_url":"git://github.com/rminami/cs3099jh.git","ssh_url":"git@github.com:rminami/cs3099jh.git","clone_url":"https://github.com/rminami/cs3099jh.git","svn_url":"https://github.com/rminami/cs3099jh","homepage":null,"size":11863,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"CS3099JH2017:master","ref":"master","sha":"2e728c6c878350eb006c86c61b56c90e4e1ec0d0","user":{"login":"CS3099JH2017","id":33489169,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzNDg5MTY5","avatar_url":"https://avatars0.githubusercontent.com/u/33489169?v=4","gravatar_id":"","url":"https://api.github.com/users/CS3099JH2017","html_url":"https://github.com/CS3099JH2017","followers_url":"https://api.github.com/users/CS3099JH2017/followers","following_url":"https://api.github.com/users/CS3099JH2017/following{/other_user}","gists_url":"https://api.github.com/users/CS3099JH2017/gists{/gist_id}","starred_url":"https://api.github.com/users/CS3099JH2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS3099JH2017/subscriptions","organizations_url":"https://api.github.com/users/CS3099JH2017/orgs","repos_url":"https://api.github.com/users/CS3099JH2017/repos","events_url":"https://api.github.com/users/CS3099JH2017/events{/privacy}","received_events_url":"https://api.github.com/users/CS3099JH2017/received_events","type":"Organization","site_admin":false},"repo":{"id":109261062,"node_id":"MDEwOlJlcG9zaXRvcnkxMDkyNjEwNjI=","name":"cs3099jh","full_name":"CS3099JH2017/cs3099jh","private":false,"owner":{"login":"CS3099JH2017","id":33489169,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMzNDg5MTY5","avatar_url":"https://avatars0.githubusercontent.com/u/33489169?v=4","gravatar_id":"","url":"https://api.github.com/users/CS3099JH2017","html_url":"https://github.com/CS3099JH2017","followers_url":"https://api.github.com/users/CS3099JH2017/followers","following_url":"https://api.github.com/users/CS3099JH2017/following{/other_user}","gists_url":"https://api.github.com/users/CS3099JH2017/gists{/gist_id}","starred_url":"https://api.github.com/users/CS3099JH2017/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CS3099JH2017/subscriptions","organizations_url":"https://api.github.com/users/CS3099JH2017/orgs","repos_url":"https://api.github.com/users/CS3099JH2017/repos","events_url":"https://api.github.com/users/CS3099JH2017/events{/privacy}","received_events_url":"https://api.github.com/users/CS3099JH2017/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/CS3099JH2017/cs3099jh","description":"CS3099 Junior Honours Project Protocol and Discussion Central Repo","fork":false,"url":"https://api.github.com/repos/CS3099JH2017/cs3099jh","forks_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/forks","keys_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/teams","hooks_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/hooks","issue_events_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/issues/events{/number}","events_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/events","assignees_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/assignees{/user}","branches_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/branches{/branch}","tags_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/tags","blobs_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/git/refs{/sha}","trees_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/statuses/{sha}","languages_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/languages","stargazers_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/stargazers","contributors_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/contributors","subscribers_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/subscribers","subscription_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/subscription","commits_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/commits{/sha}","git_commits_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/git/commits{/sha}","comments_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/comments{/number}","issue_comment_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/issues/comments{/number}","contents_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/contents/{+path}","compare_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/merges","archive_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/downloads","issues_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/issues{/number}","pulls_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/pulls{/number}","milestones_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/milestones{/number}","notifications_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/labels{/name}","releases_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/releases{/id}","deployments_url":"https://api.github.com/repos/CS3099JH2017/cs3099jh/deployments","created_at":"2017-11-02T12:20:22Z","updated_at":"2018-04-10T10:36:35Z","pushed_at":"2018-04-10T10:36:33Z","git_url":"git://github.com/CS3099JH2017/cs3099jh.git","ssh_url":"git@github.com:CS3099JH2017/cs3099jh.git","clone_url":"https://github.com/CS3099JH2017/cs3099jh.git","svn_url":"https://github.com/CS3099JH2017/cs3099jh","homepage":null,"size":11868,"stargazers_count":2,"watchers_count":2,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"archived":false,"open_issues_count":13,"license":null,"forks":7,"open_issues":13,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CS3099JH2017/cs3099jh/pulls/41"},"html":{"href":"https://github.com/CS3099JH2017/cs3099jh/pull/41"},"issue":{"href":"https://api.github.com/repos/CS3099JH2017/cs3099jh/issues/41"},"comments":{"href":"https://api.github.com/repos/CS3099JH2017/cs3099jh/issues/41/comments"},"review_comments":{"href":"https://api.github.com/repos/CS3099JH2017/cs3099jh/pulls/41/comments"},"review_comment":{"href":"https://api.github.com/repos/CS3099JH2017/cs3099jh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CS3099JH2017/cs3099jh/pulls/41/commits"},"statuses":{"href":"https://api.github.com/repos/CS3099JH2017/cs3099jh/statuses/179066765e574f05a44ae5cff8884097f294ec09"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":6,"review_comments":0,"maintainer_can_modify":true,"commits":4,"additions":23,"deletions":20,"changed_files":2}}
{"actor":{"display_login":"rminami"}}