Last modified: 2012-04-08 13:12:14 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 T34492, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 32492 - API should allow edit using pageid
API should allow edit using pageid
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.20.x
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-reviewed
Depends on:
Blocks: 19195
  Show dependency treegraph
 
Reported: 2011-11-19 16:16 UTC by Umherirrender
Modified: 2012-04-08 13:12 UTC (History)
9 users (show)

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


Attachments
API edit by page ID (1.70 KB, patch)
2012-02-18 17:29 UTC, Alex Monk
Details
API edit by page ID (2.08 KB, patch)
2012-02-18 19:29 UTC, Alex Monk
Details
Slightly change in how I did this (4.13 KB, patch)
2012-02-19 15:57 UTC, Alex Monk
Details

Description Umherirrender 2011-11-19 16:16:14 UTC
It can be nice to use the pageid, when editing a existing page with the api. (action=edit)

Please make it possible to edit a page when specifiy the pageid not the page title.

Thanks.
Comment 1 Alex Monk 2012-02-18 17:29:19 UTC
Created attachment 10039 [details]
API edit by page ID

This patch should let you edit through the API by providing a page ID instead of a page title.
Comment 2 Max Semenik 2012-02-18 17:32:14 UTC
I can haz use case?
Comment 3 Sam Reed (reedy) 2012-02-18 18:40:52 UTC
(In reply to comment #2)
> I can haz use case?

I've given up asking.

It's useful for long and strange titles...
Comment 4 Alex Monk 2012-02-18 19:29:36 UTC
Created attachment 10040 [details]
API edit by page ID

I previously forgot to add to getPossibleErrors.
Comment 5 Alex Monk 2012-02-19 15:57:27 UTC
Created attachment 10043 [details]
Slightly change in how I did this

Looks like I'm going to have to correct myself again. :/
This patch is almost the same thing as the previous one, but using getRequireOnlyOneParameterErrorMessages instead, and without my unnecessary else statement.
Comment 6 Umherirrender 2012-02-20 19:52:19 UTC
Usecase: Computer can better handle numbers than text. The title can get long and can have UTF-8, which makes some programms problems. You can save bandwidth, heap space, need no urlencode for this part. For languages with variants you does not have to handle that and it is easy to check, if the title is the same.

In my opinion there are many usecases for using a pageid rather a namespace-prefixed title.
Comment 7 Max Semenik 2012-04-05 20:55:42 UTC
Commited in https://gerrit.wikimedia.org/r/4368

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


Navigation
Links