Re: [akka-user] Why isn't akka PersistenceQuery using the Event Adapter configuration?

2016-08-07 Thread Patrik Nordwall
This is by design. See discussion in
https://github.com/akka/akka/issues/18050. It should be done in the plugin
implementations where the necessary information is available. I have create
a feature request in the Cassandra plugin.
https://github.com/akka/akka/issues/18050

On Fri, Jul 29, 2016 at 2:55 PM, Konrad Malawski <
konrad.malaw...@lightbend.com> wrote:

> I believe this was by design actually if I remember correctly, as we
> considered the read side may want to operate on the raw events by default.
>
> Let's say that in the same app that needs adapters for the
> PersistentActors you want to project a view from historical data,
> thus you may not want to apply the adapters for example.
>
> It is possible to apply the adapters manually, as I explained here:
> https://github.com/akka/akka/issues/21065
>
> I agree however that it would be nice to make this simpler.
> Ideas and contributions how the API could be improved are very welcome :-)
>
>
>
> --
> Konrad `ktoso` Malawski
> Akka  @ Lightbend 
>
> On 29 July 2016 at 13:22:30, FCristovao (filipe.md.cristo...@gmail.com)
> wrote:
>
> Hey there,
>
>   Recently I tried out Akka Persistence, and I used a Event Adapter.
>   All works really well on the Journal side, but then I started trying to
> use the PersistenceQuery side, and I noticed that the events in the stream
> come "un-event-adapted", that is, the method "fromJournal" is never called
> on the adapter.
>   And since the EventEnvelope doesn't contain the manifest from
> PersistentRepr, one can't just map the "fromJournal" over the stream.
>
>   Am I missing something? Maybe I misconfigured something? Or is this on
> purpose?
>
> Kind Regards,
>   Filipe Cristóvão
> --
> >> Read the docs: http://akka.io/docs/
> >> Check the FAQ: http://doc.akka.io/docs/akka/
> current/additional/faq.html
> >> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>
> --
> >> Read the docs: http://akka.io/docs/
> >> Check the FAQ: http://doc.akka.io/docs/akka/
> current/additional/faq.html
> >> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to akka-user+unsubscr...@googlegroups.com.
> To post to this group, send email to akka-user@googlegroups.com.
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

Patrik Nordwall
Akka Tech Lead
Lightbend  -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


Re: [akka-user] Why isn't akka PersistenceQuery using the Event Adapter configuration?

2016-08-07 Thread Patrik Nordwall
The last link should have been
https://github.com/akka/akka-persistence-cassandra/issues/116

On Sun, Aug 7, 2016 at 6:34 PM, Patrik Nordwall 
wrote:

> This is by design. See discussion in https://github.com/akka/
> akka/issues/18050. It should be done in the plugin implementations where
> the necessary information is available. I have create a feature request in
> the Cassandra plugin. https://github.com/akka/akka/issues/18050
>
> On Fri, Jul 29, 2016 at 2:55 PM, Konrad Malawski <
> konrad.malaw...@lightbend.com> wrote:
>
>> I believe this was by design actually if I remember correctly, as we
>> considered the read side may want to operate on the raw events by default.
>>
>> Let's say that in the same app that needs adapters for the
>> PersistentActors you want to project a view from historical data,
>> thus you may not want to apply the adapters for example.
>>
>> It is possible to apply the adapters manually, as I explained here:
>> https://github.com/akka/akka/issues/21065
>>
>> I agree however that it would be nice to make this simpler.
>> Ideas and contributions how the API could be improved are very welcome :-)
>>
>>
>>
>> --
>> Konrad `ktoso` Malawski
>> Akka  @ Lightbend 
>>
>> On 29 July 2016 at 13:22:30, FCristovao (filipe.md.cristo...@gmail.com)
>> wrote:
>>
>> Hey there,
>>
>>   Recently I tried out Akka Persistence, and I used a Event Adapter.
>>   All works really well on the Journal side, but then I started trying to
>> use the PersistenceQuery side, and I noticed that the events in the stream
>> come "un-event-adapted", that is, the method "fromJournal" is never called
>> on the adapter.
>>   And since the EventEnvelope doesn't contain the manifest from
>> PersistentRepr, one can't just map the "fromJournal" over the stream.
>>
>>   Am I missing something? Maybe I misconfigured something? Or is this on
>> purpose?
>>
>> Kind Regards,
>>   Filipe Cristóvão
>> --
>> >> Read the docs: http://akka.io/docs/
>> >> Check the FAQ: http://doc.akka.io/docs/akka/c
>> urrent/additional/faq.html
>> >> Search the archives: https://groups.google.com/group/akka-user
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Akka User List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to akka-user+unsubscr...@googlegroups.com.
>> To post to this group, send email to akka-user@googlegroups.com.
>> Visit this group at https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>> --
>> >> Read the docs: http://akka.io/docs/
>> >> Check the FAQ: http://doc.akka.io/docs/akka/c
>> urrent/additional/faq.html
>> >> Search the archives: https://groups.google.com/group/akka-user
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "Akka User List" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to akka-user+unsubscr...@googlegroups.com.
>> To post to this group, send email to akka-user@googlegroups.com.
>> Visit this group at https://groups.google.com/group/akka-user.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
>
> Patrik Nordwall
> Akka Tech Lead
> Lightbend  -  Reactive apps on the JVM
> Twitter: @patriknw
>
>


-- 

Patrik Nordwall
Akka Tech Lead
Lightbend  -  Reactive apps on the JVM
Twitter: @patriknw

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.


Re: [akka-user] Why isn't akka PersistenceQuery using the Event Adapter configuration?

2016-07-29 Thread Konrad Malawski
I believe this was by design actually if I remember correctly, as we
considered the read side may want to operate on the raw events by default.

Let's say that in the same app that needs adapters for the PersistentActors
you want to project a view from historical data,
thus you may not want to apply the adapters for example.

It is possible to apply the adapters manually, as I explained here:
https://github.com/akka/akka/issues/21065

I agree however that it would be nice to make this simpler.
Ideas and contributions how the API could be improved are very welcome :-)



-- 
Konrad `ktoso` Malawski
Akka  @ Lightbend 

On 29 July 2016 at 13:22:30, FCristovao (filipe.md.cristo...@gmail.com)
wrote:

Hey there,

  Recently I tried out Akka Persistence, and I used a Event Adapter.
  All works really well on the Journal side, but then I started trying to
use the PersistenceQuery side, and I noticed that the events in the stream
come "un-event-adapted", that is, the method "fromJournal" is never called
on the adapter.
  And since the EventEnvelope doesn't contain the manifest from
PersistentRepr, one can't just map the "fromJournal" over the stream.

  Am I missing something? Maybe I misconfigured something? Or is this on
purpose?

Kind Regards,
  Filipe Cristóvão
--
>> Read the docs: http://akka.io/docs/
>> Check the FAQ:
http://doc.akka.io/docs/akka/current/additional/faq.html
>> Search the archives: https://groups.google.com/group/akka-user
---
You received this message because you are subscribed to the Google Groups
"Akka User List" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

-- 
>>  Read the docs: http://akka.io/docs/
>>  Check the FAQ: 
>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>  Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.