{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/che/issues/5234","repository_url":"https://api.github.com/repos/eclipse/che","labels_url":"https://api.github.com/repos/eclipse/che/issues/5234/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/che/issues/5234/comments","events_url":"https://api.github.com/repos/eclipse/che/issues/5234/events","html_url":"https://github.com/eclipse/che/pull/5234","id":232211594,"number":5234,"title":"Change public stacks, recipes loading policy","user":{"login":"akorneta","id":12269156,"avatar_url":"https://avatars2.githubusercontent.com/u/12269156?v=3","gravatar_id":"","url":"https://api.github.com/users/akorneta","html_url":"https://github.com/akorneta","followers_url":"https://api.github.com/users/akorneta/followers","following_url":"https://api.github.com/users/akorneta/following{/other_user}","gists_url":"https://api.github.com/users/akorneta/gists{/gist_id}","starred_url":"https://api.github.com/users/akorneta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akorneta/subscriptions","organizations_url":"https://api.github.com/users/akorneta/orgs","repos_url":"https://api.github.com/users/akorneta/repos","events_url":"https://api.github.com/users/akorneta/events{/privacy}","received_events_url":"https://api.github.com/users/akorneta/received_events","type":"User","site_admin":false},"labels":[{"id":192367928,"url":"https://api.github.com/repos/eclipse/che/labels/kind/enhancement","name":"kind/enhancement","color":"84b6eb","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":45,"created_at":"2017-05-30T10:41:22Z","updated_at":"2017-06-16T12:09:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/eclipse/che/pulls/5234","html_url":"https://github.com/eclipse/che/pull/5234","diff_url":"https://github.com/eclipse/che/pull/5234.diff","patch_url":"https://github.com/eclipse/che/pull/5234.patch"},"body":"### What does this PR do?\r\nChanges logic of stacks, recipes loading from _always overwrite_ to _load once_ that means following:\r\n_public stacks_ would be loaded from `stacks.json` only once after the first initialization of the database schema, for users with an existing database state, stacks will not be loaded. In order to modify, delete, add another `public stacks`, che user or codenvy admin should use dashboard functionality or stack API.\r\nAdded initialization properties to `DBInitializer` which needed to keep information about db state before init start.\r\n\r\n### What issues does this PR fix or reference?\r\nhttps://github.com/eclipse/che/issues/3629\r\nis needed for [CODENVY-2208](https://github.com/codenvy/codenvy/issues/2208)\r\n\r\n#### Changelog\r\nchanges stacks, recipes loading policy.\r\n\r\n#### Release Notes\r\nn/a"},"comment":{"url":"https://api.github.com/repos/eclipse/che/issues/comments/309010186","html_url":"https://github.com/eclipse/che/pull/5234#issuecomment-309010186","issue_url":"https://api.github.com/repos/eclipse/che/issues/5234","id":309010186,"user":{"login":"gazarenkov","id":578124,"avatar_url":"https://avatars3.githubusercontent.com/u/578124?v=3","gravatar_id":"","url":"https://api.github.com/users/gazarenkov","html_url":"https://github.com/gazarenkov","followers_url":"https://api.github.com/users/gazarenkov/followers","following_url":"https://api.github.com/users/gazarenkov/following{/other_user}","gists_url":"https://api.github.com/users/gazarenkov/gists{/gist_id}","starred_url":"https://api.github.com/users/gazarenkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gazarenkov/subscriptions","organizations_url":"https://api.github.com/users/gazarenkov/orgs","repos_url":"https://api.github.com/users/gazarenkov/repos","events_url":"https://api.github.com/users/gazarenkov/events{/privacy}","received_events_url":"https://api.github.com/users/gazarenkov/received_events","type":"User","site_admin":false},"created_at":"2017-06-16T12:09:00Z","updated_at":"2017-06-16T12:09:00Z","body":"@sunix \r\nIf you want to provide something more sophisticated than \"simple\" merging - do it, this complexity just should not block this PR merging."}}
{"actor":{"display_login":"gazarenkov"}}