Page MenuHomePhabricator

old revision length missing in /v2/stream/recentchange
Closed, ResolvedPublic0 Estimated Story Points

Description

From Jon:


I was looking at migrating over to the new stream but it seems EventStreams does not surface the change in bytes made by a revision.
This is quite crucial to my tool and blocks me from moving over to the new service.

Previously this was surfaced like so:
length: { new: 2, old: 1 },
where new is the new length of the page in bytes and old is the old length in bytes.


I looked too, and I see { new: 123234, old: null }, but old is always null. Not sure why, but I assume the eventbus extension somehow isn't filling this in properly, even though it uses the same code the RCStream does.

Event Timeline

Ottomata created this task.Mar 9 2017, 1:40 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 9 2017, 1:40 AM
Pchelolo added a subscriber: Pchelolo.EditedMar 9 2017, 2:18 AM

Em. That's weird. When I go to https://stream.wikimedia.org/v2/stream/recentchange I see proper value in "old" property. I only see "old":null for pages that's just been created, which is understandable.

Maybe there was some burst of new page creation by some bot when you were looking at it?

Ah! haha, no, I had an old grep in my CLI history that was grep -v edit (negation)! DOH!

@Jdlrobson it looks fine to me, can you confirm you don't see them? How are you subscribing to the stream?

Jdlrobson closed this task as Resolved.Mar 9 2017, 6:02 PM

Confirmed. I think I was looking at some non-edit events. Thanks for the follow up.