Last modified: 2014-08-21 15:11:24 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 T71837, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69837 - No information about pageid after move in action=query&list=watchlist
No information about pageid after move in action=query&list=watchlist
Status: RESOLVED DUPLICATE of bug 68930
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
1.24rc
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-21 08:14 UTC by Michael M.
Modified: 2014-08-21 15:11 UTC (History)
5 users (show)

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


Attachments

Description Michael M. 2014-08-21 08:14:00 UTC
When a page is moved, the API exposes only the pageid of the newly created redirect, the pageid of the moved page is missing: I created a page called "Alter Titel", edited it, then renamed it to "Neuer Titel", and edited it again. When I query the API for all data (/api.php?action=query&list=watchlist&wlallrev=&wllimit=500&wlprop=ids|title|flags|user|userid|comment|parsedcomment|timestamp|sizes|notificationtimestamp|loginfo&format=json) I get (extracted the relevant part):

{"type":"edit","ns":0,"title":"Neuer Titel","pageid":433,"revid":4297,"old_revid":4295,"userid":"1","user":"Schnark","minor":"","oldlen":8,"newlen":8,"timestamp":"2014-08-20T13:14:18Z","notificationtimestamp":"","comment":"Bearbeitung","parsedcomment":"Bearbeitung"},
{"type":"log","ns":0,"title":"Alter Titel","pageid":434,"revid":0,"old_revid":0,"userid":"1","user":"Schnark","oldlen":0,"newlen":0,"timestamp":"2014-08-20T13:13:58Z","notificationtimestamp":"","comment":"Umbenennung","parsedcomment":"Umbenennung","logid":3788,"logtype":"move","logaction":"move","move":{"new_ns":0,"new_title":"Neuer Titel"}},
{"type":"edit","ns":0,"title":"Alter Titel","pageid":433,"revid":4294,"old_revid":4293,"userid":"1","user":"Schnark","oldlen":8,"newlen":8,"timestamp":"2014-08-20T13:13:35Z","notificationtimestamp":"","comment":"Bearbeitung","parsedcomment":"Bearbeitung"},
{"type":"new","ns":0,"title":"Alter Titel","pageid":433,"revid":4293,"old_revid":0,"userid":"1","user":"Schnark","new":"","oldlen":0,"newlen":8,"timestamp":"2014-08-20T13:13:19Z","notificationtimestamp":"","comment":"Neuanlage","parsedcomment":"Neuanlage"}

Note that the entry for the move has "pageid":434 (the pageid for the newly created redirect). The pageid 433 for the moved page is missing.
Comment 1 Brad Jorsch 2014-08-21 15:01:41 UTC

*** This bug has been marked as a duplicate of bug 68950 ***
Comment 2 Nathan Larson 2014-08-21 15:04:21 UTC
Are the two bugs really duplicates? This one is talking about page IDs; bug 68950 is talking about revision IDs.
Comment 3 Brad Jorsch 2014-08-21 15:11:24 UTC
Oh, good point. Bug 68930 is the one about *page* ids.

*** This bug has been marked as a duplicate of bug 68930 ***

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


Navigation
Links