Last modified: 2014-11-06 21:25:54 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 T36039, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 34039 - Protecting action doesn't update page links
Protecting action doesn't update page links
Status: NEW
Product: MediaWiki
Classification: Unclassified
Page protection (Other open bugs)
1.20.x
All All
: High normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-01-30 13:13 UTC by Liangent
Modified: 2014-11-06 21:25 UTC (History)
6 users (show)

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


Attachments

Description Liangent 2012-01-30 13:13:25 UTC
If the page contains some {{PROTECTIONLEVEL:}] calls and some links depend on them, it fails to update links tables.
Comment 1 Daniel Friesen 2012-01-30 13:44:45 UTC
Refresh jobs generated by changing page protection, fun.

You know, this makes me wonder if we should just introduce some sort of abstract "refresh links" table. Every time a page used something like {{PROTECTIONLEVEL:Foo}} or {{#isblocked:Foo|bar|baz}} we would call something like $parserOutput->refreshLink( 'protection', 475 ); or $parserOutput->refreshLink( 'blocked', 5 );

Then hooks or whatever could just initiate a refresh job for something like ( 'protection', 475 ) when the protection level of page_id = 475 was changed and any pages that used something like that would be refreshed.
Comment 2 db [inactive,noenotif] 2013-02-10 13:34:42 UTC
Due to fix of bug 17970, this should get a higher importance.
Comment 3 Betacommand 2013-06-25 17:42:47 UTC
Any progress on this?
Comment 4 Betacommand 2014-07-11 12:34:51 UTC
Anyone?
Comment 5 Bartosz Dziewoński 2014-07-11 13:34:40 UTC
Probably changing page protection should just call WikiPage::doEditUpdates()?
Comment 6 Bartosz Dziewoński 2014-07-11 13:37:33 UTC
Or WikiPage::doUpdateRestrictions() should clear some caches itself.

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


Navigation
Links