{"action":"created","issue":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/4110","labels_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/4110/labels{/name}","comments_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/4110/comments","events_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/4110/events","html_url":"https://github.com/ManageIQ/manageiq/pull/4110","id":103824810,"number":4110,"title":"Simplify code that generates and loads v2_keys","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/appliance/console","name":"appliance/console","color":"5319e7"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ManageIQ/manageiq/labels/core","name":"core","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-08-29T03:19:11Z","updated_at":"2015-09-01T20:31:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ManageIQ/manageiq/pulls/4110","html_url":"https://github.com/ManageIQ/manageiq/pull/4110","diff_url":"https://github.com/ManageIQ/manageiq/pull/4110.diff","patch_url":"https://github.com/ManageIQ/manageiq/pull/4110.patch"},"body":"Split out of #4091 \r\n\r\nHigh level:\r\n\r\nChange focus from `v0_key`, `v1_key`, and `v2_key` to primary key (`v2_key`) and `legacy_keys`. From here, #4091 will allow a user to use an old `v2_key` as a `legacy_key` and convert a database from using one `v2_key` to using another.\r\n\r\nLow level:\r\n\r\nMerged `ez_load` and `ez_load_v0` (the helpers behind `load_legacy_key`). In the process we also pick up the ability to pass in a filename or an actual key, making it easier to test.\r\n\r\nThis PR may be easier to merge if you review by commit."},"comment":{"url":"https://api.github.com/repos/ManageIQ/manageiq/issues/comments/136852909","html_url":"https://github.com/ManageIQ/manageiq/pull/4110#issuecomment-136852909","issue_url":"https://api.github.com/repos/ManageIQ/manageiq/issues/4110","id":136852909,"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-09-01T20:31:47Z","updated_at":"2015-09-01T20:31:47Z","body":"<rubocop />Checked commits https://github.com/kbrock/manageiq/compare/7d1d68aeda861347d91822a54d3090e0a84afa89...2a3d27613671aaeb9e1d458cb40e2c5e7e255685 with rubocop 0.33.0 and haml-lint 0.13.0\n6 files checked, 0 offenses detected\nEverything looks good. :+1:\n"}}