Page MenuHomePhabricator

Define list for "appeal for a block"
Closed, ResolvedPublic

Description

As an user I would like to be shown links that will help me remove the blocks for my current account.
The information provided to us are:

Deny vanishing submissions if the user’s account is not in good standing
If the user has local blocks or global blocks, we should not give them the option to vanish their account.
In such cases we should simply show them a link for each wiki that they are blocked on to help them unblock the account. Please use the following logic to determine which links to guide the user to for a block on a given Wikipedia:

To use the above wikidata entry you have to use the API as shown in the following example:
URL string:
https://www.wikidata.org/w/api.php?action=wbgetentities&format=json&ids=Q13360396&props=sitelinks%7Csitelinks%2Furls&formatversion=2

JSON:

{
	"action": "wbgetentities",
	"format": "json",
	"ids": "Q13360396",
	"props": "sitelinks|sitelinks/urls",
	"formatversion": "2"
}

PHP:

[
	"action" => "wbgetentities",
	"format" => "json",
	"ids" => "Q13360396",
	"props" => "sitelinks|sitelinks/urls",
	"formatversion" => "2"
]

Outputs something like the following:

{
    "entities": {
        "Q13360396": {
            "type": "item",
            "id": "Q13360396",
            "sitelinks": {
                "dewiki": {
                    "site": "dewiki",
                    "title": "Wikipedia:Sperrprüfung",
                    "badges": [],
                    "url": "https://de.wikipedia.org/wiki/Wikipedia:Sperrpr%C3%BCfung"
                },
                "enwiki": {
                    "site": "enwiki",
                    "title": "Wikipedia:Appealing a block",
                    "badges": [],
                    "url": "https://en.wikipedia.org/wiki/Wikipedia:Appealing_a_block"
                }
            }
        }
    },
    "success": 1
}

AC:

  • Crete a method that create a list of "links" for the blocked wikis
  • Show this links on the page (the one showed when the user tries to do a request but has blocks).

Related Objects

Event Timeline

Amdrel changed the task status from Open to In Progress.Fri, Jun 28, 12:18 AM
Amdrel claimed this task.

Change #1050679 had a related patch set uploaded (by Amdrel; author: Amdrel):

[mediawiki/extensions/CentralAuth@automate-account-vanishing-phase-3] Display link to appeal a block for users that cannot vanish

https://gerrit.wikimedia.org/r/1050679

Change #1050679 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@automate-account-vanishing-phase-3] Display links to appeal a block for users that cannot vanish

https://gerrit.wikimedia.org/r/1050679

Change #1052685 had a related patch set uploaded (by Simone Cuomo; author: Simone Cuomo):

[mediawiki/extensions/CentralAuth@master] Display links to appeal a block for users that cannot vanish

https://gerrit.wikimedia.org/r/1052685

Change #1052831 had a related patch set uploaded (by Amdrel; author: Amdrel):

[mediawiki/extensions/WikimediaMessages@master] Add messages for CentralAuth's user vanish pages

https://gerrit.wikimedia.org/r/1052831

Test wiki created on Patch demo by SimoneThisDot using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/f5a7b80242/w

Change #1053294 had a related patch set uploaded (by Simone Cuomo; author: Simone Cuomo):

[mediawiki/extensions/CentralAuth@master] Introduce Vanish Request Flow

https://gerrit.wikimedia.org/r/1053294

Test wiki created on Patch demo by SimoneThisDot using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/0f344e95cc/w

Change #1052685 abandoned by Seddon:

[mediawiki/extensions/CentralAuth@master] Display links to appeal a block for users that cannot vanish

Reason:

Replaced by a flattened patch https://gerrit.wikimedia.org/r/c/mediawiki/extensions/CentralAuth/+/1053294

https://gerrit.wikimedia.org/r/1052685

Test wiki created on Patch demo by SimoneThisDot using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/bb21f4e4bf/w

Change #1053294 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@master] Introduce Vanish Request Flow

https://gerrit.wikimedia.org/r/1053294

Change #1054571 had a related patch set uploaded (by Urbanecm; author: Simone Cuomo):

[mediawiki/extensions/CentralAuth@wmf/1.43.0-wmf.13] Introduce Vanish Request Flow

https://gerrit.wikimedia.org/r/1054571

Change #1054571 abandoned by Urbanecm:

[mediawiki/extensions/CentralAuth@wmf/1.43.0-wmf.13] Introduce Vanish Request Flow

https://gerrit.wikimedia.org/r/1054571

Change #1054572 had a related patch set uploaded (by Urbanecm; author: Simone Cuomo):

[mediawiki/extensions/CentralAuth@wmf/1.43.0-wmf.13] Introduce Vanish Request Flow

https://gerrit.wikimedia.org/r/1054572

Change #1054572 merged by jenkins-bot:

[mediawiki/extensions/CentralAuth@wmf/1.43.0-wmf.13] Introduce Vanish Request Flow

https://gerrit.wikimedia.org/r/1054572

Mentioned in SAL (#wikimedia-operations) [2024-07-16T14:25:47Z] <urbanecm@deploy1002> Started scap sync-world: Backport for [[gerrit:1054572|Introduce Vanish Request Flow (T367329 T367726 T367728 T367729 T367744 T368177 T368285 T368368 T368372 T368611 T369489)]], [[gerrit:1054573|Pass wiki id to actor store for cross-db hasPublicLogs query (T370059)]], [[gerrit:1054574|Properly set automatic vanish performer on GlobalRenameUser (T368177)]], [[gerrit:1053373|Enable account vanishing

Mentioned in SAL (#wikimedia-operations) [2024-07-16T14:53:37Z] <urbanecm@deploy1002> dbrant, urbanecm: Backport for [[gerrit:1054572|Introduce Vanish Request Flow (T367329 T367726 T367728 T367729 T367744 T368177 T368285 T368368 T368372 T368611 T369489)]], [[gerrit:1054573|Pass wiki id to actor store for cross-db hasPublicLogs query (T370059)]], [[gerrit:1054574|Properly set automatic vanish performer on GlobalRenameUser (T368177)]], [[gerrit:1053373|Enable account vanishing in Cen

Mentioned in SAL (#wikimedia-operations) [2024-07-16T15:01:39Z] <urbanecm@deploy1002> Finished scap: Backport for [[gerrit:1054572|Introduce Vanish Request Flow (T367329 T367726 T367728 T367729 T367744 T368177 T368285 T368368 T368372 T368611 T369489)]], [[gerrit:1054573|Pass wiki id to actor store for cross-db hasPublicLogs query (T370059)]], [[gerrit:1054574|Properly set automatic vanish performer on GlobalRenameUser (T368177)]], [[gerrit:1053373|Enable account vanishing in Centra