{"action":"created","issue":{"url":"https://api.github.com/repos/wordpress-mobile/WordPressKit-iOS/issues/61","repository_url":"https://api.github.com/repos/wordpress-mobile/WordPressKit-iOS","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPressKit-iOS/issues/61/labels{/name}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPressKit-iOS/issues/61/comments","events_url":"https://api.github.com/repos/wordpress-mobile/WordPressKit-iOS/issues/61/events","html_url":"https://github.com/wordpress-mobile/WordPressKit-iOS/pull/61","id":392826887,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwMDExNDA3","number":61,"title":"Refactor to use wpcom/v2 plans endpoint ","user":{"login":"aerych","id":1435271,"node_id":"MDQ6VXNlcjE0MzUyNzE=","avatar_url":"https://avatars1.githubusercontent.com/u/1435271?v=4","gravatar_id":"","url":"https://api.github.com/users/aerych","html_url":"https://github.com/aerych","followers_url":"https://api.github.com/users/aerych/followers","following_url":"https://api.github.com/users/aerych/following{/other_user}","gists_url":"https://api.github.com/users/aerych/gists{/gist_id}","starred_url":"https://api.github.com/users/aerych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aerych/subscriptions","organizations_url":"https://api.github.com/users/aerych/orgs","repos_url":"https://api.github.com/users/aerych/repos","events_url":"https://api.github.com/users/aerych/events{/privacy}","received_events_url":"https://api.github.com/users/aerych/received_events","type":"User","site_admin":false},"labels":[{"id":934289008,"node_id":"MDU6TGFiZWw5MzQyODkwMDg=","url":"https://api.github.com/repos/wordpress-mobile/WordPressKit-iOS/labels/enhancement","name":"enhancement","color":"a2eeef","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-12-19T23:56:19Z","updated_at":"2018-12-21T01:51:20Z","closed_at":null,"author_association":"MEMBER","pull_request":{"url":"https://api.github.com/repos/wordpress-mobile/WordPressKit-iOS/pulls/61","html_url":"https://github.com/wordpress-mobile/WordPressKit-iOS/pull/61","diff_url":"https://github.com/wordpress-mobile/WordPressKit-iOS/pull/61.diff","patch_url":"https://github.com/wordpress-mobile/WordPressKit-iOS/pull/61.patch"},"body":"This PR refactors the Plans remote to read from the `wpcom/v2/plans/mobile` endpoint instead of the `rest/v1.2/sites/site/plans` endpoint and `rest/v1.2/plans/features` endpoint. Remote models are refactored accordingly.  \r\n\r\nThe new end contains three models:\r\n- RemoteWpcomPlan: The plan description.  Wpcom is specified to distinguish from Jetpack in anticipation of future Jetpack plans support.\r\n- RemotePlanFeature: Descriptions of the features belonging to each plan.  This is largely unchanged, but moved to a new location. \r\n- RemotePlanGroup: Anticipates that plans can belong to one or more groups of plans. Currently Personal and Business groups are supported.\r\n\r\nCode exclusive to the v1.2 endpoints is removed but anything still used by the v1.3 endpoint is retained. \r\n\r\nTo test:\r\nConfirm there are no build errors.\r\nRun the `PlanServiceRemoteTests` test suite and confirm everything passes. \r\n\r\n@jklausa could I trouble you for a review of this one?  Domains relies on a call to the v1.3 endpoint and you're probably best able to tell if these changes will break things."},"comment":{"url":"https://api.github.com/repos/wordpress-mobile/WordPressKit-iOS/issues/comments/449211035","html_url":"https://github.com/wordpress-mobile/WordPressKit-iOS/pull/61#issuecomment-449211035","issue_url":"https://api.github.com/repos/wordpress-mobile/WordPressKit-iOS/issues/61","id":449211035,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTIxMTAzNQ==","user":{"login":"aerych","id":1435271,"node_id":"MDQ6VXNlcjE0MzUyNzE=","avatar_url":"https://avatars1.githubusercontent.com/u/1435271?v=4","gravatar_id":"","url":"https://api.github.com/users/aerych","html_url":"https://github.com/aerych","followers_url":"https://api.github.com/users/aerych/followers","following_url":"https://api.github.com/users/aerych/following{/other_user}","gists_url":"https://api.github.com/users/aerych/gists{/gist_id}","starred_url":"https://api.github.com/users/aerych/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aerych/subscriptions","organizations_url":"https://api.github.com/users/aerych/orgs","repos_url":"https://api.github.com/users/aerych/repos","events_url":"https://api.github.com/users/aerych/events{/privacy}","received_events_url":"https://api.github.com/users/aerych/received_events","type":"User","site_admin":false},"created_at":"2018-12-21T01:51:20Z","updated_at":"2018-12-21T01:51:20Z","author_association":"MEMBER","body":"Thanks Jan!  Ready for another peek. :) "}}
{"actor":{"display_login":"aerych"}}