-
Notifications
You must be signed in to change notification settings - Fork 19
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
[upcaster] Provide the other upcaster examples #83
Comments
Hello, any updates on that issue? Still waiting for some examples on EventMultiUpcaster |
You can find an |
Thank you for the answer @smcvb ! Actually now I doubt whether I understood EventMultiUpcaster correctly. but my case was "... upcasting several intermediate event representation to several other representations ... " e.g. I have 10 Events with one specific field, that needs to be changed to other field, and keep original event name the same.
so I wanted to upcast all 10 events with "sort" to "position" field in one upcaster. Is that possible ? |
I think I understand @VladimirTitov4. You have ten event types which all should be pushed through an upcaster, correct? Well, what you can do is make the Sure, it minimizes the number of upcasters you have to write. I'd thus go for separate upcaster implementation for each event type. Next to the above, I have another doubt. |
Would love an example of |
Good idea, @dxp227. As it stands, I think it might take some time before we can come back to your request. In the meantime, I would recommend you take a look at the test cases of the |
Perhaps this was non-obvious to me only 😅 but here's my solution. @smcvb The test case provides helpful direction as well - thank you! |
Our current
upcaster
sample only provides aSingleEventUpcaster
example. We should expand it to provide the other types as well.Starting from the
EventMultiUpcaster
would be a good choice.The text was updated successfully, but these errors were encountered: