Thanks alot for quick response Ryan!

If this really sounds like an issue on the Callbacks I would first ask the 
following question:
Can we speed things up if we have Gold support package? My corporate 
account doesn't have permissions to open a ticket at the moment and I tried 
on SO first and than came up with posting to this group if there would be 
obvious that I missed sth. in the docs.
I can request permission or ask colleague to post a ticket if we should 
take care of an issue through the developers console?

Anyhow I can prepare simple project if this would help, but this will take 
some extra time because of the priorities.

Thanks, Nejc

On Tuesday, 2 June 2015 15:44:37 UTC+2, Ryan (Cloud Platform Support) wrote:
>
> Salutations Nejc,
>
> This sounds like it would be perfect for our PIT Defect Reports 
> <https://code.google.com/p/googleappengine/issues/entry>. Fill out the 
> report including a sample project that shows the behaviour. Post the thread 
> in here and I will take a look at it.
>
> Thank you for bringing this to our attention! 
>
> On Tuesday, June 2, 2015 at 6:49:09 AM UTC-4, Nejc Tomažič wrote:
>>
>>
>> Hi guys, 
>>
>> as already described on StackOverflow:
>>
>> I'm working on entity auditing for a set of entities saved in GAE 
>> Datastore using @PrePut and @PostPut datastore callbacks.
>>
>> Idea is that old entity is loaded in @PrePut using Objectify and stored 
>> to context. Than updated entity is added to context in @PostPut callback. 
>> When request is processed I generate a diff in ContainerResponseFilter and 
>> save it.
>>
>> Issue: if entity is updated non transactional, entity retrieved from 
>> datastore in @PrePut callback is already updated and therefore I'm unable 
>> to get a diff.
>> Is this a bug or it is supposed to work like that (if this is a  case I 
>> would highly recommend adding a note to the docs here: 
>> https://cloud.google.com/appengine/docs/java/datastore/callbacks)
>>
>> Question: Is it possible to retrieve old entity in @PrePut datastore 
>> callback if save operation is non transactional? If not, what would be the 
>> best alternative?
>>
>> All load and save operations are made using Objectify. Versions: 
>> Objectify: 5.1.5 Appengine version: 1.9.20
>>
>> Question on SO: 
>> http://stackoverflow.com/questions/30591289/get-old-entity-in-preput-datastore-callback-for-non-transactional-update
>>
>> I would really appreciate help on this one.
>> Thanks, 
>> KR, Nejc
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/56d97176-8e43-4de8-810c-817d8e0c7401%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to