{"action":"closed","number":102,"pull_request":{"url":"https://api.github.com/repos/rails/globalid/pulls/102","id":135476763,"html_url":"https://github.com/rails/globalid/pull/102","diff_url":"https://github.com/rails/globalid/pull/102.diff","patch_url":"https://github.com/rails/globalid/pull/102.patch","issue_url":"https://api.github.com/repos/rails/globalid/issues/102","number":102,"state":"closed","locked":false,"title":"Eager load the constants","user":{"login":"y-yagi","id":987638,"avatar_url":"https://avatars1.githubusercontent.com/u/987638?v=4","gravatar_id":"","url":"https://api.github.com/users/y-yagi","html_url":"https://github.com/y-yagi","followers_url":"https://api.github.com/users/y-yagi/followers","following_url":"https://api.github.com/users/y-yagi/following{/other_user}","gists_url":"https://api.github.com/users/y-yagi/gists{/gist_id}","starred_url":"https://api.github.com/users/y-yagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y-yagi/subscriptions","organizations_url":"https://api.github.com/users/y-yagi/orgs","repos_url":"https://api.github.com/users/y-yagi/repos","events_url":"https://api.github.com/users/y-yagi/events{/privacy}","received_events_url":"https://api.github.com/users/y-yagi/received_events","type":"User","site_admin":false},"body":"In a thread-based backend like Sidekiq, there is a possibility that autoload may occur simultaneously in multiple threads, and as a result, it is presumed that an error may be caused by contention of autoload.\r\n\r\nIn order to avoid the above issue, eager load the constants on boot.\r\nMaybe fixes #101\r\n\r\nContext: https://github.com/rails/rails/pull/30217#issuecomment-322012021","created_at":"2017-08-12T23:56:26Z","updated_at":"2017-08-16T18:39:57Z","closed_at":"2017-08-16T18:39:57Z","merged_at":"2017-08-16T18:39:57Z","merge_commit_sha":"c41b3215c90ba25708d7af92c84c8e2ff55ca14a","assignee":{"login":"kaspth","id":350807,"avatar_url":"https://avatars0.githubusercontent.com/u/350807?v=4","gravatar_id":"","url":"https://api.github.com/users/kaspth","html_url":"https://github.com/kaspth","followers_url":"https://api.github.com/users/kaspth/followers","following_url":"https://api.github.com/users/kaspth/following{/other_user}","gists_url":"https://api.github.com/users/kaspth/gists{/gist_id}","starred_url":"https://api.github.com/users/kaspth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaspth/subscriptions","organizations_url":"https://api.github.com/users/kaspth/orgs","repos_url":"https://api.github.com/users/kaspth/repos","events_url":"https://api.github.com/users/kaspth/events{/privacy}","received_events_url":"https://api.github.com/users/kaspth/received_events","type":"User","site_admin":false},"assignees":[{"login":"kaspth","id":350807,"avatar_url":"https://avatars0.githubusercontent.com/u/350807?v=4","gravatar_id":"","url":"https://api.github.com/users/kaspth","html_url":"https://github.com/kaspth","followers_url":"https://api.github.com/users/kaspth/followers","following_url":"https://api.github.com/users/kaspth/following{/other_user}","gists_url":"https://api.github.com/users/kaspth/gists{/gist_id}","starred_url":"https://api.github.com/users/kaspth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaspth/subscriptions","organizations_url":"https://api.github.com/users/kaspth/orgs","repos_url":"https://api.github.com/users/kaspth/repos","events_url":"https://api.github.com/users/kaspth/events{/privacy}","received_events_url":"https://api.github.com/users/kaspth/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/rails/globalid/pulls/102/commits","review_comments_url":"https://api.github.com/repos/rails/globalid/pulls/102/comments","review_comment_url":"https://api.github.com/repos/rails/globalid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/rails/globalid/issues/102/comments","statuses_url":"https://api.github.com/repos/rails/globalid/statuses/797a383c5d4aae7d92d9c00ac5bf6fd5d3ee2dcc","head":{"label":"y-yagi:eager_load_constants","ref":"eager_load_constants","sha":"797a383c5d4aae7d92d9c00ac5bf6fd5d3ee2dcc","user":{"login":"y-yagi","id":987638,"avatar_url":"https://avatars1.githubusercontent.com/u/987638?v=4","gravatar_id":"","url":"https://api.github.com/users/y-yagi","html_url":"https://github.com/y-yagi","followers_url":"https://api.github.com/users/y-yagi/followers","following_url":"https://api.github.com/users/y-yagi/following{/other_user}","gists_url":"https://api.github.com/users/y-yagi/gists{/gist_id}","starred_url":"https://api.github.com/users/y-yagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y-yagi/subscriptions","organizations_url":"https://api.github.com/users/y-yagi/orgs","repos_url":"https://api.github.com/users/y-yagi/repos","events_url":"https://api.github.com/users/y-yagi/events{/privacy}","received_events_url":"https://api.github.com/users/y-yagi/received_events","type":"User","site_admin":false},"repo":{"id":62868324,"name":"globalid","full_name":"y-yagi/globalid","owner":{"login":"y-yagi","id":987638,"avatar_url":"https://avatars1.githubusercontent.com/u/987638?v=4","gravatar_id":"","url":"https://api.github.com/users/y-yagi","html_url":"https://github.com/y-yagi","followers_url":"https://api.github.com/users/y-yagi/followers","following_url":"https://api.github.com/users/y-yagi/following{/other_user}","gists_url":"https://api.github.com/users/y-yagi/gists{/gist_id}","starred_url":"https://api.github.com/users/y-yagi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/y-yagi/subscriptions","organizations_url":"https://api.github.com/users/y-yagi/orgs","repos_url":"https://api.github.com/users/y-yagi/repos","events_url":"https://api.github.com/users/y-yagi/events{/privacy}","received_events_url":"https://api.github.com/users/y-yagi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/y-yagi/globalid","description":"Identify app models with a URI","fork":true,"url":"https://api.github.com/repos/y-yagi/globalid","forks_url":"https://api.github.com/repos/y-yagi/globalid/forks","keys_url":"https://api.github.com/repos/y-yagi/globalid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/y-yagi/globalid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/y-yagi/globalid/teams","hooks_url":"https://api.github.com/repos/y-yagi/globalid/hooks","issue_events_url":"https://api.github.com/repos/y-yagi/globalid/issues/events{/number}","events_url":"https://api.github.com/repos/y-yagi/globalid/events","assignees_url":"https://api.github.com/repos/y-yagi/globalid/assignees{/user}","branches_url":"https://api.github.com/repos/y-yagi/globalid/branches{/branch}","tags_url":"https://api.github.com/repos/y-yagi/globalid/tags","blobs_url":"https://api.github.com/repos/y-yagi/globalid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/y-yagi/globalid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/y-yagi/globalid/git/refs{/sha}","trees_url":"https://api.github.com/repos/y-yagi/globalid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/y-yagi/globalid/statuses/{sha}","languages_url":"https://api.github.com/repos/y-yagi/globalid/languages","stargazers_url":"https://api.github.com/repos/y-yagi/globalid/stargazers","contributors_url":"https://api.github.com/repos/y-yagi/globalid/contributors","subscribers_url":"https://api.github.com/repos/y-yagi/globalid/subscribers","subscription_url":"https://api.github.com/repos/y-yagi/globalid/subscription","commits_url":"https://api.github.com/repos/y-yagi/globalid/commits{/sha}","git_commits_url":"https://api.github.com/repos/y-yagi/globalid/git/commits{/sha}","comments_url":"https://api.github.com/repos/y-yagi/globalid/comments{/number}","issue_comment_url":"https://api.github.com/repos/y-yagi/globalid/issues/comments{/number}","contents_url":"https://api.github.com/repos/y-yagi/globalid/contents/{+path}","compare_url":"https://api.github.com/repos/y-yagi/globalid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/y-yagi/globalid/merges","archive_url":"https://api.github.com/repos/y-yagi/globalid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/y-yagi/globalid/downloads","issues_url":"https://api.github.com/repos/y-yagi/globalid/issues{/number}","pulls_url":"https://api.github.com/repos/y-yagi/globalid/pulls{/number}","milestones_url":"https://api.github.com/repos/y-yagi/globalid/milestones{/number}","notifications_url":"https://api.github.com/repos/y-yagi/globalid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/y-yagi/globalid/labels{/name}","releases_url":"https://api.github.com/repos/y-yagi/globalid/releases{/id}","deployments_url":"https://api.github.com/repos/y-yagi/globalid/deployments","created_at":"2016-07-08T07:33:02Z","updated_at":"2016-07-08T07:33:04Z","pushed_at":"2017-08-15T22:34:34Z","git_url":"git://github.com/y-yagi/globalid.git","ssh_url":"git@github.com:y-yagi/globalid.git","clone_url":"https://github.com/y-yagi/globalid.git","svn_url":"https://github.com/y-yagi/globalid","homepage":null,"size":161,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"rails:master","ref":"master","sha":"b7c5f6d9de7684e3fbd34dc7cc180411681e8ed0","user":{"login":"rails","id":4223,"avatar_url":"https://avatars1.githubusercontent.com/u/4223?v=4","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"repo":{"id":22991474,"name":"globalid","full_name":"rails/globalid","owner":{"login":"rails","id":4223,"avatar_url":"https://avatars1.githubusercontent.com/u/4223?v=4","gravatar_id":"","url":"https://api.github.com/users/rails","html_url":"https://github.com/rails","followers_url":"https://api.github.com/users/rails/followers","following_url":"https://api.github.com/users/rails/following{/other_user}","gists_url":"https://api.github.com/users/rails/gists{/gist_id}","starred_url":"https://api.github.com/users/rails/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rails/subscriptions","organizations_url":"https://api.github.com/users/rails/orgs","repos_url":"https://api.github.com/users/rails/repos","events_url":"https://api.github.com/users/rails/events{/privacy}","received_events_url":"https://api.github.com/users/rails/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/rails/globalid","description":"Identify app models with a URI","fork":false,"url":"https://api.github.com/repos/rails/globalid","forks_url":"https://api.github.com/repos/rails/globalid/forks","keys_url":"https://api.github.com/repos/rails/globalid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rails/globalid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rails/globalid/teams","hooks_url":"https://api.github.com/repos/rails/globalid/hooks","issue_events_url":"https://api.github.com/repos/rails/globalid/issues/events{/number}","events_url":"https://api.github.com/repos/rails/globalid/events","assignees_url":"https://api.github.com/repos/rails/globalid/assignees{/user}","branches_url":"https://api.github.com/repos/rails/globalid/branches{/branch}","tags_url":"https://api.github.com/repos/rails/globalid/tags","blobs_url":"https://api.github.com/repos/rails/globalid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rails/globalid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rails/globalid/git/refs{/sha}","trees_url":"https://api.github.com/repos/rails/globalid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rails/globalid/statuses/{sha}","languages_url":"https://api.github.com/repos/rails/globalid/languages","stargazers_url":"https://api.github.com/repos/rails/globalid/stargazers","contributors_url":"https://api.github.com/repos/rails/globalid/contributors","subscribers_url":"https://api.github.com/repos/rails/globalid/subscribers","subscription_url":"https://api.github.com/repos/rails/globalid/subscription","commits_url":"https://api.github.com/repos/rails/globalid/commits{/sha}","git_commits_url":"https://api.github.com/repos/rails/globalid/git/commits{/sha}","comments_url":"https://api.github.com/repos/rails/globalid/comments{/number}","issue_comment_url":"https://api.github.com/repos/rails/globalid/issues/comments{/number}","contents_url":"https://api.github.com/repos/rails/globalid/contents/{+path}","compare_url":"https://api.github.com/repos/rails/globalid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rails/globalid/merges","archive_url":"https://api.github.com/repos/rails/globalid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rails/globalid/downloads","issues_url":"https://api.github.com/repos/rails/globalid/issues{/number}","pulls_url":"https://api.github.com/repos/rails/globalid/pulls{/number}","milestones_url":"https://api.github.com/repos/rails/globalid/milestones{/number}","notifications_url":"https://api.github.com/repos/rails/globalid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rails/globalid/labels{/name}","releases_url":"https://api.github.com/repos/rails/globalid/releases{/id}","deployments_url":"https://api.github.com/repos/rails/globalid/deployments","created_at":"2014-08-15T14:05:35Z","updated_at":"2017-08-15T09:09:27Z","pushed_at":"2017-08-16T18:39:56Z","git_url":"git://github.com/rails/globalid.git","ssh_url":"git@github.com:rails/globalid.git","clone_url":"https://github.com/rails/globalid.git","svn_url":"https://github.com/rails/globalid","homepage":null,"size":160,"stargazers_count":558,"watchers_count":558,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":69,"mirror_url":null,"open_issues_count":2,"forks":69,"open_issues":2,"watchers":558,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/rails/globalid/pulls/102"},"html":{"href":"https://github.com/rails/globalid/pull/102"},"issue":{"href":"https://api.github.com/repos/rails/globalid/issues/102"},"comments":{"href":"https://api.github.com/repos/rails/globalid/issues/102/comments"},"review_comments":{"href":"https://api.github.com/repos/rails/globalid/pulls/102/comments"},"review_comment":{"href":"https://api.github.com/repos/rails/globalid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/rails/globalid/pulls/102/commits"},"statuses":{"href":"https://api.github.com/repos/rails/globalid/statuses/797a383c5d4aae7d92d9c00ac5bf6fd5d3ee2dcc"}},"merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"rafaelfranca","id":47848,"avatar_url":"https://avatars3.githubusercontent.com/u/47848?v=4","gravatar_id":"","url":"https://api.github.com/users/rafaelfranca","html_url":"https://github.com/rafaelfranca","followers_url":"https://api.github.com/users/rafaelfranca/followers","following_url":"https://api.github.com/users/rafaelfranca/following{/other_user}","gists_url":"https://api.github.com/users/rafaelfranca/gists{/gist_id}","starred_url":"https://api.github.com/users/rafaelfranca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rafaelfranca/subscriptions","organizations_url":"https://api.github.com/users/rafaelfranca/orgs","repos_url":"https://api.github.com/users/rafaelfranca/repos","events_url":"https://api.github.com/users/rafaelfranca/events{/privacy}","received_events_url":"https://api.github.com/users/rafaelfranca/received_events","type":"User","site_admin":false},"comments":5,"review_comments":4,"maintainer_can_modify":false,"commits":1,"additions":14,"deletions":3,"changed_files":2}}
{"actor":{"display_login":"rafaelfranca"}}