{"action":"created","issue":{"url":"https://api.github.com/repos/Katello/katello/issues/6470","repository_url":"https://api.github.com/repos/Katello/katello","labels_url":"https://api.github.com/repos/Katello/katello/issues/6470/labels{/name}","comments_url":"https://api.github.com/repos/Katello/katello/issues/6470/comments","events_url":"https://api.github.com/repos/Katello/katello/issues/6470/events","html_url":"https://github.com/Katello/katello/pull/6470","id":191341080,"number":6470,"title":"Fixes #17465: Move backend data initialization to app initialization","user":{"login":"ehelms","id":293363,"avatar_url":"https://avatars.githubusercontent.com/u/293363?v=3","gravatar_id":"","url":"https://api.github.com/users/ehelms","html_url":"https://github.com/ehelms","followers_url":"https://api.github.com/users/ehelms/followers","following_url":"https://api.github.com/users/ehelms/following{/other_user}","gists_url":"https://api.github.com/users/ehelms/gists{/gist_id}","starred_url":"https://api.github.com/users/ehelms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehelms/subscriptions","organizations_url":"https://api.github.com/users/ehelms/orgs","repos_url":"https://api.github.com/users/ehelms/repos","events_url":"https://api.github.com/users/ehelms/events{/privacy}","received_events_url":"https://api.github.com/users/ehelms/received_events","type":"User","site_admin":false},"labels":[{"id":117819343,"url":"https://api.github.com/repos/Katello/katello/labels/Needs%20testing","name":"Needs testing","color":"fbca04","default":false},{"id":117819415,"url":"https://api.github.com/repos/Katello/katello/labels/Not%20yet%20reviewed","name":"Not yet reviewed","color":"009800","default":false},{"id":117832800,"url":"https://api.github.com/repos/Katello/katello/labels/Waiting%20on%20contributor","name":"Waiting on contributor","color":"eb6420","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":13,"created_at":"2016-11-23T17:51:52Z","updated_at":"2016-11-23T20:09:57Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Katello/katello/pulls/6470","html_url":"https://github.com/Katello/katello/pull/6470","diff_url":"https://github.com/Katello/katello/pull/6470.diff","patch_url":"https://github.com/Katello/katello/pull/6470.patch"},"body":"Moves the data in backend systems that needs to be initialized,\r\nCandlepin organizations and Pulp sync notifications, to application\r\ninitialization and out of the database seeds. This allows database\r\nseeds to focus on the database solely, and to allo wthe application\r\nto check on health services and whether data needs to be initialized\r\nin a particular backend.\r\n\r\nThis has the effect of not requiring backends to be up during seed\r\nprocess, but to be up during application start."},"comment":{"url":"https://api.github.com/repos/Katello/katello/issues/comments/262618815","html_url":"https://github.com/Katello/katello/pull/6470#issuecomment-262618815","issue_url":"https://api.github.com/repos/Katello/katello/issues/6470","id":262618815,"user":{"login":"ehelms","id":293363,"avatar_url":"https://avatars.githubusercontent.com/u/293363?v=3","gravatar_id":"","url":"https://api.github.com/users/ehelms","html_url":"https://github.com/ehelms","followers_url":"https://api.github.com/users/ehelms/followers","following_url":"https://api.github.com/users/ehelms/following{/other_user}","gists_url":"https://api.github.com/users/ehelms/gists{/gist_id}","starred_url":"https://api.github.com/users/ehelms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ehelms/subscriptions","organizations_url":"https://api.github.com/users/ehelms/orgs","repos_url":"https://api.github.com/users/ehelms/repos","events_url":"https://api.github.com/users/ehelms/events{/privacy}","received_events_url":"https://api.github.com/users/ehelms/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T20:09:57Z","updated_at":"2016-11-23T20:09:57Z","body":"@ekohl we kinda do that today with our lazy_accessors for attributes that are needed to be read from the backend systems. For data manipulation, we do ping checks to ensure the system is up for Dynflow based actions. The situations we have here are just to clarify:\r\n\r\n 1) All Organizations need a corresponding Owner object in Candlepin, this is generally only tricky for existing Organizations that would be present on an existing Foreman or with the current installation method, Foreman seeds an initial Organization and we need to ensure that gets created.\r\n\r\n 2) Sync plans are handled solely by Pulp, so they kick off behind the scenes and we thus rely on Pulp to notify us when a sync has completed when performed via a sync plan. This is why we configure a notifier to let us know when one finishes to index the content and perform other actions we need for data consistency."}}
{"actor":{"display_login":"ehelms"}}