{"action":"created","issue":{"url":"https://api.github.com/repos/stefanpenner/ember-state-services/issues/65","repository_url":"https://api.github.com/repos/stefanpenner/ember-state-services","labels_url":"https://api.github.com/repos/stefanpenner/ember-state-services/issues/65/labels{/name}","comments_url":"https://api.github.com/repos/stefanpenner/ember-state-services/issues/65/comments","events_url":"https://api.github.com/repos/stefanpenner/ember-state-services/issues/65/events","html_url":"https://github.com/stefanpenner/ember-state-services/pull/65","id":186046847,"number":65,"title":"[FEATURE] Ability to clear all states for a given state name","user":{"login":"offirgolan","id":575938,"avatar_url":"https://avatars.githubusercontent.com/u/575938?v=3","gravatar_id":"","url":"https://api.github.com/users/offirgolan","html_url":"https://github.com/offirgolan","followers_url":"https://api.github.com/users/offirgolan/followers","following_url":"https://api.github.com/users/offirgolan/following{/other_user}","gists_url":"https://api.github.com/users/offirgolan/gists{/gist_id}","starred_url":"https://api.github.com/users/offirgolan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/offirgolan/subscriptions","organizations_url":"https://api.github.com/users/offirgolan/orgs","repos_url":"https://api.github.com/users/offirgolan/repos","events_url":"https://api.github.com/users/offirgolan/events{/privacy}","received_events_url":"https://api.github.com/users/offirgolan/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-29T00:09:47Z","updated_at":"2016-10-29T04:21:50Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/stefanpenner/ember-state-services/pulls/65","html_url":"https://github.com/stefanpenner/ember-state-services/pull/65","diff_url":"https://github.com/stefanpenner/ember-state-services/pull/65.diff","patch_url":"https://github.com/stefanpenner/ember-state-services/pull/65.patch"},"body":"Use Cases:\r\n\r\n- Easily teardown an app's state without having to teardown the actual app\r\n- Easily clear state between test cases"},"comment":{"url":"https://api.github.com/repos/stefanpenner/ember-state-services/issues/comments/257070018","html_url":"https://github.com/stefanpenner/ember-state-services/pull/65#issuecomment-257070018","issue_url":"https://api.github.com/repos/stefanpenner/ember-state-services/issues/65","id":257070018,"user":{"login":"offirgolan","id":575938,"avatar_url":"https://avatars.githubusercontent.com/u/575938?v=3","gravatar_id":"","url":"https://api.github.com/users/offirgolan","html_url":"https://github.com/offirgolan","followers_url":"https://api.github.com/users/offirgolan/followers","following_url":"https://api.github.com/users/offirgolan/following{/other_user}","gists_url":"https://api.github.com/users/offirgolan/gists{/gist_id}","starred_url":"https://api.github.com/users/offirgolan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/offirgolan/subscriptions","organizations_url":"https://api.github.com/users/offirgolan/orgs","repos_url":"https://api.github.com/users/offirgolan/repos","events_url":"https://api.github.com/users/offirgolan/events{/privacy}","received_events_url":"https://api.github.com/users/offirgolan/received_events","type":"User","site_admin":false},"created_at":"2016-10-29T04:21:50Z","updated_at":"2016-10-29T04:21:50Z","body":"@stefanpenner I'll modify this PR with an updated solution and some test cases. \r\n\r\nHere is an example use case:\r\n\r\nA user belongs to multiple teams. Switching teams should reset all the state across the application to have a clean start. To do this currently is really difficult since you have to manage every single component state. \r\n\r\n\r\nAnother use case is when you want to clear state between acceptance tests. \r\n\r\nIn regards to leaking resources, that shouldnt be a problem if the CP recomputes when clearing the states since the state weakmaps should be completely detached at that point. "}}
{"actor":{"display_login":"offirgolan"}}