{"action":"created","issue":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues/712","repository_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android","labels_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues/712/labels{/name}","comments_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues/712/comments","events_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues/712/events","html_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android/pull/712","id":297232502,"number":712,"title":"Implements remove site plugins action","user":{"login":"oguzkocer","id":662023,"avatar_url":"https://avatars0.githubusercontent.com/u/662023?v=4","gravatar_id":"","url":"https://api.github.com/users/oguzkocer","html_url":"https://github.com/oguzkocer","followers_url":"https://api.github.com/users/oguzkocer/followers","following_url":"https://api.github.com/users/oguzkocer/following{/other_user}","gists_url":"https://api.github.com/users/oguzkocer/gists{/gist_id}","starred_url":"https://api.github.com/users/oguzkocer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oguzkocer/subscriptions","organizations_url":"https://api.github.com/users/oguzkocer/orgs","repos_url":"https://api.github.com/users/oguzkocer/repos","events_url":"https://api.github.com/users/oguzkocer/events{/privacy}","received_events_url":"https://api.github.com/users/oguzkocer/received_events","type":"User","site_admin":false},"labels":[{"id":669890643,"url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/labels/[Store]%20Plugin","name":"[Store] Plugin","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":{"login":"nbradbury","id":3903757,"avatar_url":"https://avatars2.githubusercontent.com/u/3903757?v=4","gravatar_id":"","url":"https://api.github.com/users/nbradbury","html_url":"https://github.com/nbradbury","followers_url":"https://api.github.com/users/nbradbury/followers","following_url":"https://api.github.com/users/nbradbury/following{/other_user}","gists_url":"https://api.github.com/users/nbradbury/gists{/gist_id}","starred_url":"https://api.github.com/users/nbradbury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbradbury/subscriptions","organizations_url":"https://api.github.com/users/nbradbury/orgs","repos_url":"https://api.github.com/users/nbradbury/repos","events_url":"https://api.github.com/users/nbradbury/events{/privacy}","received_events_url":"https://api.github.com/users/nbradbury/received_events","type":"User","site_admin":false},"assignees":[{"login":"nbradbury","id":3903757,"avatar_url":"https://avatars2.githubusercontent.com/u/3903757?v=4","gravatar_id":"","url":"https://api.github.com/users/nbradbury","html_url":"https://github.com/nbradbury","followers_url":"https://api.github.com/users/nbradbury/followers","following_url":"https://api.github.com/users/nbradbury/following{/other_user}","gists_url":"https://api.github.com/users/nbradbury/gists{/gist_id}","starred_url":"https://api.github.com/users/nbradbury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbradbury/subscriptions","organizations_url":"https://api.github.com/users/nbradbury/orgs","repos_url":"https://api.github.com/users/nbradbury/repos","events_url":"https://api.github.com/users/nbradbury/events{/privacy}","received_events_url":"https://api.github.com/users/nbradbury/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-02-14T20:21:47Z","updated_at":"2018-02-15T01:39:42Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/pulls/712","html_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android/pull/712","diff_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android/pull/712.diff","patch_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android/pull/712.patch"},"body":"Fixes #673. To keep our DB clean, we need to remove the site plugins when the user logs out. This PR adds a new plugin action called `REMOVE_SITE_PLUGINS` to do that. This PR implements the action, necessary sql method, its unit test and connected test. Just like other logout actions, this action will be dispatched from `WordPress.removeWpComUserRelatedData` in WPAndroid.\r\n\r\nI realized that I forgot the `signOutWPCom` calls in a few tests and even though I don't like fixing here, I just don't think it's worth its own PR.\r\n\r\n@nbradbury Would you like to review this since you reviewed all the other plugin PRs so far? It's totally fine if you can't though!"},"comment":{"url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues/comments/365801675","html_url":"https://github.com/wordpress-mobile/WordPress-FluxC-Android/pull/712#issuecomment-365801675","issue_url":"https://api.github.com/repos/wordpress-mobile/WordPress-FluxC-Android/issues/712","id":365801675,"user":{"login":"nbradbury","id":3903757,"avatar_url":"https://avatars2.githubusercontent.com/u/3903757?v=4","gravatar_id":"","url":"https://api.github.com/users/nbradbury","html_url":"https://github.com/nbradbury","followers_url":"https://api.github.com/users/nbradbury/followers","following_url":"https://api.github.com/users/nbradbury/following{/other_user}","gists_url":"https://api.github.com/users/nbradbury/gists{/gist_id}","starred_url":"https://api.github.com/users/nbradbury/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nbradbury/subscriptions","organizations_url":"https://api.github.com/users/nbradbury/orgs","repos_url":"https://api.github.com/users/nbradbury/repos","events_url":"https://api.github.com/users/nbradbury/events{/privacy}","received_events_url":"https://api.github.com/users/nbradbury/received_events","type":"User","site_admin":false},"created_at":"2018-02-15T01:39:42Z","updated_at":"2018-02-15T01:39:42Z","author_association":"CONTRIBUTOR","body":"Looks good! :shipit: "}}
{"actor":{"display_login":"nbradbury"}}