Last modified: 2012-06-12 22:19:18 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 T30903, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 28903 - Make banner translations get deleted when banners are removed automatically
Make banner translations get deleted when banners are removed automatically
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
CentralNotice (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: fun-com, fundraising
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-05-09 22:48 UTC by James Alexander
Modified: 2012-06-12 22:19 UTC (History)
6 users (show)

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


Attachments

Description James Alexander 2011-05-09 22:48:51 UTC
Currently when a banner is 'removed' through the interface banner translations are not and end up being left behind as orphans. Preferred action would be to have those removed with the auto removal script.
Comment 1 Ryan Kaldari 2011-08-29 21:15:59 UTC
The translated messages live as 'pages' in the MediaWiki namespace. For example, the message 'share' for the banner '2011MobileReaders' lives at:
http://meta.wikimedia.org/wiki/MediaWiki:Centralnotice-2011MobileReaders-share

To delete these messages, you'll want to delete the pages. I'm sure there's some core function for doing this, but I don't know what it is off the top of my head.
Comment 2 Ryan Kaldari 2011-08-29 21:31:44 UTC
The different language versions (subpages) of the messages need to be deleted as well. For example:
http://meta.wikimedia.org/wiki/MediaWiki:Centralnotice-2011MobileReaders-share/de

I think there's a function for finding all subpages of a page, but I don't remember it. A lot of good I am!
Comment 3 Ryan Kaldari 2011-08-29 21:43:11 UTC
Looks like WikiPage->doDeleteArticle() might be useful.
Comment 4 Jeremy Postlethwaite 2011-08-30 15:58:34 UTC
Thanks, it looks like everything I need to get started.
Comment 5 Casey Brown 2011-08-30 21:45:19 UTC
(In reply to comment #0)
> Currently when a banner is 'removed' through the interface banner translations
> are not and end up being left behind as orphans. Preferred action would be to
> have those removed with the auto removal script.

We might want this to be a checkbox instead of doing it by default. That's kinda like how we deal with moving subpages and other things like that.

You might not always want to delete all of the pages, so we shouldn't assume that we always do.
Comment 6 Ryan Kaldari 2011-08-30 21:52:00 UTC
I can't think of any case where we would actually want to delete the banner, but not the messages. Can you give me an example? It seem like if we had a banner that had lots of useful translations in it, like the 'shared' banner, we wouldn't want to delete the banner (as it would then be very hard to find the translations).
Comment 7 James Alexander 2011-08-30 21:57:11 UTC
yeah I have to agree with Kaldari. Essentially translations/messages without a banner are orphaned pages with no place to change them in the interface. I think they would be better off always linked with a banner and deleted if the banner is deleted.

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


Navigation
Links