Bug on querying revisions

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

Bug on querying revisions

S. Nunes
Hi,

It seems that there is a bug on the MediaWiki API regarding querying
old revisions.

The following call to the API should return the first revision made to
the "Tamilla_Abasova" article.

http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=ids&rvlimit=1&rvdir=newer&titles=Tamilla_Abasova

However, instead of returning 37099272 (the correct answer) the value
returned is 216581660 (the latest revision).
This problem seems to happen only when the article has a small number
of revisions.

Is this a known problem?
Where should I submit this bug report to?

--
Sérgio Nunes

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

Re: Bug on querying revisions

Russell Blau
This is not a bug.  The page [[Tamilla Abasova]] has only one revision.  You
are trying to find the revision history of its redirect target, [[Tamilla
Abassova]], I suspect, so you might want to add "&redirects" to your query.

Russ

----- Original Message -----
From: "S. Nunes" <[hidden email]>
To: "MediaWiki API announcements & discussion"
<[hidden email]>
Sent: Tuesday, June 03, 2008 10:08 AM
Subject: [Mediawiki-api] Bug on querying revisions


Hi,

It seems that there is a bug on the MediaWiki API regarding querying
old revisions.

The following call to the API should return the first revision made to
the "Tamilla_Abasova" article.

http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=ids&rvlimit=1&rvdir=newer&titles=Tamilla_Abasova

However, instead of returning 37099272 (the correct answer) the value
returned is 216581660 (the latest revision).
This problem seems to happen only when the article has a small number
of revisions.

Is this a known problem?
Where should I submit this bug report to?

--
Sérgio Nunes

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


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

Re: Bug on querying revisions

S. Nunes
Thank you for such a prompt answer.
You are right, this is an "alias" article and I had missed this.

--
Sérgio Nunes

2008/6/3 Russell Blau <[hidden email]>:

> This is not a bug.  The page [[Tamilla Abasova]] has only one revision.  You
> are trying to find the revision history of its redirect target, [[Tamilla
> Abassova]], I suspect, so you might want to add "&redirects" to your query.
>
> Russ
>
> ----- Original Message -----
> From: "S. Nunes" <[hidden email]>
> To: "MediaWiki API announcements & discussion"
> <[hidden email]>
> Sent: Tuesday, June 03, 2008 10:08 AM
> Subject: [Mediawiki-api] Bug on querying revisions
>
>
> Hi,
>
> It seems that there is a bug on the MediaWiki API regarding querying
> old revisions.
>
> The following call to the API should return the first revision made to
> the "Tamilla_Abasova" article.
>
> http://en.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=ids&rvlimit=1&rvdir=newer&titles=Tamilla_Abasova
>
> However, instead of returning 37099272 (the correct answer) the value
> returned is 216581660 (the latest revision).
> This problem seems to happen only when the article has a small number
> of revisions.
>
> Is this a known problem?
> Where should I submit this bug report to?
>
> --
> Sérgio Nunes
>
> _______________________________________________
> Mediawiki-api mailing list
> [hidden email]
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>
>
> _______________________________________________
> Mediawiki-api mailing list
> [hidden email]
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
>

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

Re: Bug on querying revisions

Roan Kattouw
In reply to this post by S. Nunes
S. Nunes schreef:
> Where should I submit this bug report to?
>
>  
Generally, http://bugzilla.wikimedia.org/

Roan Kattouw (Catrope)

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