Page MenuHomePhabricator

[ES-M3] EntitySchemas shown by label in 'Recent changes'
Closed, ResolvedPublic8 Estimated Story Points

Description

As an editor, I want to easily understand what is behind an EntitySchema when looking at the Recent Changes page

Problem
Currently on Recent Changes, EntitySchemas are shown by their ID instead of their label, making it difficult for users to understand what the EntitySchema is for.

To make EntitySchemas more legible for users, we would like to replicate the format that is used for Items i.e. "Label (ID)"

Screenshot
An example of how EntitySchemas are currently displayed on recent changes:

image.png (898×1 px, 233 KB)

How Items are displayed:

image.png (672×1 px, 214 KB)

BDD
GIVEN an EntitySchema
WHEN it is listed on Recent Changes
THEN it is shown as "Label (ID)"

Acceptance criteria:

  • an EntitySchema is shown as"Label (ID)" on Recent Changes
  • the language of the label follows the UI language

Note

  • Watchlist and Recent Changes could be implemented together as they may use the same hook
  • Language fallback will be done for this in T330491

Event Timeline

Change 937465 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/EntitySchema@master] Add LabelLookup service

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

Change 937465 merged by jenkins-bot:

[mediawiki/extensions/EntitySchema@master] Add LabelLookup service

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

Change 943535 had a related patch set uploaded (by Michael Große; author: Michael Große):

[mediawiki/extensions/EntitySchema@master] Show EntitySchema Labels on special pages instead of only the id

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

Change 943535 merged by jenkins-bot:

[mediawiki/extensions/EntitySchema@master] Show EntitySchema Labels on special pages instead of only the id

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

This can now be verified on beta. Though, you may need to create/edit an EntitySchema to see it in Recent Changes.

Thanks so much!

Looks good to me :)