rcstop - bug or feature?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

rcstop - bug or feature?

Przemek Piotrowski
Hi,

I want to see rc from 2007-10-09 23:59:59 back to 23:59:00 on  
pl.wikipedia:

http://pl.wikipedia.org/w/api.php?
action=query&list=recentchanges&rcstart=20071009235959&rcstop=2007100923
5900&rcprop=timestamp

<?xml version="1.0" encoding="utf-8"?>
<api>
   <query-continue>
     <recentchanges rcstart="2007-10-09T23:57:33Z" />
   </query-continue>
   <query>
     <recentchanges>
       <rc type="0" timestamp="2007-10-09T23:59:52Z" />
       <rc type="0" timestamp="2007-10-09T23:59:45Z" />
       <rc type="0" timestamp="2007-10-09T23:58:52Z" />
       <rc type="0" timestamp="2007-10-09T23:58:44Z" />
       <rc type="0" timestamp="2007-10-09T23:58:37Z" />
       <rc type="0" timestamp="2007-10-09T23:58:32Z" />
       <rc type="1" timestamp="2007-10-09T23:58:29Z" />
       <rc type="0" timestamp="2007-10-09T23:58:15Z" />
       <rc type="0" timestamp="2007-10-09T23:58:13Z" />
       <rc type="0" timestamp="2007-10-09T23:57:49Z" />
     </recentchanges>
   </query>
</api>

Why this list does not stop at rcstop?
Why there is <query-continue/> with rcstart earlier ("smaller") than  
rcstop?

(Minor question: why <rc/> has got type property even when I've asked  
only for a timestamp? I like very much default properties with no  
rcprop and only what I ask for if rcprop is present. Showing type no  
matter what looks like a bug.)

przem.


_______________________________________________
Mediawiki-api mailing list
[hidden email]
http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: rcstop - bug or feature?

Roan Kattouw
Przemek Piotrowski schreef:
> Hi,
>
> I want to see rc from 2007-10-09 23:59:59 back to 23:59:00 on  
> pl.wikipedia:
>
> http://pl.wikipedia.org/w/api.php?
> action=query&list=recentchanges&rcstart=20071009235959&rcstop=2007100923
> 5900&rcprop=timestamp
The parameter 'rcstop' is really named 'rcend', so you should use
&rcend=2007100235900. The type thing differentiates between a normal
edit (type=0), a new page being created (type=1) and a log entry like
someone moving or deleting a page type=3). What type=2 means I don't
really know, but I've never seen it happen.

Catrope

_______________________________________________
Mediawiki-api mailing list
[hidden email]
http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: rcstop - bug or feature?

Przemek Piotrowski
Hi,

> The parameter 'rcstop' is really named 'rcend'

Let me die... (-8 Sorry, guys, not enough sleep. (-8

przem.

ps. I know what is type. I just wonder why is it there with  
rcprop=timestamp only.


_______________________________________________
Mediawiki-api mailing list
[hidden email]
http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: rcstop - bug or feature?

Victor Vasiliev
In reply to this post by Roan Kattouw
Roan Kattouw writes:
> The type thing differentiates between a normal
> edit (type=0), a new page being created (type=1) and a log entry like
> someone moving or deleting a page type=3). What type=2 means I don't
> really know, but I've never seen it happen.
>
> Catrope
>
>  

I think we really have to stop use numbers in rctype. There are several
constants defined in Defines.php. But they may change, because we must
provide unified API.
P.S. type=2 is page move (type=4 if it's over redirect). These types are
deprecated.

VasilievVV

_______________________________________________
Mediawiki-api mailing list
[hidden email]
http://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Reply | Threaded
Open this post in threaded view
|

Re: rcstop - bug or feature?

Roan Kattouw
VasilievVV schreef:
> I think we really have to stop use numbers in rctype. There are several
> constants defined in Defines.php. But they may change, because we must
> provide unified API.
>  
True, we should use words there. I've filed bug 11632 [1] on the matter.
> P.S. type=2 is page move (type=4 if it's over redirect). These types are
> deprecated.
>  
Are they still used? Aren't moves just another type of log entry now?

Catrope

[1] http://bugzilla.wikimedia.org/show_bug.cgi?id=11632

_______________________________________________
Mediawiki-api mailing list
[hidden email]
http://lists.wikimedia.org/mailman/listinfo/mediawiki-api