Hello!
I have a problem here: Do the restore and delete page action can cancel out each other? i.e. delete a page and then restore this page, equals we do nothing of this page.
I listened the recent changes, and got more than 5 revisions of this page: http://en.wikipedia.org/w/index.php?title=William_Pierce,_Jr.&redirect=n...
And then I got a delete page action, later I got a restore page action, as you can see from the log: <rc type="log" ns="0" title="William Pierce, Jr." rcid="565524106" pageid=" 38932317" revid="0" old_revid="0" user="Secret" oldlen="0"newlen="0" timestamp="2013-03-27T04:02:12Z" comment="5 revisions restored: keep the original redirect" logid="48107996" logtype="delete"logaction="restore"/>
it only restored 5 revisions but not specified what the 5 revisions were.
In my opinion, the restore and delete page actions should cancel out each other like the restore and delete revision actions.
On Mon, Apr 15, 2013 at 5:21 AM, Liu Chenheng liuchenheng@gmail.com wrote:
I have a problem here: Do the restore and delete page action can cancel out each other? i.e. delete a page and then restore this page, equals we do nothing of this page.
No. There are log entries, and it's possible that the page_id might change. Possibly other stuff.
But that's not a matter for the API, it's just how MediaWiki works. You'd be better served asking about that on wikitech-l.
On 15/04/13 11:21, Liu Chenheng wrote:
Hello!
I have a problem here: Do the restore and delete page action can cancel out each other? i.e. delete a page and then restore this page, equals we do nothing of this page.
That's right (except for a few log entries added).
I listened the recent changes, and got more than 5 revisions of this page: http://en.wikipedia.org/w/index.php?title=William_Pierce,_Jr.&redirect=n... http://en.wikipedia.org/w/index.php?title=William_Pierce,_Jr.&redirect=no
And then I got a delete page action, later I got a restore page action, as you can see from the log: <rc type="log" ns="0" title="William Pierce, Jr." rcid="565524106" pageid="38932317" revid="0" old_revid="0" user="Secret" oldlen="0"newlen="0" timestamp="2013-03-27T04:02:12Z" comment="5 revisions restored: keep the original redirect" logid="48107996" logtype="delete"logaction="restore"/>
it only restored 5 revisions but not specified what the 5 revisions were.
In my opinion, the restore and delete page actions should cancel out each other like the restore and delete revision actions.
If you didn't specify just a few revisions to restore, it should restore all of them (if the page already had some deleted revisions before you deleted, you may be restoring more revisions than you deleted!).
So you mean when we receive a "page restore" action, we couldn't determine which revisions are restored, right? Do we have any other ways to achieve this goal?
Thanks.
2013/4/15 Platonides platonides@gmail.com
On 15/04/13 11:21, Liu Chenheng wrote:
Hello!
I have a problem here: Do the restore and delete page action can cancel out each other? i.e. delete a page and then restore this page, equals we do nothing of this page.
That's right (except for a few log entries added).
I listened the recent changes, and got more than 5 revisions of this
page:
http://en.wikipedia.org/w/index.php?title=William_Pierce,_Jr.&redirect=n...< http://en.wikipedia.org/w/index.php?title=William_Pierce,_Jr.&redirect=n...
And then I got a delete page action, later I got a restore page action, as you can see from the log: <rc type="log" ns="0" title="William Pierce, Jr." rcid="565524106" pageid="38932317" revid="0" old_revid="0"
user="Secret" oldlen="0"newlen="0" timestamp="2013-03-27T04:02:12Z" comment="5
revisions restored: keep the original redirect" logid="48107996" logtype="delete"logaction="restore"/>
it only restored 5 revisions but not specified what the 5 revisions were.
In my opinion, the restore and delete page actions should cancel out each other like the restore and delete revision actions.
If you didn't specify just a few revisions to restore, it should restore all of them (if the page already had some deleted revisions before you deleted, you may be restoring more revisions than you deleted!).
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
Or can the response of the api include the affected revisions list of the "Page Restore" action like "Revision Restore/Delete" action?
Thanks.
2013/4/15 Liu Chenheng liuchenheng@gmail.com
So you mean when we receive a "page restore" action, we couldn't determine which revisions are restored, right? Do we have any other ways to achieve this goal?
Thanks.
2013/4/15 Platonides platonides@gmail.com
On 15/04/13 11:21, Liu Chenheng wrote:
Hello!
I have a problem here: Do the restore and delete page action can cancel out each other? i.e. delete a page and then restore this page, equals we do nothing of this page.
That's right (except for a few log entries added).
I listened the recent changes, and got more than 5 revisions of this
page:
http://en.wikipedia.org/w/index.php?title=William_Pierce,_Jr.&redirect=n...< http://en.wikipedia.org/w/index.php?title=William_Pierce,_Jr.&redirect=n...
And then I got a delete page action, later I got a restore page action, as you can see from the log: <rc type="log" ns="0" title="William Pierce, Jr." rcid="565524106" pageid="38932317" revid="0" old_revid="0"
user="Secret" oldlen="0"newlen="0" timestamp="2013-03-27T04:02:12Z" comment="5
revisions restored: keep the original redirect" logid="48107996" logtype="delete"logaction="restore"/>
it only restored 5 revisions but not specified what the 5 revisions
were.
In my opinion, the restore and delete page actions should cancel out each other like the restore and delete revision actions.
If you didn't specify just a few revisions to restore, it should restore all of them (if the page already had some deleted revisions before you deleted, you may be restoring more revisions than you deleted!).
Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
mediawiki-api@lists.wikimedia.org