{"action":"opened","number":334,"pull_request":{"url":"https://api.github.com/repos/LibreCat/LibreCat/pulls/334","id":148594741,"html_url":"https://github.com/LibreCat/LibreCat/pull/334","diff_url":"https://github.com/LibreCat/LibreCat/pull/334.diff","patch_url":"https://github.com/LibreCat/LibreCat/pull/334.patch","issue_url":"https://api.github.com/repos/LibreCat/LibreCat/issues/334","number":334,"state":"open","locked":false,"title":"Pr/small seamless index switch","user":{"login":"phochste","id":66416,"avatar_url":"https://avatars1.githubusercontent.com/u/66416?v=4","gravatar_id":"","url":"https://api.github.com/users/phochste","html_url":"https://github.com/phochste","followers_url":"https://api.github.com/users/phochste/followers","following_url":"https://api.github.com/users/phochste/following{/other_user}","gists_url":"https://api.github.com/users/phochste/gists{/gist_id}","starred_url":"https://api.github.com/users/phochste/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/phochste/subscriptions","organizations_url":"https://api.github.com/users/phochste/orgs","repos_url":"https://api.github.com/users/phochste/repos","events_url":"https://api.github.com/users/phochste/events{/privacy}","received_events_url":"https://api.github.com/users/phochste/received_events","type":"User","site_admin":false},"body":"This branch makes the \"index switch\" mechanism the default implementation to (re)index all the records in the installation.\r\n\r\nThere are two indexes _librecat1_ and _librecat2_ with one being the active index. The index alias _librecat_ always points to the active index. When the database is reindexed, the inactive index will be dropped and updated. At the end of this process the inactive index will be made active.\r\n\r\nThis procedure has one issue: while indexing the inactive index, the active index can get further updated not visible in the indexation process. E.g. it takes 15 minutes to index _librecat2_ during this time records can be added /deleted/updated in the backend database (and thus _librecat1_).\r\n\r\nOne suggestion is that the indexation code need to be enhanced (in pseudo code):\r\n\r\n```\r\n    my $t0 = undef;\r\n    do {\r\n        my $now = time;\r\n        my $count = $index->all(since => $t0);\r\n        $t0 = $now;\r\n  } while ($count);\r\n``` ","created_at":"2017-10-25T07:57:25Z","updated_at":"2017-10-25T07:57:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/LibreCat/LibreCat/pulls/334/commits","review_comments_url":"https://api.github.com/repos/LibreCat/LibreCat/pulls/334/comments","review_comment_url":"https://api.github.com/repos/LibreCat/LibreCat/pulls/comments{/number}","comments_url":"https://api.github.com/repos/LibreCat/LibreCat/issues/334/comments","statuses_url":"https://api.github.com/repos/LibreCat/LibreCat/statuses/24fa94d6ba843a620f19518f4f4a144da3e95724","head":{"label":"LibreCat:pr/small_seamless_index_switch","ref":"pr/small_seamless_index_switch","sha":"24fa94d6ba843a620f19518f4f4a144da3e95724","user":{"login":"LibreCat","id":1083022,"avatar_url":"https://avatars3.githubusercontent.com/u/1083022?v=4","gravatar_id":"","url":"https://api.github.com/users/LibreCat","html_url":"https://github.com/LibreCat","followers_url":"https://api.github.com/users/LibreCat/followers","following_url":"https://api.github.com/users/LibreCat/following{/other_user}","gists_url":"https://api.github.com/users/LibreCat/gists{/gist_id}","starred_url":"https://api.github.com/users/LibreCat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LibreCat/subscriptions","organizations_url":"https://api.github.com/users/LibreCat/orgs","repos_url":"https://api.github.com/users/LibreCat/repos","events_url":"https://api.github.com/users/LibreCat/events{/privacy}","received_events_url":"https://api.github.com/users/LibreCat/received_events","type":"Organization","site_admin":false},"repo":{"id":42499620,"name":"LibreCat","full_name":"LibreCat/LibreCat","owner":{"login":"LibreCat","id":1083022,"avatar_url":"https://avatars3.githubusercontent.com/u/1083022?v=4","gravatar_id":"","url":"https://api.github.com/users/LibreCat","html_url":"https://github.com/LibreCat","followers_url":"https://api.github.com/users/LibreCat/followers","following_url":"https://api.github.com/users/LibreCat/following{/other_user}","gists_url":"https://api.github.com/users/LibreCat/gists{/gist_id}","starred_url":"https://api.github.com/users/LibreCat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LibreCat/subscriptions","organizations_url":"https://api.github.com/users/LibreCat/orgs","repos_url":"https://api.github.com/users/LibreCat/repos","events_url":"https://api.github.com/users/LibreCat/events{/privacy}","received_events_url":"https://api.github.com/users/LibreCat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LibreCat/LibreCat","description":"Repository Software based on Catmandu","fork":false,"url":"https://api.github.com/repos/LibreCat/LibreCat","forks_url":"https://api.github.com/repos/LibreCat/LibreCat/forks","keys_url":"https://api.github.com/repos/LibreCat/LibreCat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LibreCat/LibreCat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LibreCat/LibreCat/teams","hooks_url":"https://api.github.com/repos/LibreCat/LibreCat/hooks","issue_events_url":"https://api.github.com/repos/LibreCat/LibreCat/issues/events{/number}","events_url":"https://api.github.com/repos/LibreCat/LibreCat/events","assignees_url":"https://api.github.com/repos/LibreCat/LibreCat/assignees{/user}","branches_url":"https://api.github.com/repos/LibreCat/LibreCat/branches{/branch}","tags_url":"https://api.github.com/repos/LibreCat/LibreCat/tags","blobs_url":"https://api.github.com/repos/LibreCat/LibreCat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LibreCat/LibreCat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LibreCat/LibreCat/git/refs{/sha}","trees_url":"https://api.github.com/repos/LibreCat/LibreCat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LibreCat/LibreCat/statuses/{sha}","languages_url":"https://api.github.com/repos/LibreCat/LibreCat/languages","stargazers_url":"https://api.github.com/repos/LibreCat/LibreCat/stargazers","contributors_url":"https://api.github.com/repos/LibreCat/LibreCat/contributors","subscribers_url":"https://api.github.com/repos/LibreCat/LibreCat/subscribers","subscription_url":"https://api.github.com/repos/LibreCat/LibreCat/subscription","commits_url":"https://api.github.com/repos/LibreCat/LibreCat/commits{/sha}","git_commits_url":"https://api.github.com/repos/LibreCat/LibreCat/git/commits{/sha}","comments_url":"https://api.github.com/repos/LibreCat/LibreCat/comments{/number}","issue_comment_url":"https://api.github.com/repos/LibreCat/LibreCat/issues/comments{/number}","contents_url":"https://api.github.com/repos/LibreCat/LibreCat/contents/{+path}","compare_url":"https://api.github.com/repos/LibreCat/LibreCat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LibreCat/LibreCat/merges","archive_url":"https://api.github.com/repos/LibreCat/LibreCat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LibreCat/LibreCat/downloads","issues_url":"https://api.github.com/repos/LibreCat/LibreCat/issues{/number}","pulls_url":"https://api.github.com/repos/LibreCat/LibreCat/pulls{/number}","milestones_url":"https://api.github.com/repos/LibreCat/LibreCat/milestones{/number}","notifications_url":"https://api.github.com/repos/LibreCat/LibreCat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LibreCat/LibreCat/labels{/name}","releases_url":"https://api.github.com/repos/LibreCat/LibreCat/releases{/id}","deployments_url":"https://api.github.com/repos/LibreCat/LibreCat/deployments","created_at":"2015-09-15T06:27:48Z","updated_at":"2017-10-12T08:39:51Z","pushed_at":"2017-10-25T07:43:58Z","git_url":"git://github.com/LibreCat/LibreCat.git","ssh_url":"git@github.com:LibreCat/LibreCat.git","clone_url":"https://github.com/LibreCat/LibreCat.git","svn_url":"https://github.com/LibreCat/LibreCat","homepage":"","size":13331,"stargazers_count":17,"watchers_count":17,"language":"Perl","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":45,"forks":3,"open_issues":45,"watchers":17,"default_branch":"master"}},"base":{"label":"LibreCat:dev","ref":"dev","sha":"af9b7c665563bd5a51995077f97981a5362c2b24","user":{"login":"LibreCat","id":1083022,"avatar_url":"https://avatars3.githubusercontent.com/u/1083022?v=4","gravatar_id":"","url":"https://api.github.com/users/LibreCat","html_url":"https://github.com/LibreCat","followers_url":"https://api.github.com/users/LibreCat/followers","following_url":"https://api.github.com/users/LibreCat/following{/other_user}","gists_url":"https://api.github.com/users/LibreCat/gists{/gist_id}","starred_url":"https://api.github.com/users/LibreCat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LibreCat/subscriptions","organizations_url":"https://api.github.com/users/LibreCat/orgs","repos_url":"https://api.github.com/users/LibreCat/repos","events_url":"https://api.github.com/users/LibreCat/events{/privacy}","received_events_url":"https://api.github.com/users/LibreCat/received_events","type":"Organization","site_admin":false},"repo":{"id":42499620,"name":"LibreCat","full_name":"LibreCat/LibreCat","owner":{"login":"LibreCat","id":1083022,"avatar_url":"https://avatars3.githubusercontent.com/u/1083022?v=4","gravatar_id":"","url":"https://api.github.com/users/LibreCat","html_url":"https://github.com/LibreCat","followers_url":"https://api.github.com/users/LibreCat/followers","following_url":"https://api.github.com/users/LibreCat/following{/other_user}","gists_url":"https://api.github.com/users/LibreCat/gists{/gist_id}","starred_url":"https://api.github.com/users/LibreCat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LibreCat/subscriptions","organizations_url":"https://api.github.com/users/LibreCat/orgs","repos_url":"https://api.github.com/users/LibreCat/repos","events_url":"https://api.github.com/users/LibreCat/events{/privacy}","received_events_url":"https://api.github.com/users/LibreCat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/LibreCat/LibreCat","description":"Repository Software based on Catmandu","fork":false,"url":"https://api.github.com/repos/LibreCat/LibreCat","forks_url":"https://api.github.com/repos/LibreCat/LibreCat/forks","keys_url":"https://api.github.com/repos/LibreCat/LibreCat/keys{/key_id}","collaborators_url":"https://api.github.com/repos/LibreCat/LibreCat/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/LibreCat/LibreCat/teams","hooks_url":"https://api.github.com/repos/LibreCat/LibreCat/hooks","issue_events_url":"https://api.github.com/repos/LibreCat/LibreCat/issues/events{/number}","events_url":"https://api.github.com/repos/LibreCat/LibreCat/events","assignees_url":"https://api.github.com/repos/LibreCat/LibreCat/assignees{/user}","branches_url":"https://api.github.com/repos/LibreCat/LibreCat/branches{/branch}","tags_url":"https://api.github.com/repos/LibreCat/LibreCat/tags","blobs_url":"https://api.github.com/repos/LibreCat/LibreCat/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/LibreCat/LibreCat/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/LibreCat/LibreCat/git/refs{/sha}","trees_url":"https://api.github.com/repos/LibreCat/LibreCat/git/trees{/sha}","statuses_url":"https://api.github.com/repos/LibreCat/LibreCat/statuses/{sha}","languages_url":"https://api.github.com/repos/LibreCat/LibreCat/languages","stargazers_url":"https://api.github.com/repos/LibreCat/LibreCat/stargazers","contributors_url":"https://api.github.com/repos/LibreCat/LibreCat/contributors","subscribers_url":"https://api.github.com/repos/LibreCat/LibreCat/subscribers","subscription_url":"https://api.github.com/repos/LibreCat/LibreCat/subscription","commits_url":"https://api.github.com/repos/LibreCat/LibreCat/commits{/sha}","git_commits_url":"https://api.github.com/repos/LibreCat/LibreCat/git/commits{/sha}","comments_url":"https://api.github.com/repos/LibreCat/LibreCat/comments{/number}","issue_comment_url":"https://api.github.com/repos/LibreCat/LibreCat/issues/comments{/number}","contents_url":"https://api.github.com/repos/LibreCat/LibreCat/contents/{+path}","compare_url":"https://api.github.com/repos/LibreCat/LibreCat/compare/{base}...{head}","merges_url":"https://api.github.com/repos/LibreCat/LibreCat/merges","archive_url":"https://api.github.com/repos/LibreCat/LibreCat/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/LibreCat/LibreCat/downloads","issues_url":"https://api.github.com/repos/LibreCat/LibreCat/issues{/number}","pulls_url":"https://api.github.com/repos/LibreCat/LibreCat/pulls{/number}","milestones_url":"https://api.github.com/repos/LibreCat/LibreCat/milestones{/number}","notifications_url":"https://api.github.com/repos/LibreCat/LibreCat/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/LibreCat/LibreCat/labels{/name}","releases_url":"https://api.github.com/repos/LibreCat/LibreCat/releases{/id}","deployments_url":"https://api.github.com/repos/LibreCat/LibreCat/deployments","created_at":"2015-09-15T06:27:48Z","updated_at":"2017-10-12T08:39:51Z","pushed_at":"2017-10-25T07:43:58Z","git_url":"git://github.com/LibreCat/LibreCat.git","ssh_url":"git@github.com:LibreCat/LibreCat.git","clone_url":"https://github.com/LibreCat/LibreCat.git","svn_url":"https://github.com/LibreCat/LibreCat","homepage":"","size":13331,"stargazers_count":17,"watchers_count":17,"language":"Perl","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":3,"mirror_url":null,"archived":false,"open_issues_count":45,"forks":3,"open_issues":45,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/LibreCat/LibreCat/pulls/334"},"html":{"href":"https://github.com/LibreCat/LibreCat/pull/334"},"issue":{"href":"https://api.github.com/repos/LibreCat/LibreCat/issues/334"},"comments":{"href":"https://api.github.com/repos/LibreCat/LibreCat/issues/334/comments"},"review_comments":{"href":"https://api.github.com/repos/LibreCat/LibreCat/pulls/334/comments"},"review_comment":{"href":"https://api.github.com/repos/LibreCat/LibreCat/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/LibreCat/LibreCat/pulls/334/commits"},"statuses":{"href":"https://api.github.com/repos/LibreCat/LibreCat/statuses/24fa94d6ba843a620f19518f4f4a144da3e95724"}},"author_association":"OWNER","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":false,"commits":2,"additions":329,"deletions":106,"changed_files":4}}
{"actor":{"display_login":"phochste"}}