Page MenuHomePhabricator

Add link to diff to CommunityConfiguration's post edit message
Open, MediumPublic

Description

User story & summary:

As an administrator, I want to quickly access the diff for the edit produced by CommunityConfiguration, so that I can link my edit to others.

As an administrator, I want to quickly access the diff for the edit produced by CommunityConfiguration, so that I can review the configuration change.

Background & research:

During Wikimedia Hackathon 2024, MediaWiki's post edit message was enhanced with the diff link to the edit. This message is shown after any edit is made, and since T364264, it includes link to the newly published edit. It looks like this:

image.png (139×428 px, 10 KB)

In MediaWiki Core, this is useful when making an edit on request (as part of accepting an edit request, or following a private request, or similar). In those scenarios, it is customary to send the link to the edit to the requestor (or to the on-wiki discussion that triggered the edit). This makes it easy to navigate between what triggered the edit and the edit itself, benefiting transparency.

In CommunityConfiguration, the link back to the edit can serve a similar purpose. In addition to that, it can be also used to review the edit the system made for you, just in case a mixup happened, and the edit is incorrect. Having the link readily available would make it easier to do so, as opposed to having to go to your own contributions (or the page's history), and opening it from there. In any way, since Core already made the change in T364264: Add link to latest edit in the postedit confirmation popups, it only makes sense to follow the pattern in CommunityConfiguration as well.

NOTE: A diff is a concept that exists in the wikipage-based store, but it does not have to exist for others. For example, a future store that works directly with the DB might not have a diff interface, and even if it did, it would work differently than wikipage-based diffs (different URL, different identifier, etc.). Implementation needs to ensure the change does not break CommunityConfiguration when a different store is used than wikipage.
Design:

Not applicable; post-edit notification is already present. Currently, it looks like this:

image.png (186×1 px, 15 KB)

Acceptance Criteria:

Given Community configuration edit form is opened
When an administrator submits an edit
Then the success post-edit message includes a link back to the edit that was just made.

All tasks should also meet the Growth Team’s task completion definition.