{"action":"created","comment":{"url":"https://api.github.com/repos/gaiaresources/koala-watch/pulls/comments/191966149","pull_request_review_id":124644121,"id":191966149,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5MTk2NjE0OQ==","diff_hunk":"@@ -1,22 +1,95 @@\n import { Component } from '@angular/core';\n+import { NavController, NavParams } from 'ionic-angular';\n+import { Record } from '../../app/biosys-core/interfaces/api.interfaces';\n+\n+class FooBoo implements Record {\n+    public created: string;\n+    public data: {};\n+    public dataset: number;\n+    public datetime: string;\n+    public geometry;\n+    public id: number;\n+    public last_modified: string;\n+    public name_id: number;\n+    public site: number;\n+    public source_info: {};\n+    public species_name: string;\n+    // FIXME: everything after here is for hacking the prototype together - need to work on extracting the REAL values later\n+    public icon: string;\n+    public koala_count: number;\n+    public data_status: string;\n+}\n \n-/**\n- * Generated class for the RecordsListComponent component.\n- *\n- * See https://angular.io/api/core/Component for more info on Angular\n- * Components.\n- */\n @Component({\n-  selector: 'records-list',\n-  templateUrl: 'records-list.html'\n+    selector: 'records-list',\n+    templateUrl: 'records-list.html'\n })\n export class RecordsListComponent {\n-\n-  text: string;\n-\n-  constructor() {\n-    console.log('Hello RecordsListComponent Component');\n-    this.text = 'Hello World';\n-  }\n-\n+    selectedItem: any;\n+    items: Array<{ title: string, note: string, icon: string }>;\n+    \n+    // mapping from DataType to an icon\n+    public itemIcons = [\n+        'assets/imgs/koala_data_poop.png',\n+        'assets/imgs/koala_data_torch.png',\n+        'assets/imgs/koala_data_eye.png'\n+    ];\n+    \n+    public data: Record[];\n+    \n+    constructor(public navCtrl: NavController, public navParams: NavParams) {\n+        // If we navigated to this page, we will have an item available as a nav param\n+        this.selectedItem = navParams.get('item');\n+        \n+        this.data = [];\n+        for (let i = 0; i < 30; i++) {\n+            let row = new FooBoo();\n+            row.datetime = new Date().toISOString();\n+            this.data.push(row);\n+        }\n+        return;\n+    }\n+    \n+    status(record: FooBoo) {","path":"src/components/records-list/records-list.ts","position":69,"original_position":69,"commit_id":"96850e32097fcfcbe17f58e0c1f0d41a8321e067","original_commit_id":"96850e32097fcfcbe17f58e0c1f0d41a8321e067","user":{"login":"tony-gaia","id":17116209,"node_id":"MDQ6VXNlcjE3MTE2MjA5","avatar_url":"https://avatars2.githubusercontent.com/u/17116209?v=4","gravatar_id":"","url":"https://api.github.com/users/tony-gaia","html_url":"https://github.com/tony-gaia","followers_url":"https://api.github.com/users/tony-gaia/followers","following_url":"https://api.github.com/users/tony-gaia/following{/other_user}","gists_url":"https://api.github.com/users/tony-gaia/gists{/gist_id}","starred_url":"https://api.github.com/users/tony-gaia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tony-gaia/subscriptions","organizations_url":"https://api.github.com/users/tony-gaia/orgs","repos_url":"https://api.github.com/users/tony-gaia/repos","events_url":"https://api.github.com/users/tony-gaia/events{/privacy}","received_events_url":"https://api.github.com/users/tony-gaia/received_events","type":"User","site_admin":false},"body":"It's not mandatory in Typescript, but I like to put access modifiers (public, private, etc) for methods. Anything method/field that is going to be accessed by the template or a different class would be public, anything used internally is private.","created_at":"2018-05-31T01:12:50Z","updated_at":"2018-05-31T01:12:50Z","html_url":"https://github.com/gaiaresources/koala-watch/pull/9#discussion_r191966149","pull_request_url":"https://api.github.com/repos/gaiaresources/koala-watch/pulls/9","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/gaiaresources/koala-watch/pulls/comments/191966149"},"html":{"href":"https://github.com/gaiaresources/koala-watch/pull/9#discussion_r191966149"},"pull_request":{"href":"https://api.github.com/repos/gaiaresources/koala-watch/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/gaiaresources/koala-watch/pulls/9","id":191369002,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkxMzY5MDAy","html_url":"https://github.com/gaiaresources/koala-watch/pull/9","diff_url":"https://github.com/gaiaresources/koala-watch/pull/9.diff","patch_url":"https://github.com/gaiaresources/koala-watch/pull/9.patch","issue_url":"https://api.github.com/repos/gaiaresources/koala-watch/issues/9","number":9,"state":"open","locked":false,"title":"Biosys 155","user":{"login":"chungvl","id":39473358,"node_id":"MDQ6VXNlcjM5NDczMzU4","avatar_url":"https://avatars2.githubusercontent.com/u/39473358?v=4","gravatar_id":"","url":"https://api.github.com/users/chungvl","html_url":"https://github.com/chungvl","followers_url":"https://api.github.com/users/chungvl/followers","following_url":"https://api.github.com/users/chungvl/following{/other_user}","gists_url":"https://api.github.com/users/chungvl/gists{/gist_id}","starred_url":"https://api.github.com/users/chungvl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chungvl/subscriptions","organizations_url":"https://api.github.com/users/chungvl/orgs","repos_url":"https://api.github.com/users/chungvl/repos","events_url":"https://api.github.com/users/chungvl/events{/privacy}","received_events_url":"https://api.github.com/users/chungvl/received_events","type":"User","site_admin":false},"body":"Reworked code to fit new naming / filesystem structure. Added Map Tab (mobile only).","created_at":"2018-05-30T08:16:55Z","updated_at":"2018-05-31T01:12:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7bb507d1ad62390ae73a00be2cee9bbe09f64287","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/gaiaresources/koala-watch/pulls/9/commits","review_comments_url":"https://api.github.com/repos/gaiaresources/koala-watch/pulls/9/comments","review_comment_url":"https://api.github.com/repos/gaiaresources/koala-watch/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gaiaresources/koala-watch/issues/9/comments","statuses_url":"https://api.github.com/repos/gaiaresources/koala-watch/statuses/96850e32097fcfcbe17f58e0c1f0d41a8321e067","head":{"label":"chungvl:BIOSYS-155","ref":"BIOSYS-155","sha":"96850e32097fcfcbe17f58e0c1f0d41a8321e067","user":{"login":"chungvl","id":39473358,"node_id":"MDQ6VXNlcjM5NDczMzU4","avatar_url":"https://avatars2.githubusercontent.com/u/39473358?v=4","gravatar_id":"","url":"https://api.github.com/users/chungvl","html_url":"https://github.com/chungvl","followers_url":"https://api.github.com/users/chungvl/followers","following_url":"https://api.github.com/users/chungvl/following{/other_user}","gists_url":"https://api.github.com/users/chungvl/gists{/gist_id}","starred_url":"https://api.github.com/users/chungvl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chungvl/subscriptions","organizations_url":"https://api.github.com/users/chungvl/orgs","repos_url":"https://api.github.com/users/chungvl/repos","events_url":"https://api.github.com/users/chungvl/events{/privacy}","received_events_url":"https://api.github.com/users/chungvl/received_events","type":"User","site_admin":false},"repo":{"id":134379446,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQzNzk0NDY=","name":"koala-watch","full_name":"chungvl/koala-watch","owner":{"login":"chungvl","id":39473358,"node_id":"MDQ6VXNlcjM5NDczMzU4","avatar_url":"https://avatars2.githubusercontent.com/u/39473358?v=4","gravatar_id":"","url":"https://api.github.com/users/chungvl","html_url":"https://github.com/chungvl","followers_url":"https://api.github.com/users/chungvl/followers","following_url":"https://api.github.com/users/chungvl/following{/other_user}","gists_url":"https://api.github.com/users/chungvl/gists{/gist_id}","starred_url":"https://api.github.com/users/chungvl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chungvl/subscriptions","organizations_url":"https://api.github.com/users/chungvl/orgs","repos_url":"https://api.github.com/users/chungvl/repos","events_url":"https://api.github.com/users/chungvl/events{/privacy}","received_events_url":"https://api.github.com/users/chungvl/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chungvl/koala-watch","description":"Koala survey collection mobile-app based on Ionic Framework / Angular","fork":true,"url":"https://api.github.com/repos/chungvl/koala-watch","forks_url":"https://api.github.com/repos/chungvl/koala-watch/forks","keys_url":"https://api.github.com/repos/chungvl/koala-watch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chungvl/koala-watch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chungvl/koala-watch/teams","hooks_url":"https://api.github.com/repos/chungvl/koala-watch/hooks","issue_events_url":"https://api.github.com/repos/chungvl/koala-watch/issues/events{/number}","events_url":"https://api.github.com/repos/chungvl/koala-watch/events","assignees_url":"https://api.github.com/repos/chungvl/koala-watch/assignees{/user}","branches_url":"https://api.github.com/repos/chungvl/koala-watch/branches{/branch}","tags_url":"https://api.github.com/repos/chungvl/koala-watch/tags","blobs_url":"https://api.github.com/repos/chungvl/koala-watch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chungvl/koala-watch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chungvl/koala-watch/git/refs{/sha}","trees_url":"https://api.github.com/repos/chungvl/koala-watch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chungvl/koala-watch/statuses/{sha}","languages_url":"https://api.github.com/repos/chungvl/koala-watch/languages","stargazers_url":"https://api.github.com/repos/chungvl/koala-watch/stargazers","contributors_url":"https://api.github.com/repos/chungvl/koala-watch/contributors","subscribers_url":"https://api.github.com/repos/chungvl/koala-watch/subscribers","subscription_url":"https://api.github.com/repos/chungvl/koala-watch/subscription","commits_url":"https://api.github.com/repos/chungvl/koala-watch/commits{/sha}","git_commits_url":"https://api.github.com/repos/chungvl/koala-watch/git/commits{/sha}","comments_url":"https://api.github.com/repos/chungvl/koala-watch/comments{/number}","issue_comment_url":"https://api.github.com/repos/chungvl/koala-watch/issues/comments{/number}","contents_url":"https://api.github.com/repos/chungvl/koala-watch/contents/{+path}","compare_url":"https://api.github.com/repos/chungvl/koala-watch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chungvl/koala-watch/merges","archive_url":"https://api.github.com/repos/chungvl/koala-watch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chungvl/koala-watch/downloads","issues_url":"https://api.github.com/repos/chungvl/koala-watch/issues{/number}","pulls_url":"https://api.github.com/repos/chungvl/koala-watch/pulls{/number}","milestones_url":"https://api.github.com/repos/chungvl/koala-watch/milestones{/number}","notifications_url":"https://api.github.com/repos/chungvl/koala-watch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chungvl/koala-watch/labels{/name}","releases_url":"https://api.github.com/repos/chungvl/koala-watch/releases{/id}","deployments_url":"https://api.github.com/repos/chungvl/koala-watch/deployments","created_at":"2018-05-22T07:48:17Z","updated_at":"2018-05-22T07:48:19Z","pushed_at":"2018-05-31T01:07:04Z","git_url":"git://github.com/chungvl/koala-watch.git","ssh_url":"git@github.com:chungvl/koala-watch.git","clone_url":"https://github.com/chungvl/koala-watch.git","svn_url":"https://github.com/chungvl/koala-watch","homepage":null,"size":1565,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"gaiaresources:master","ref":"master","sha":"677bb3c73b9c27fb8f3b574a719abd333cbd8a21","user":{"login":"gaiaresources","id":6937809,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5Mzc4MDk=","avatar_url":"https://avatars0.githubusercontent.com/u/6937809?v=4","gravatar_id":"","url":"https://api.github.com/users/gaiaresources","html_url":"https://github.com/gaiaresources","followers_url":"https://api.github.com/users/gaiaresources/followers","following_url":"https://api.github.com/users/gaiaresources/following{/other_user}","gists_url":"https://api.github.com/users/gaiaresources/gists{/gist_id}","starred_url":"https://api.github.com/users/gaiaresources/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaiaresources/subscriptions","organizations_url":"https://api.github.com/users/gaiaresources/orgs","repos_url":"https://api.github.com/users/gaiaresources/repos","events_url":"https://api.github.com/users/gaiaresources/events{/privacy}","received_events_url":"https://api.github.com/users/gaiaresources/received_events","type":"Organization","site_admin":false},"repo":{"id":134356160,"node_id":"MDEwOlJlcG9zaXRvcnkxMzQzNTYxNjA=","name":"koala-watch","full_name":"gaiaresources/koala-watch","owner":{"login":"gaiaresources","id":6937809,"node_id":"MDEyOk9yZ2FuaXphdGlvbjY5Mzc4MDk=","avatar_url":"https://avatars0.githubusercontent.com/u/6937809?v=4","gravatar_id":"","url":"https://api.github.com/users/gaiaresources","html_url":"https://github.com/gaiaresources","followers_url":"https://api.github.com/users/gaiaresources/followers","following_url":"https://api.github.com/users/gaiaresources/following{/other_user}","gists_url":"https://api.github.com/users/gaiaresources/gists{/gist_id}","starred_url":"https://api.github.com/users/gaiaresources/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gaiaresources/subscriptions","organizations_url":"https://api.github.com/users/gaiaresources/orgs","repos_url":"https://api.github.com/users/gaiaresources/repos","events_url":"https://api.github.com/users/gaiaresources/events{/privacy}","received_events_url":"https://api.github.com/users/gaiaresources/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gaiaresources/koala-watch","description":"Koala survey collection mobile-app based on Ionic Framework / Angular","fork":false,"url":"https://api.github.com/repos/gaiaresources/koala-watch","forks_url":"https://api.github.com/repos/gaiaresources/koala-watch/forks","keys_url":"https://api.github.com/repos/gaiaresources/koala-watch/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gaiaresources/koala-watch/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gaiaresources/koala-watch/teams","hooks_url":"https://api.github.com/repos/gaiaresources/koala-watch/hooks","issue_events_url":"https://api.github.com/repos/gaiaresources/koala-watch/issues/events{/number}","events_url":"https://api.github.com/repos/gaiaresources/koala-watch/events","assignees_url":"https://api.github.com/repos/gaiaresources/koala-watch/assignees{/user}","branches_url":"https://api.github.com/repos/gaiaresources/koala-watch/branches{/branch}","tags_url":"https://api.github.com/repos/gaiaresources/koala-watch/tags","blobs_url":"https://api.github.com/repos/gaiaresources/koala-watch/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gaiaresources/koala-watch/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gaiaresources/koala-watch/git/refs{/sha}","trees_url":"https://api.github.com/repos/gaiaresources/koala-watch/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gaiaresources/koala-watch/statuses/{sha}","languages_url":"https://api.github.com/repos/gaiaresources/koala-watch/languages","stargazers_url":"https://api.github.com/repos/gaiaresources/koala-watch/stargazers","contributors_url":"https://api.github.com/repos/gaiaresources/koala-watch/contributors","subscribers_url":"https://api.github.com/repos/gaiaresources/koala-watch/subscribers","subscription_url":"https://api.github.com/repos/gaiaresources/koala-watch/subscription","commits_url":"https://api.github.com/repos/gaiaresources/koala-watch/commits{/sha}","git_commits_url":"https://api.github.com/repos/gaiaresources/koala-watch/git/commits{/sha}","comments_url":"https://api.github.com/repos/gaiaresources/koala-watch/comments{/number}","issue_comment_url":"https://api.github.com/repos/gaiaresources/koala-watch/issues/comments{/number}","contents_url":"https://api.github.com/repos/gaiaresources/koala-watch/contents/{+path}","compare_url":"https://api.github.com/repos/gaiaresources/koala-watch/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gaiaresources/koala-watch/merges","archive_url":"https://api.github.com/repos/gaiaresources/koala-watch/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gaiaresources/koala-watch/downloads","issues_url":"https://api.github.com/repos/gaiaresources/koala-watch/issues{/number}","pulls_url":"https://api.github.com/repos/gaiaresources/koala-watch/pulls{/number}","milestones_url":"https://api.github.com/repos/gaiaresources/koala-watch/milestones{/number}","notifications_url":"https://api.github.com/repos/gaiaresources/koala-watch/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gaiaresources/koala-watch/labels{/name}","releases_url":"https://api.github.com/repos/gaiaresources/koala-watch/releases{/id}","deployments_url":"https://api.github.com/repos/gaiaresources/koala-watch/deployments","created_at":"2018-05-22T03:33:34Z","updated_at":"2018-05-30T06:33:30Z","pushed_at":"2018-05-30T08:16:56Z","git_url":"git://github.com/gaiaresources/koala-watch.git","ssh_url":"git@github.com:gaiaresources/koala-watch.git","clone_url":"https://github.com/gaiaresources/koala-watch.git","svn_url":"https://github.com/gaiaresources/koala-watch","homepage":null,"size":1552,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":4,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gaiaresources/koala-watch/pulls/9"},"html":{"href":"https://github.com/gaiaresources/koala-watch/pull/9"},"issue":{"href":"https://api.github.com/repos/gaiaresources/koala-watch/issues/9"},"comments":{"href":"https://api.github.com/repos/gaiaresources/koala-watch/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/gaiaresources/koala-watch/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/gaiaresources/koala-watch/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gaiaresources/koala-watch/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/gaiaresources/koala-watch/statuses/96850e32097fcfcbe17f58e0c1f0d41a8321e067"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"tony-gaia"}}