Last modified: 2009-02-13 21:35:23 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T18740, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16740 - list ProtectedTitles with API
list ProtectedTitles with API
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-21 11:56 UTC by Umherirrender
Modified: 2009-02-13 21:35 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Umherirrender 2008-12-21 11:56:44 UTC
Please make [[Special:ProtectedTitles]] available with API.

A possibility: Add "create" to param "apprtype" from "list=allpages"
Comment 1 Roan Kattouw 2008-12-21 12:50:10 UTC
(In reply to comment #0)
> Please make [[Special:ProtectedTitles]] available with API.
> 
> A possibility: Add "create" to param "apprtype" from "list=allpages"
> 

That won't work, since create-protected pages usually don't exist.
Comment 2 Umherirrender 2008-12-22 19:19:29 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > Please make [[Special:ProtectedTitles]] available with API.
> > 
> > A possibility: Add "create" to param "apprtype" from "list=allpages"
> > 
> That won't work, since create-protected pages usually don't exist.

But when list this page, it can have the missing-flag. The same way by using prop=info and inprop=protection (http://de.wikipedia.org/w/api.php?action=query&prop=info&inprop=protection&titles=Benutzer:Raymond/sperre)


It was only a possibility. In my opinion it is the best way, because it is easy for the user of a API to have all protectionlevel at one point and can create the query he need. I see there no inconsistency, because list=allpages lists all defined pagetitles. The one are defined by a exists page, the other by a protection. (The next step is the "WantedPages", because the pagetitle is defined by a link.)

I hope the bug can realize in any way.
Comment 3 Roan Kattouw 2008-12-22 22:12:21 UTC
(In reply to comment #2)
> (In reply to comment #1)
> > (In reply to comment #0)
> > > Please make [[Special:ProtectedTitles]] available with API.
> > > 
> > > A possibility: Add "create" to param "apprtype" from "list=allpages"
> > > 
> > That won't work, since create-protected pages usually don't exist.
> 
> But when list this page, it can have the missing-flag. The same way by using
> prop=info and inprop=protection
> (http://de.wikipedia.org/w/api.php?action=query&prop=info&inprop=protection&titles=Benutzer:Raymond/sperre)
> 
That's a possibility, but it violates the principle of list=allpages: listing all pages that exist. apprtype and similar parameters should limit the list, not expand it.

> It was only a possibility. In my opinion it is the best way, because it is easy
> for the user of a API to have all protectionlevel at one point and can create
> the query he need. I see there no inconsistency, because list=allpages lists
> all defined pagetitles. The one are defined by a exists page, the other by a
> protection. (The next step is the "WantedPages", because the pagetitle is
> defined by a link.)
The WantedPage query is quite expensive, and probably won't be accepted into the API for performance reasons.

> I hope the bug can realize in any way.
> 
I'll think about this over the holidays; I won't be able to do much until January.
Comment 4 Roan Kattouw 2009-02-13 21:35:23 UTC
Added list=protectedtitles in r47231

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links