Last modified: 2011-07-26 16:53:42 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 T30553, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28553 - set ar_parent_id on deletion
set ar_parent_id on deletion
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Page deletion (Other open bugs)
1.18.x
All All
: Low normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 29685
  Show dependency treegraph
 
Reported: 2011-04-15 17:12 UTC by db [inactive,noenotif]
Modified: 2011-07-26 16:53 UTC (History)
2 users (show)

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


Attachments

Description db [inactive,noenotif] 2011-04-15 17:12:38 UTC
r33149 added a database field ar_parent_id to the archive table, but it is never used inside mediawiki.

Please fill that field on deletion and reuse it on undeletion.

That save calls to getPreviousRevisionId() (in insertOn()) on undeletion to populate that field.

Thanks.
Comment 1 Roan Kattouw 2011-04-17 08:15:22 UTC
(In reply to comment #0)
> r33149 added a database field ar_parent_id to the archive table, but it is
> never used inside mediawiki.
> 
> Please fill that field on deletion and reuse it on undeletion.
> 
Filling on deletion seems to happen (I see non-null values in it on the toolserver), except for old deletions. Using it on undeletion is bug 26123.

*** This bug has been marked as a duplicate of bug 26123 ***
Comment 2 db [inactive,noenotif] 2011-04-17 08:38:26 UTC
(In reply to comment #1)
> (In reply to comment #0)
> > r33149 added a database field ar_parent_id to the archive table, but it is
> > never used inside mediawiki.
> > 
> > Please fill that field on deletion and reuse it on undeletion.
> > 
> Filling on deletion seems to happen (I see non-null values in it on the
> toolserver), except for old deletions. Using it on undeletion is bug 26123.
> *** This bug has been marked as a duplicate of bug 26123 ***

Have you look at the archive table for the *parent*_id and not for the *page*_id?
On my trunk installation the parent_id is always null (but the page_id is filled). I have not found any code for set or update that field.
Comment 3 Roan Kattouw 2011-04-17 09:03:16 UTC
(In reply to comment #2)
> Have you look at the archive table for the *parent*_id and not for the
> *page*_id?
/me bangs head into desk repeatedly

> On my trunk installation the parent_id is always null (but the page_id is
> filled). I have not found any code for set or update that field.
Yup, all nulls there.
Comment 4 Aaron Schulz 2011-07-26 16:41:30 UTC
See r93205. I thought this was done already.

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


Navigation
Links