{"action":"created","comment":{"url":"https://api.github.com/repos/endlessm/basin/pulls/comments/167388538","pull_request_review_id":95611802,"id":167388538,"diff_hunk":"@@ -72,6 +84,26 @@ var Index = new Lang.Class({\n             doc.add_numeric_value(SEQUENCE_NUMBER_VALUE_NO, metadata['sequenceNumber']);\n         }\n \n+        const indexingDateString = _indexDateForMetadata(metadata);\n+        if (indexingDateString) {\n+            /* Parse the date using the native JS Date library, since\n+             * GLib.Date.set_parse isn't able to handle JS-style dates. */\n+            try {\n+                const parsedIndexingDate = new Date(indexingDateString)\n+\n+                const timestamp = Number([parsedIndexingDate.getUTCFullYear(),\n+                                          parsedIndexingDate.getUTCMonth(),\n+                                          parsedIndexingDate.getUTCDay(),\n+                                          parsedIndexingDate.getUTCHours(),\n+                                          parsedIndexingDate.getUTCMinutes(),\n+                                          parsedIndexingDate.getUTCSeconds()].map(i => String(i)).join(''));\n+                doc.add_numeric_value(PUBLISHED_DATE_VALUE_NO, timestamp);","path":"src/index.js","position":43,"original_position":43,"commit_id":"4dbf52dc20e194992a641f5aeaced2b098d439c7","original_commit_id":"4dbf52dc20e194992a641f5aeaced2b098d439c7","user":{"login":"smspillaz","id":775309,"avatar_url":"https://avatars3.githubusercontent.com/u/775309?v=4","gravatar_id":"","url":"https://api.github.com/users/smspillaz","html_url":"https://github.com/smspillaz","followers_url":"https://api.github.com/users/smspillaz/followers","following_url":"https://api.github.com/users/smspillaz/following{/other_user}","gists_url":"https://api.github.com/users/smspillaz/gists{/gist_id}","starred_url":"https://api.github.com/users/smspillaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smspillaz/subscriptions","organizations_url":"https://api.github.com/users/smspillaz/orgs","repos_url":"https://api.github.com/users/smspillaz/repos","events_url":"https://api.github.com/users/smspillaz/events{/privacy}","received_events_url":"https://api.github.com/users/smspillaz/received_events","type":"User","site_admin":false},"body":"Mmm, good idea.","created_at":"2018-02-10T04:01:57Z","updated_at":"2018-02-10T04:01:57Z","html_url":"https://github.com/endlessm/basin/pull/24#discussion_r167388538","pull_request_url":"https://api.github.com/repos/endlessm/basin/pulls/24","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/endlessm/basin/pulls/comments/167388538"},"html":{"href":"https://github.com/endlessm/basin/pull/24#discussion_r167388538"},"pull_request":{"href":"https://api.github.com/repos/endlessm/basin/pulls/24"}},"in_reply_to_id":167326426},"pull_request":{"url":"https://api.github.com/repos/endlessm/basin/pulls/24","id":168161565,"html_url":"https://github.com/endlessm/basin/pull/24","diff_url":"https://github.com/endlessm/basin/pull/24.diff","patch_url":"https://github.com/endlessm/basin/pull/24.patch","issue_url":"https://api.github.com/repos/endlessm/basin/issues/24","number":24,"state":"open","locked":false,"title":"basin: Add the \"date published\" index to built shards","user":{"login":"smspillaz","id":775309,"avatar_url":"https://avatars3.githubusercontent.com/u/775309?v=4","gravatar_id":"","url":"https://api.github.com/users/smspillaz","html_url":"https://github.com/smspillaz","followers_url":"https://api.github.com/users/smspillaz/followers","following_url":"https://api.github.com/users/smspillaz/following{/other_user}","gists_url":"https://api.github.com/users/smspillaz/gists{/gist_id}","starred_url":"https://api.github.com/users/smspillaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smspillaz/subscriptions","organizations_url":"https://api.github.com/users/smspillaz/orgs","repos_url":"https://api.github.com/users/smspillaz/repos","events_url":"https://api.github.com/users/smspillaz/events{/privacy}","received_events_url":"https://api.github.com/users/smspillaz/received_events","type":"User","site_admin":false},"body":"https://phabricator.endlessm.com/T21124","created_at":"2018-02-09T06:15:33Z","updated_at":"2018-02-10T04:01:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"60f386eddb2ef12032f4e6cd6961348ee008973d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/endlessm/basin/pulls/24/commits","review_comments_url":"https://api.github.com/repos/endlessm/basin/pulls/24/comments","review_comment_url":"https://api.github.com/repos/endlessm/basin/pulls/comments{/number}","comments_url":"https://api.github.com/repos/endlessm/basin/issues/24/comments","statuses_url":"https://api.github.com/repos/endlessm/basin/statuses/4dbf52dc20e194992a641f5aeaced2b098d439c7","head":{"label":"endlessm:T21124","ref":"T21124","sha":"4dbf52dc20e194992a641f5aeaced2b098d439c7","user":{"login":"endlessm","id":1930958,"avatar_url":"https://avatars1.githubusercontent.com/u/1930958?v=4","gravatar_id":"","url":"https://api.github.com/users/endlessm","html_url":"https://github.com/endlessm","followers_url":"https://api.github.com/users/endlessm/followers","following_url":"https://api.github.com/users/endlessm/following{/other_user}","gists_url":"https://api.github.com/users/endlessm/gists{/gist_id}","starred_url":"https://api.github.com/users/endlessm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endlessm/subscriptions","organizations_url":"https://api.github.com/users/endlessm/orgs","repos_url":"https://api.github.com/users/endlessm/repos","events_url":"https://api.github.com/users/endlessm/events{/privacy}","received_events_url":"https://api.github.com/users/endlessm/received_events","type":"Organization","site_admin":false},"repo":{"id":85605768,"name":"basin","full_name":"endlessm/basin","owner":{"login":"endlessm","id":1930958,"avatar_url":"https://avatars1.githubusercontent.com/u/1930958?v=4","gravatar_id":"","url":"https://api.github.com/users/endlessm","html_url":"https://github.com/endlessm","followers_url":"https://api.github.com/users/endlessm/followers","following_url":"https://api.github.com/users/endlessm/following{/other_user}","gists_url":"https://api.github.com/users/endlessm/gists{/gist_id}","starred_url":"https://api.github.com/users/endlessm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endlessm/subscriptions","organizations_url":"https://api.github.com/users/endlessm/orgs","repos_url":"https://api.github.com/users/endlessm/repos","events_url":"https://api.github.com/users/endlessm/events{/privacy}","received_events_url":"https://api.github.com/users/endlessm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/endlessm/basin","description":"Shard creation tool for Knowledge Apps","fork":false,"url":"https://api.github.com/repos/endlessm/basin","forks_url":"https://api.github.com/repos/endlessm/basin/forks","keys_url":"https://api.github.com/repos/endlessm/basin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/endlessm/basin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/endlessm/basin/teams","hooks_url":"https://api.github.com/repos/endlessm/basin/hooks","issue_events_url":"https://api.github.com/repos/endlessm/basin/issues/events{/number}","events_url":"https://api.github.com/repos/endlessm/basin/events","assignees_url":"https://api.github.com/repos/endlessm/basin/assignees{/user}","branches_url":"https://api.github.com/repos/endlessm/basin/branches{/branch}","tags_url":"https://api.github.com/repos/endlessm/basin/tags","blobs_url":"https://api.github.com/repos/endlessm/basin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/endlessm/basin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/endlessm/basin/git/refs{/sha}","trees_url":"https://api.github.com/repos/endlessm/basin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/endlessm/basin/statuses/{sha}","languages_url":"https://api.github.com/repos/endlessm/basin/languages","stargazers_url":"https://api.github.com/repos/endlessm/basin/stargazers","contributors_url":"https://api.github.com/repos/endlessm/basin/contributors","subscribers_url":"https://api.github.com/repos/endlessm/basin/subscribers","subscription_url":"https://api.github.com/repos/endlessm/basin/subscription","commits_url":"https://api.github.com/repos/endlessm/basin/commits{/sha}","git_commits_url":"https://api.github.com/repos/endlessm/basin/git/commits{/sha}","comments_url":"https://api.github.com/repos/endlessm/basin/comments{/number}","issue_comment_url":"https://api.github.com/repos/endlessm/basin/issues/comments{/number}","contents_url":"https://api.github.com/repos/endlessm/basin/contents/{+path}","compare_url":"https://api.github.com/repos/endlessm/basin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/endlessm/basin/merges","archive_url":"https://api.github.com/repos/endlessm/basin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/endlessm/basin/downloads","issues_url":"https://api.github.com/repos/endlessm/basin/issues{/number}","pulls_url":"https://api.github.com/repos/endlessm/basin/pulls{/number}","milestones_url":"https://api.github.com/repos/endlessm/basin/milestones{/number}","notifications_url":"https://api.github.com/repos/endlessm/basin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/endlessm/basin/labels{/name}","releases_url":"https://api.github.com/repos/endlessm/basin/releases{/id}","deployments_url":"https://api.github.com/repos/endlessm/basin/deployments","created_at":"2017-03-20T17:24:12Z","updated_at":"2017-04-19T17:35:03Z","pushed_at":"2018-02-09T08:02:12Z","git_url":"git://github.com/endlessm/basin.git","ssh_url":"git@github.com:endlessm/basin.git","clone_url":"https://github.com/endlessm/basin.git","svn_url":"https://github.com/endlessm/basin","homepage":null,"size":149,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"endlessm:master","ref":"master","sha":"854e9a3c5fd5fb674f929da9877f213a40e80a8c","user":{"login":"endlessm","id":1930958,"avatar_url":"https://avatars1.githubusercontent.com/u/1930958?v=4","gravatar_id":"","url":"https://api.github.com/users/endlessm","html_url":"https://github.com/endlessm","followers_url":"https://api.github.com/users/endlessm/followers","following_url":"https://api.github.com/users/endlessm/following{/other_user}","gists_url":"https://api.github.com/users/endlessm/gists{/gist_id}","starred_url":"https://api.github.com/users/endlessm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endlessm/subscriptions","organizations_url":"https://api.github.com/users/endlessm/orgs","repos_url":"https://api.github.com/users/endlessm/repos","events_url":"https://api.github.com/users/endlessm/events{/privacy}","received_events_url":"https://api.github.com/users/endlessm/received_events","type":"Organization","site_admin":false},"repo":{"id":85605768,"name":"basin","full_name":"endlessm/basin","owner":{"login":"endlessm","id":1930958,"avatar_url":"https://avatars1.githubusercontent.com/u/1930958?v=4","gravatar_id":"","url":"https://api.github.com/users/endlessm","html_url":"https://github.com/endlessm","followers_url":"https://api.github.com/users/endlessm/followers","following_url":"https://api.github.com/users/endlessm/following{/other_user}","gists_url":"https://api.github.com/users/endlessm/gists{/gist_id}","starred_url":"https://api.github.com/users/endlessm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endlessm/subscriptions","organizations_url":"https://api.github.com/users/endlessm/orgs","repos_url":"https://api.github.com/users/endlessm/repos","events_url":"https://api.github.com/users/endlessm/events{/privacy}","received_events_url":"https://api.github.com/users/endlessm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/endlessm/basin","description":"Shard creation tool for Knowledge Apps","fork":false,"url":"https://api.github.com/repos/endlessm/basin","forks_url":"https://api.github.com/repos/endlessm/basin/forks","keys_url":"https://api.github.com/repos/endlessm/basin/keys{/key_id}","collaborators_url":"https://api.github.com/repos/endlessm/basin/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/endlessm/basin/teams","hooks_url":"https://api.github.com/repos/endlessm/basin/hooks","issue_events_url":"https://api.github.com/repos/endlessm/basin/issues/events{/number}","events_url":"https://api.github.com/repos/endlessm/basin/events","assignees_url":"https://api.github.com/repos/endlessm/basin/assignees{/user}","branches_url":"https://api.github.com/repos/endlessm/basin/branches{/branch}","tags_url":"https://api.github.com/repos/endlessm/basin/tags","blobs_url":"https://api.github.com/repos/endlessm/basin/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/endlessm/basin/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/endlessm/basin/git/refs{/sha}","trees_url":"https://api.github.com/repos/endlessm/basin/git/trees{/sha}","statuses_url":"https://api.github.com/repos/endlessm/basin/statuses/{sha}","languages_url":"https://api.github.com/repos/endlessm/basin/languages","stargazers_url":"https://api.github.com/repos/endlessm/basin/stargazers","contributors_url":"https://api.github.com/repos/endlessm/basin/contributors","subscribers_url":"https://api.github.com/repos/endlessm/basin/subscribers","subscription_url":"https://api.github.com/repos/endlessm/basin/subscription","commits_url":"https://api.github.com/repos/endlessm/basin/commits{/sha}","git_commits_url":"https://api.github.com/repos/endlessm/basin/git/commits{/sha}","comments_url":"https://api.github.com/repos/endlessm/basin/comments{/number}","issue_comment_url":"https://api.github.com/repos/endlessm/basin/issues/comments{/number}","contents_url":"https://api.github.com/repos/endlessm/basin/contents/{+path}","compare_url":"https://api.github.com/repos/endlessm/basin/compare/{base}...{head}","merges_url":"https://api.github.com/repos/endlessm/basin/merges","archive_url":"https://api.github.com/repos/endlessm/basin/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/endlessm/basin/downloads","issues_url":"https://api.github.com/repos/endlessm/basin/issues{/number}","pulls_url":"https://api.github.com/repos/endlessm/basin/pulls{/number}","milestones_url":"https://api.github.com/repos/endlessm/basin/milestones{/number}","notifications_url":"https://api.github.com/repos/endlessm/basin/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/endlessm/basin/labels{/name}","releases_url":"https://api.github.com/repos/endlessm/basin/releases{/id}","deployments_url":"https://api.github.com/repos/endlessm/basin/deployments","created_at":"2017-03-20T17:24:12Z","updated_at":"2017-04-19T17:35:03Z","pushed_at":"2018-02-09T08:02:12Z","git_url":"git://github.com/endlessm/basin.git","ssh_url":"git@github.com:endlessm/basin.git","clone_url":"https://github.com/endlessm/basin.git","svn_url":"https://github.com/endlessm/basin","homepage":null,"size":149,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":9,"license":{"key":"gpl-2.0","name":"GNU General Public License v2.0","spdx_id":"GPL-2.0","url":"https://api.github.com/licenses/gpl-2.0"},"forks":0,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/endlessm/basin/pulls/24"},"html":{"href":"https://github.com/endlessm/basin/pull/24"},"issue":{"href":"https://api.github.com/repos/endlessm/basin/issues/24"},"comments":{"href":"https://api.github.com/repos/endlessm/basin/issues/24/comments"},"review_comments":{"href":"https://api.github.com/repos/endlessm/basin/pulls/24/comments"},"review_comment":{"href":"https://api.github.com/repos/endlessm/basin/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/endlessm/basin/pulls/24/commits"},"statuses":{"href":"https://api.github.com/repos/endlessm/basin/statuses/4dbf52dc20e194992a641f5aeaced2b098d439c7"}},"author_association":"NONE"}}
{"actor":{"display_login":"smspillaz"}}