{"action":"opened","number":177,"pull_request":{"url":"https://api.github.com/repos/ukwa/webarchive-discovery/pulls/177","id":191172720,"html_url":"https://github.com/ukwa/webarchive-discovery/pull/177","diff_url":"https://github.com/ukwa/webarchive-discovery/pull/177.diff","patch_url":"https://github.com/ukwa/webarchive-discovery/pull/177.patch","issue_url":"https://api.github.com/repos/ukwa/webarchive-discovery/issues/177","number":177,"state":"open","locked":false,"title":"Weekday & time of day","user":{"login":"tokee","id":199454,"avatar_url":"https://avatars1.githubusercontent.com/u/199454?v=4","gravatar_id":"","url":"https://api.github.com/users/tokee","html_url":"https://github.com/tokee","followers_url":"https://api.github.com/users/tokee/followers","following_url":"https://api.github.com/users/tokee/following{/other_user}","gists_url":"https://api.github.com/users/tokee/gists{/gist_id}","starred_url":"https://api.github.com/users/tokee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tokee/subscriptions","organizations_url":"https://api.github.com/users/tokee/orgs","repos_url":"https://api.github.com/users/tokee/repos","events_url":"https://api.github.com/users/tokee/events{/privacy}","received_events_url":"https://api.github.com/users/tokee/received_events","type":"User","site_admin":false},"body":"We have two timestamps: `crawl_date`, which is authoritative from the crawler, and `last_modified`, which is extracted by Tika from the source data. This pull request adds `weekday` (Monday, Tuesday, Wednesday...) and `time_of_day` (16:44:30) to both of these fields. As Solr has no concept of time without a full date, the `time_of_day` is prefixed with `0001-01-01`. Indexing this ways means that date math works as expected. An alternative way would be to have `second_of_day` or something like that, but that requires translation from the user interface.\r\n\r\nThe use-cases for `last_modified` are fairly obvious: e.g. with this, it is possible to find images taken from Friday evening to Saturday morning.\r\n\r\nIt is more dubious for `crawl_date` as that timestamp does not say much about when the material was created. It might be useful for debugging crawls? I would appreciate input on whether the `crawl_date`-additions should be included or not.\r\n\r\nThis pull request closes #161.","created_at":"2018-05-29T14:49:48Z","updated_at":"2018-05-29T14:49:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":{"login":"tokee","id":199454,"avatar_url":"https://avatars1.githubusercontent.com/u/199454?v=4","gravatar_id":"","url":"https://api.github.com/users/tokee","html_url":"https://github.com/tokee","followers_url":"https://api.github.com/users/tokee/followers","following_url":"https://api.github.com/users/tokee/following{/other_user}","gists_url":"https://api.github.com/users/tokee/gists{/gist_id}","starred_url":"https://api.github.com/users/tokee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tokee/subscriptions","organizations_url":"https://api.github.com/users/tokee/orgs","repos_url":"https://api.github.com/users/tokee/repos","events_url":"https://api.github.com/users/tokee/events{/privacy}","received_events_url":"https://api.github.com/users/tokee/received_events","type":"User","site_admin":false},"assignees":[{"login":"tokee","id":199454,"avatar_url":"https://avatars1.githubusercontent.com/u/199454?v=4","gravatar_id":"","url":"https://api.github.com/users/tokee","html_url":"https://github.com/tokee","followers_url":"https://api.github.com/users/tokee/followers","following_url":"https://api.github.com/users/tokee/following{/other_user}","gists_url":"https://api.github.com/users/tokee/gists{/gist_id}","starred_url":"https://api.github.com/users/tokee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tokee/subscriptions","organizations_url":"https://api.github.com/users/tokee/orgs","repos_url":"https://api.github.com/users/tokee/repos","events_url":"https://api.github.com/users/tokee/events{/privacy}","received_events_url":"https://api.github.com/users/tokee/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":22717775,"url":"https://api.github.com/repos/ukwa/webarchive-discovery/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"milestone":null,"commits_url":"https://api.github.com/repos/ukwa/webarchive-discovery/pulls/177/commits","review_comments_url":"https://api.github.com/repos/ukwa/webarchive-discovery/pulls/177/comments","review_comment_url":"https://api.github.com/repos/ukwa/webarchive-discovery/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ukwa/webarchive-discovery/issues/177/comments","statuses_url":"https://api.github.com/repos/ukwa/webarchive-discovery/statuses/b4b61d6c75c22f38ec1c05d9fff2386d5b0e5c78","head":{"label":"netarchivesuite:weekday","ref":"weekday","sha":"b4b61d6c75c22f38ec1c05d9fff2386d5b0e5c78","user":{"login":"netarchivesuite","id":1866332,"avatar_url":"https://avatars1.githubusercontent.com/u/1866332?v=4","gravatar_id":"","url":"https://api.github.com/users/netarchivesuite","html_url":"https://github.com/netarchivesuite","followers_url":"https://api.github.com/users/netarchivesuite/followers","following_url":"https://api.github.com/users/netarchivesuite/following{/other_user}","gists_url":"https://api.github.com/users/netarchivesuite/gists{/gist_id}","starred_url":"https://api.github.com/users/netarchivesuite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netarchivesuite/subscriptions","organizations_url":"https://api.github.com/users/netarchivesuite/orgs","repos_url":"https://api.github.com/users/netarchivesuite/repos","events_url":"https://api.github.com/users/netarchivesuite/events{/privacy}","received_events_url":"https://api.github.com/users/netarchivesuite/received_events","type":"Organization","site_admin":false},"repo":{"id":30534776,"name":"webarchive-discovery","full_name":"netarchivesuite/webarchive-discovery","owner":{"login":"netarchivesuite","id":1866332,"avatar_url":"https://avatars1.githubusercontent.com/u/1866332?v=4","gravatar_id":"","url":"https://api.github.com/users/netarchivesuite","html_url":"https://github.com/netarchivesuite","followers_url":"https://api.github.com/users/netarchivesuite/followers","following_url":"https://api.github.com/users/netarchivesuite/following{/other_user}","gists_url":"https://api.github.com/users/netarchivesuite/gists{/gist_id}","starred_url":"https://api.github.com/users/netarchivesuite/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netarchivesuite/subscriptions","organizations_url":"https://api.github.com/users/netarchivesuite/orgs","repos_url":"https://api.github.com/users/netarchivesuite/repos","events_url":"https://api.github.com/users/netarchivesuite/events{/privacy}","received_events_url":"https://api.github.com/users/netarchivesuite/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/netarchivesuite/webarchive-discovery","description":"WARC and ARC indexing and discovery tools.","fork":true,"url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery","forks_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/forks","keys_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/teams","hooks_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/hooks","issue_events_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/issues/events{/number}","events_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/events","assignees_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/assignees{/user}","branches_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/branches{/branch}","tags_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/tags","blobs_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/git/refs{/sha}","trees_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/statuses/{sha}","languages_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/languages","stargazers_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/stargazers","contributors_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/contributors","subscribers_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/subscribers","subscription_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/subscription","commits_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/commits{/sha}","git_commits_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/git/commits{/sha}","comments_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/comments{/number}","issue_comment_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/issues/comments{/number}","contents_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/contents/{+path}","compare_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/merges","archive_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/downloads","issues_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/issues{/number}","pulls_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/pulls{/number}","milestones_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/milestones{/number}","notifications_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/labels{/name}","releases_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/releases{/id}","deployments_url":"https://api.github.com/repos/netarchivesuite/webarchive-discovery/deployments","created_at":"2015-02-09T12:29:35Z","updated_at":"2016-05-23T12:37:48Z","pushed_at":"2018-05-29T14:41:22Z","git_url":"git://github.com/netarchivesuite/webarchive-discovery.git","ssh_url":"git@github.com:netarchivesuite/webarchive-discovery.git","clone_url":"https://github.com/netarchivesuite/webarchive-discovery.git","svn_url":"https://github.com/netarchivesuite/webarchive-discovery","homepage":"https://github.com/ukwa/webarchive-discovery/wiki","size":7677,"stargazers_count":0,"watchers_count":0,"language":"Java","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":2,"license":null,"forks":0,"open_issues":2,"watchers":0,"default_branch":"sb-2-dev"}},"base":{"label":"ukwa:master","ref":"master","sha":"9c60c911b0b2168238a1ccfb88f146a5759baf6f","user":{"login":"ukwa","id":1745904,"avatar_url":"https://avatars1.githubusercontent.com/u/1745904?v=4","gravatar_id":"","url":"https://api.github.com/users/ukwa","html_url":"https://github.com/ukwa","followers_url":"https://api.github.com/users/ukwa/followers","following_url":"https://api.github.com/users/ukwa/following{/other_user}","gists_url":"https://api.github.com/users/ukwa/gists{/gist_id}","starred_url":"https://api.github.com/users/ukwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ukwa/subscriptions","organizations_url":"https://api.github.com/users/ukwa/orgs","repos_url":"https://api.github.com/users/ukwa/repos","events_url":"https://api.github.com/users/ukwa/events{/privacy}","received_events_url":"https://api.github.com/users/ukwa/received_events","type":"Organization","site_admin":false},"repo":{"id":7257232,"name":"webarchive-discovery","full_name":"ukwa/webarchive-discovery","owner":{"login":"ukwa","id":1745904,"avatar_url":"https://avatars1.githubusercontent.com/u/1745904?v=4","gravatar_id":"","url":"https://api.github.com/users/ukwa","html_url":"https://github.com/ukwa","followers_url":"https://api.github.com/users/ukwa/followers","following_url":"https://api.github.com/users/ukwa/following{/other_user}","gists_url":"https://api.github.com/users/ukwa/gists{/gist_id}","starred_url":"https://api.github.com/users/ukwa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ukwa/subscriptions","organizations_url":"https://api.github.com/users/ukwa/orgs","repos_url":"https://api.github.com/users/ukwa/repos","events_url":"https://api.github.com/users/ukwa/events{/privacy}","received_events_url":"https://api.github.com/users/ukwa/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ukwa/webarchive-discovery","description":"WARC and ARC indexing and discovery tools.","fork":false,"url":"https://api.github.com/repos/ukwa/webarchive-discovery","forks_url":"https://api.github.com/repos/ukwa/webarchive-discovery/forks","keys_url":"https://api.github.com/repos/ukwa/webarchive-discovery/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ukwa/webarchive-discovery/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ukwa/webarchive-discovery/teams","hooks_url":"https://api.github.com/repos/ukwa/webarchive-discovery/hooks","issue_events_url":"https://api.github.com/repos/ukwa/webarchive-discovery/issues/events{/number}","events_url":"https://api.github.com/repos/ukwa/webarchive-discovery/events","assignees_url":"https://api.github.com/repos/ukwa/webarchive-discovery/assignees{/user}","branches_url":"https://api.github.com/repos/ukwa/webarchive-discovery/branches{/branch}","tags_url":"https://api.github.com/repos/ukwa/webarchive-discovery/tags","blobs_url":"https://api.github.com/repos/ukwa/webarchive-discovery/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ukwa/webarchive-discovery/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ukwa/webarchive-discovery/git/refs{/sha}","trees_url":"https://api.github.com/repos/ukwa/webarchive-discovery/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ukwa/webarchive-discovery/statuses/{sha}","languages_url":"https://api.github.com/repos/ukwa/webarchive-discovery/languages","stargazers_url":"https://api.github.com/repos/ukwa/webarchive-discovery/stargazers","contributors_url":"https://api.github.com/repos/ukwa/webarchive-discovery/contributors","subscribers_url":"https://api.github.com/repos/ukwa/webarchive-discovery/subscribers","subscription_url":"https://api.github.com/repos/ukwa/webarchive-discovery/subscription","commits_url":"https://api.github.com/repos/ukwa/webarchive-discovery/commits{/sha}","git_commits_url":"https://api.github.com/repos/ukwa/webarchive-discovery/git/commits{/sha}","comments_url":"https://api.github.com/repos/ukwa/webarchive-discovery/comments{/number}","issue_comment_url":"https://api.github.com/repos/ukwa/webarchive-discovery/issues/comments{/number}","contents_url":"https://api.github.com/repos/ukwa/webarchive-discovery/contents/{+path}","compare_url":"https://api.github.com/repos/ukwa/webarchive-discovery/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ukwa/webarchive-discovery/merges","archive_url":"https://api.github.com/repos/ukwa/webarchive-discovery/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ukwa/webarchive-discovery/downloads","issues_url":"https://api.github.com/repos/ukwa/webarchive-discovery/issues{/number}","pulls_url":"https://api.github.com/repos/ukwa/webarchive-discovery/pulls{/number}","milestones_url":"https://api.github.com/repos/ukwa/webarchive-discovery/milestones{/number}","notifications_url":"https://api.github.com/repos/ukwa/webarchive-discovery/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ukwa/webarchive-discovery/labels{/name}","releases_url":"https://api.github.com/repos/ukwa/webarchive-discovery/releases{/id}","deployments_url":"https://api.github.com/repos/ukwa/webarchive-discovery/deployments","created_at":"2012-12-20T12:17:14Z","updated_at":"2018-05-22T09:28:30Z","pushed_at":"2018-05-28T12:19:50Z","git_url":"git://github.com/ukwa/webarchive-discovery.git","ssh_url":"git@github.com:ukwa/webarchive-discovery.git","clone_url":"https://github.com/ukwa/webarchive-discovery.git","svn_url":"https://github.com/ukwa/webarchive-discovery","homepage":"https://github.com/ukwa/webarchive-discovery/wiki","size":7575,"stargazers_count":52,"watchers_count":52,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":59,"license":null,"forks":14,"open_issues":59,"watchers":52,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ukwa/webarchive-discovery/pulls/177"},"html":{"href":"https://github.com/ukwa/webarchive-discovery/pull/177"},"issue":{"href":"https://api.github.com/repos/ukwa/webarchive-discovery/issues/177"},"comments":{"href":"https://api.github.com/repos/ukwa/webarchive-discovery/issues/177/comments"},"review_comments":{"href":"https://api.github.com/repos/ukwa/webarchive-discovery/pulls/177/comments"},"review_comment":{"href":"https://api.github.com/repos/ukwa/webarchive-discovery/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ukwa/webarchive-discovery/pulls/177/commits"},"statuses":{"href":"https://api.github.com/repos/ukwa/webarchive-discovery/statuses/b4b61d6c75c22f38ec1c05d9fff2386d5b0e5c78"}},"author_association":"COLLABORATOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":2,"additions":49,"deletions":7,"changed_files":5}}
{"actor":{"display_login":"tokee"}}