{"action":"created","issue":{"url":"https://api.github.com/repos/square/mortar/issues/168","labels_url":"https://api.github.com/repos/square/mortar/issues/168/labels{/name}","comments_url":"https://api.github.com/repos/square/mortar/issues/168/comments","events_url":"https://api.github.com/repos/square/mortar/issues/168/events","html_url":"https://github.com/square/mortar/issues/168","id":97768092,"number":168,"title":"It's really difficult to tell if your scope is destroyed","user":{"login":"rjrjr","id":1884445,"avatar_url":"https://avatars.githubusercontent.com/u/1884445?v=3","gravatar_id":"","url":"https://api.github.com/users/rjrjr","html_url":"https://github.com/rjrjr","followers_url":"https://api.github.com/users/rjrjr/followers","following_url":"https://api.github.com/users/rjrjr/following{/other_user}","gists_url":"https://api.github.com/users/rjrjr/gists{/gist_id}","starred_url":"https://api.github.com/users/rjrjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjrjr/subscriptions","organizations_url":"https://api.github.com/users/rjrjr/orgs","repos_url":"https://api.github.com/users/rjrjr/repos","events_url":"https://api.github.com/users/rjrjr/events{/privacy}","received_events_url":"https://api.github.com/users/rjrjr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-07-28T18:18:41Z","updated_at":"2015-08-04T21:41:49Z","closed_at":"2015-08-04T21:41:49Z","body":"Lately we've been playing with a technique where Views sometimes need to behave differently if their scope is dead, but with the Mortar's recent service-container changes that's really difficult to discover. I think the crux of the problem is that when you call MortarScope#getScope(Context) on a context with a destroyed scope, you get its lowest ancestor that isn't destroyed. \r\n\r\nThat's the right behavior for services in general, where contexts are supposed to fallback to parents. So was it a mistake to treat MortarScope as just another service? Or if that seems okay, should we add a separate static MortarScope#isDestroyed(Context) that does no fallback? \r\n"},"comment":{"url":"https://api.github.com/repos/square/mortar/issues/comments/127770762","html_url":"https://github.com/square/mortar/issues/168#issuecomment-127770762","issue_url":"https://api.github.com/repos/square/mortar/issues/168","id":127770762,"user":{"login":"rjrjr","id":1884445,"avatar_url":"https://avatars.githubusercontent.com/u/1884445?v=3","gravatar_id":"","url":"https://api.github.com/users/rjrjr","html_url":"https://github.com/rjrjr","followers_url":"https://api.github.com/users/rjrjr/followers","following_url":"https://api.github.com/users/rjrjr/following{/other_user}","gists_url":"https://api.github.com/users/rjrjr/gists{/gist_id}","starred_url":"https://api.github.com/users/rjrjr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjrjr/subscriptions","organizations_url":"https://api.github.com/users/rjrjr/orgs","repos_url":"https://api.github.com/users/rjrjr/repos","events_url":"https://api.github.com/users/rjrjr/events{/privacy}","received_events_url":"https://api.github.com/users/rjrjr/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T21:41:49Z","updated_at":"2015-08-04T21:41:49Z","body":"Fixed"}}