Page MenuHomePhabricator

Page restrictions should be moved to their own table
Closed, ResolvedPublic

Description

Author: robchur

Description:
I propose moving the page restrictions field to its own table, which would
behave in a relational fashion, e.g. fields for protectionid(int11, pri,
auto-inc), userid(int 11), protected(int 1) etc.


Version: unspecified
Severity: enhancement

Details

Reference
bz4145

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:58 PM
bzimport set Reference to bz4145.
bzimport added a subscriber: Unknown Object (MLST).

robchur wrote:

Wow, was I pissed when I wrote that schema? Anyway, still think this is
relevant. We'd want a field to correspond to the page_id, also, fields for edit
and move (corresponding to the names of groups required, obviously). Adding a
user field might be handy if we want to implement that suggestion to allow
preventing certain users from editing specific pages that's knocking around.

Indexing might be an idea, but indexes aren't my thing, so someone else can
suggest those. ;-)

titoxd.wikimedia wrote:

This could also be used to dynamically update [[Wikipedia:Protected pages]] (or
even better, create a new Special page, [[Special:Protectedlist]], akin to
[[Special:Ipblocklist]]). and it would also solve the problem of lazy sysops not
updating manual logs.

titoxd.wikimedia wrote:

Fixed in r19044, needs a branch merge and scap.

ayg wrote:

It's not fixed until it's in trunk. Plus, it's not even quite done in branch.