{"action":"created","issue":{"url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/876","repository_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry","labels_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/876/labels{/name}","comments_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/876/comments","events_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/876/events","html_url":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/876","id":137752187,"number":876,"title":"[CF-276] Optimize `get_tenants_list`","user":{"login":"miarmak","id":3357550,"avatar_url":"https://avatars.githubusercontent.com/u/3357550?v=3","gravatar_id":"","url":"https://api.github.com/users/miarmak","html_url":"https://github.com/miarmak","followers_url":"https://api.github.com/users/miarmak/followers","following_url":"https://api.github.com/users/miarmak/following{/other_user}","gists_url":"https://api.github.com/users/miarmak/gists{/gist_id}","starred_url":"https://api.github.com/users/miarmak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miarmak/subscriptions","organizations_url":"https://api.github.com/users/miarmak/orgs","repos_url":"https://api.github.com/users/miarmak/repos","events_url":"https://api.github.com/users/miarmak/events{/privacy}","received_events_url":"https://api.github.com/users/miarmak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-02T02:31:35Z","updated_at":"2016-03-02T02:35:15Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/pulls/876","html_url":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/876","diff_url":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/876.diff","patch_url":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/876.patch"},"body":"Rename `get_tenants_list` to `_get_required_tenants_list` and use it\r\nonly for `read_info` method of `KeystoneIdentity` resource. This method\r\nshould be called only for Identity resources migration. For other cases\r\nsimple `get_tenants_list` method was created.\r\n\r\nGet rid of Identity's `read_info` method calls in the whole project\r\n(mostly from actions) and use `get_tenants_list` method instead.\r\n\r\nAdd tenants and users mapping obtaining method to base action class. It\r\nallows to use it in inheritor classes and also to get rid of\r\n`identity_transporter` action before migrating Compute resources and VMs\r\n(calculate mapping instead of using Identity's transportation results).\r\nThereby identity transporter is no longer a dependency for any other\r\naction.\r\n\r\nRefactor related scenarios."},"comment":{"url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/comments/191023135","html_url":"https://github.com/MirantisWorkloadMobility/CloudFerry/pull/876#issuecomment-191023135","issue_url":"https://api.github.com/repos/MirantisWorkloadMobility/CloudFerry/issues/876","id":191023135,"user":{"login":"MirantisWorkloadMobility","id":8500817,"avatar_url":"https://avatars.githubusercontent.com/u/8500817?v=3","gravatar_id":"","url":"https://api.github.com/users/MirantisWorkloadMobility","html_url":"https://github.com/MirantisWorkloadMobility","followers_url":"https://api.github.com/users/MirantisWorkloadMobility/followers","following_url":"https://api.github.com/users/MirantisWorkloadMobility/following{/other_user}","gists_url":"https://api.github.com/users/MirantisWorkloadMobility/gists{/gist_id}","starred_url":"https://api.github.com/users/MirantisWorkloadMobility/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MirantisWorkloadMobility/subscriptions","organizations_url":"https://api.github.com/users/MirantisWorkloadMobility/orgs","repos_url":"https://api.github.com/users/MirantisWorkloadMobility/repos","events_url":"https://api.github.com/users/MirantisWorkloadMobility/events{/privacy}","received_events_url":"https://api.github.com/users/MirantisWorkloadMobility/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T02:35:15Z","updated_at":"2016-03-02T02:35:15Z","body":"PEP8 check success, Unittests success\n"}}