Open GoogleCodeExporter opened 9 years ago
Robots should not receive their own DOCUMENT_CHANGED event, but Panda (language
detector agent) may have modified the document right after and caused that
event.
Original comment by pamela.fox
on 1 Oct 2009 at 4:17
I ran into the same issue causing infinite recursion. I also saw that
'panda@a.gwave.com' caused the change event.
If this issue is set to 'WontFix' - how should I detect this situation? Causing
endless loops by robots constantly changing the document cannot be desired by
Google.
In my special case the robot appended a new Blip with a url as content. Is it
possible that Panda created a document change to render it as a link? Any help
on how
to avoid these situations is highly welcome.
Original comment by jan.kars...@googlemail.com
on 5 Oct 2009 at 9:11
Perhaps it would be better if we could check if the blip modifier is automatic,
I added
a test for if the participant contains the string "@a.gwave.com" - but who
knows what
later automatic stuff Google could add, so an API method to check that would be
great.
:)
Original comment by soil...@gmail.com
on 11 Oct 2009 at 1:41
Yes, we're looking into this now. Thanks for the thought.
Original comment by pamela.fox
on 11 Oct 2009 at 1:50
I think this is issue is very prominent. I'm trying to do a live-text-edit using
DOCUMENT_CHANGED, but currently I cannot due to the robot firing another
DOCUMENT_CHANGED causing an infinite loop.
Original comment by carole...@googlemail.com
on 14 Nov 2009 at 10:57
Have you tried filtering your actions based on the modifier of the blip?
Original comment by pamela.fox
on 14 Nov 2009 at 10:59
I'm running into the same problem. I end up having to do something like this -
List<String> participants = wavelet.getParticipants();
String editingUser = e.getModifiedBy();
if (participants.contains(editingUser))
{
//do stuff
}
It would be nice to have an Event.CausedByHuman() flag or something.
Original comment by yoenho...@gmail.com
on 4 Dec 2009 at 10:18
Original issue reported on code.google.com by
redbe...@gmail.com
on 10 Aug 2009 at 12:28