Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to register GoogleGroupPartRepository #28

Open
dmytro-grankin opened this issue Nov 6, 2018 · 2 comments
Open

Unable to register GoogleGroupPartRepository #28

dmytro-grankin opened this issue Nov 6, 2018 · 2 comments
Labels

Comments

@dmytro-grankin
Copy link
Contributor

dmytro-grankin commented Nov 6, 2018

Now, when a GoogleGroupPartRepository is registered in a bounded context, the following exception is thrown:

java.lang.IllegalStateException: Aggregates of the repository io.spine.users.google.c.group.GoogleGroupPartRepository neither handle commands nor react on events.

The aggregate part only imports events. Probably, the design of the part should be changed.

@alexander-yevsyukov
Copy link
Contributor

It's probably the bug in the repository registration code. If a repo only imports events, that's probably OK. It's not a usual case, but not necessarily a design flaw.

@dmytro-grankin
Copy link
Contributor Author

An aggregate, which only imports events looks like a projection. What's the reason to keep it as an aggregate instead of turning into a projection?

In this particular case, GoogleGroupPart applies external events related to a Google Group and mirrors the data about a Google Group in its state. Again, looks like it should be a projection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants