Page MenuHomePhabricator

Allow a user to be blocked from creating pages only
Open, Stalled, LowPublicFeature

Description

Problem to solve

There are some problematic users who continually violate page creation policies & guidelines, but should otherwise be retained on the wiki as constructive contributors. A sitewide block is not an appropriate way to handle these situations.


Proposed solution

It would be useful to be able to *only* block users from creating new pages.


Acceptance criteria

  • On Special:Block, under 'Actions to block' add a checkbox for Creating pages
    • The checkbox should be unchecked by default
    • The checkbox should be marked as disabled unless the 'Partial' radio button is selected
    • If a user toggles either the 'Editing' checkbox or the Sitewide/Partial radio buttons, the checkbox should save whatever state the user configured it as. The state can be discarded on submit if the block is non-editing or sitewide.
  • When a block is saved with the 'Creating pages' checkbox selected, the target user should not be able to create new pages in any namespace via API, via any tool in any editor, or via any Special page.
    • TBD: The 'Create' tab should not appear (sitewide blocked user still see the 'Create' tab.)
    • TBD: Clicking redlinks should not take the user to the edit mode (sitewide blocked users are still taken to edit mode)
    • Error messages should display appropriately inside the user's editor of choice
  • When a Partial block is saved with the 'Creating pages' checkbox selected, the log items should indicate page creation is part of the block
    • e.g. 23:20, 26 November 2018 AdminUsername (talk | contribs | block) blocked BadUser (talk | contribs) from editing Page(s) and creating pages with an expiration time of N (autoblock disabled) (unblock | change block)
    • e.g. 23:20, 26 November 2018 AdminUsername (talk | contribs | block) blocked BadUser (talk | contribs) from creating pages with an expiration time of N (autoblock disabled) (unblock | change block)
    • similar log messages should exist for modifying blocks to add or remove upload, and to include namespaces within the partial block
  • Special:BlockList should display that a user is blocked from creating pages as a bullet in the 'Block parameters' column
  • TBD: When the 'Creating page' checkbox is selected, the 'Uploading files' checkbox should become selected and disabled. (Uploading a file creates the file page.)

Potential future enhancements:

These are out of scope for this ticket, but may need to be built later:

  • All wikis to configure if page creation blocks include pages within a Draft namespace
  • All wikis to configure if page creation blocks include sub-pages
  • All wikis to configure if page creation blocks include sub-pages of the user's userpage.

Event Timeline

IKhitron added a subscriber: IKhitron.
ToBeFree added a subscriber: ToBeFree.
Aklapper changed the edit policy from "Custom Policy" to "All Users".Sep 17 2018, 5:44 PM
Aklapper changed Risk Rating from N/A to default.
TBolliger removed a project: Anti-Harassment.

Deprioritizing new feature development on Partial Blocks in 2019 by the WMF's Anti-Harassment team but leaving open on the Blocking Tools backlog. After we measure the effectiveness of page and namespace Partial Blocks we will reassess additional time investment.

Niharika updated the task description. (Show Details)Jul 9 2019, 11:07 PM
Niharika added a subscriber: Niharika.
Xaosflux changed the subtype of this task from "Task" to "Feature Request".Jan 14 2020, 7:38 PM
DannyS712 claimed this task.Apr 1 2020, 5:11 AM
DannyS712 added a subscriber: DannyS712.

@Niharika any objections from Anti-Harassment / is this approved from a product point of view?

Restricted Application added a project: User-DannyS712. · View Herald TranscriptApr 1 2020, 5:11 AM
DannyS712 moved this task from Unsorted to Next on the User-DannyS712 board.Apr 1 2020, 5:11 AM

There should still be a way for a user blocked from creating pages to get from a redlink to search results for the redlinked title. Whether that is a link from a message saying something like "this page does not exist and you do not have permission to create it" or (maybe less preferably?) simply being taken to search results when clicking a red link or some other method I don't know.
The reason is that these search results can be good way to find the article one intended to link to when the error (e.g. misspelling) is not immediately obvious.

@Niharika any objections from Anti-Harassment / is this approved from a product point of view?

@DannyS712 I think this task needs a bit more thinking about the planned work. I will discuss this with the team and we will decide whether it is worth investing time on this. I will ask you to look into something else if you are looking for something interesting to do. :)

DannyS712 changed the task status from Open to Stalled.Apr 12 2020, 7:26 PM
DannyS712 triaged this task as Low priority.

@Niharika any objections from Anti-Harassment / is this approved from a product point of view?

@DannyS712 I think this task needs a bit more thinking about the planned work. I will discuss this with the team and we will decide whether it is worth investing time on this. I will ask you to look into something else if you are looking for something interesting to do. :)

I should have enough to keep myself occupied, but I'll stall this task until its approved, to ensure I don't accidentally start work on it that is eventually abandoned

Acceptance criteria

  • On Special:Block, under 'Actions to block' add a checkbox for Creating pages
    • The checkbox should be unchecked by default
    • The checkbox should be marked as disabled unless the 'Partial' radio button is selected

I am wondering if the checkbox for Creating pages should be indented to be under the Partial blocks header to make it clear it's a partial block option.

    • If a user toggles either the 'Editing' checkbox or the Sitewide/Partial radio buttons, the checkbox should save whatever state the user configured it as. The state can be discarded on submit if the block is non-editing or sitewide.
  • When a block is saved with the 'Creating pages' checkbox selected, the target user should not be able to create new pages in any namespace via API, via any tool in any editor, or via any Special page.
    • TBD: The 'Create' tab should not appear (sitewide blocked user still see the 'Create' tab.)

This makes sense.

  • TBD: Clicking redlinks should not take the user to the edit mode (sitewide blocked users are still taken to edit mode)

Clicking redlinks should take them to the search with a message saying This page does not exist and you do not have the permission to create it. See more information. -- with a link to the block that blocked them from creating pages.

  • When a Partial block is saved with the 'Creating pages' checkbox selected, the log items should indicate page creation is part of the block
  • Special:BlockList should display that a user is blocked from creating pages as a bullet in the 'Block parameters' column
  • TBD: When the 'Creating page' checkbox is selected, the 'Uploading files' checkbox should become selected and disabled. (Uploading a file creates the file page.)

This makes sense.

Perhaps page creation should be allowed as part of file uploading if T6995: Allow users to be blocked from uploading files only is also done?

  • Blocked from page creation and file uploading: cannot creating file pages
  • Blocked from page creation, not file uploading: can only create pages as part of file uploading
Stryn added a subscriber: Stryn.May 5 2020, 5:43 AM
Ammarpad removed a subscriber: Ammarpad.May 14 2020, 5:18 AM
DannyS712 removed DannyS712 as the assignee of this task.Tue, Sep 22, 8:36 PM

Avoiding cookie licking pending product approval