{"action":"created","issue":{"url":"https://api.github.com/repos/efacilitation/eventric/issues/16","labels_url":"https://api.github.com/repos/efacilitation/eventric/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/efacilitation/eventric/issues/16/comments","events_url":"https://api.github.com/repos/efacilitation/eventric/issues/16/events","html_url":"https://github.com/efacilitation/eventric/pull/16","id":53756393,"number":16,"title":"Working Global Projections with basic concepts","user":{"login":"Sandreu","id":1159585,"avatar_url":"https://avatars.githubusercontent.com/u/1159585?v=3","gravatar_id":"","url":"https://api.github.com/users/Sandreu","html_url":"https://github.com/Sandreu","followers_url":"https://api.github.com/users/Sandreu/followers","following_url":"https://api.github.com/users/Sandreu/following{/other_user}","gists_url":"https://api.github.com/users/Sandreu/gists{/gist_id}","starred_url":"https://api.github.com/users/Sandreu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sandreu/subscriptions","organizations_url":"https://api.github.com/users/Sandreu/orgs","repos_url":"https://api.github.com/users/Sandreu/repos","events_url":"https://api.github.com/users/Sandreu/events{/privacy}","received_events_url":"https://api.github.com/users/Sandreu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-01-08T14:33:38Z","updated_at":"2015-01-13T10:30:58Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/efacilitation/eventric/pulls/16","html_url":"https://github.com/efacilitation/eventric/pull/16","diff_url":"https://github.com/efacilitation/eventric/pull/16.diff","patch_url":"https://github.com/efacilitation/eventric/pull/16.patch"},"body":"#15 \r\nAs I said here is the basic implementation... Just to have something to talk about...\r\nMain todos are:\r\n- Reorder events from all context before playing.\r\n- Wait a context creation if it doesn't exist yet ?\r\n\r\nRegards"},"comment":{"url":"https://api.github.com/repos/efacilitation/eventric/issues/comments/69724694","html_url":"https://github.com/efacilitation/eventric/pull/16#issuecomment-69724694","issue_url":"https://api.github.com/repos/efacilitation/eventric/issues/16","id":69724694,"user":{"login":"Sandreu","id":1159585,"avatar_url":"https://avatars.githubusercontent.com/u/1159585?v=3","gravatar_id":"","url":"https://api.github.com/users/Sandreu","html_url":"https://github.com/Sandreu","followers_url":"https://api.github.com/users/Sandreu/followers","following_url":"https://api.github.com/users/Sandreu/following{/other_user}","gists_url":"https://api.github.com/users/Sandreu/gists{/gist_id}","starred_url":"https://api.github.com/users/Sandreu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Sandreu/subscriptions","organizations_url":"https://api.github.com/users/Sandreu/orgs","repos_url":"https://api.github.com/users/Sandreu/repos","events_url":"https://api.github.com/users/Sandreu/events{/privacy}","received_events_url":"https://api.github.com/users/Sandreu/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T10:30:58Z","updated_at":"2015-01-13T10:30:58Z","body":"Hello,\r\n\r\nI just found while playing with GlobalProjections that domainEvents can be lost if emitted while projection's `_applyDomainEventsFromStoreToProjection`.\r\n\r\nThat's not the case if all projections are added before context's initialization, but if I initialize a context then add a projection and manually initialize it, events emitted while `projection->_applyDomainEventsFromStoreToProjection` are lost.\r\n\r\nI assume that it's not an issue and projections have to be added before context initialization (perhaps this could be a feature ?). Then I assume with global projections that no events are emitted in contexts while Global projection is initializing.\r\n\r\n> If subContext = @_eventric.getContext contextName would be subContext = @_eventric.remote contextName would this work for remotes also?\r\n\r\nNot yet (because of `context._initialized`) but it will :)"}}