{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/4976","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/4976/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/4976/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/4976/events","html_url":"https://github.com/ManageIQ/manageiq/pull/4976","id":112237794,"number":4976,"title":"Ensure default fields are set when adding a tenant","user":{"login":"kbrock","id":1930,"avatar_url":"https://avatars.githubusercontent.com/u/1930?v=3","gravatar_id":"","url":"https://api.github.com/users/kbrock","html_url":"https://github.com/kbrock","followers_url":"https://api.github.com/users/kbrock/followers","following_url":"https://api.github.com/users/kbrock/following{/other_user}","gists_url":"https://api.github.com/users/kbrock/gists{/gist_id}","starred_url":"https://api.github.com/users/kbrock/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbrock/subscriptions","organizations_url":"https://api.github.com/users/kbrock/orgs","repos_url":"https://api.github.com/users/kbrock/repos","events_url":"https://api.github.com/users/kbrock/events{/privacy}","received_events_url":"https://api.github.com/users/kbrock/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/tenancy","name":"tenancy","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-10-19T21:33:15Z","updated_at":"2015-10-19T21:50:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/4976","html_url":"https://github.com/ManageIQ/manageiq/pull/4976","diff_url":"https://github.com/ManageIQ/manageiq/pull/4976.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/4976.patch"},"body":"This fixes 2 issues around tenancy:\r\n\r\n1. The default tenant created does not have the correct values set. (the values in the `default_value_for columns`)\r\n2. When running the migration, the wrong metadata is cached for tenant and it blows up. This clears out the database metadata, so customers can migrate their database without blowing up.\r\n\r\n/cc @dclarizio @h-kataria this should resolve the problems with mk's database.\r\n/cc @abellotti FYI you had mentioned this in the past\r\n/cc @carbonin FYI think you saw this in the console too\r\n/cc @gmcculloug "},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/149358235","html_url":"https://github.com/ManageIQ/manageiq/pull/4976#issuecomment-149358235","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/4976","id":149358235,"user":{"login":"miq-bot","id":7806257,"avatar_url":"https://avatars.githubusercontent.com/u/7806257?v=3","gravatar_id":"","url":"https://api.github.com/users/miq-bot","html_url":"https://github.com/miq-bot","followers_url":"https://api.github.com/users/miq-bot/followers","following_url":"https://api.github.com/users/miq-bot/following{/other_user}","gists_url":"https://api.github.com/users/miq-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/miq-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miq-bot/subscriptions","organizations_url":"https://api.github.com/users/miq-bot/orgs","repos_url":"https://api.github.com/users/miq-bot/repos","events_url":"https://api.github.com/users/miq-bot/events{/privacy}","received_events_url":"https://api.github.com/users/miq-bot/received_events","type":"User","site_admin":false},"created_at":"2015-10-19T21:50:49Z","updated_at":"2015-10-19T21:50:49Z","body":"<rubocop />Checked commit https://github.com/kbrock/manageiq/commit/36cedf7591d072bc013e217b8c92e47f94b65280 with ruby 1.9.3, rubocop 0.34.2, and haml-lint 0.13.0\n2 files checked, 0 offenses detected\nEverything looks good. :cake:\n"}}