Page MenuHomePhabricator

Deduplicate REST error messages
Closed, ResolvedPublic

Description

In MW REST API we've started prefixing all the error message keys with the endpoint name, like rest-pagehistory-revision-nonexistent. However, a lot of messages are the same for all the endpoints, so I propose to deduplicate them and pull out the endpoint name prefix when it's not needed. That way we can have less messages and reuse translations created for one endpoint in another.

Related Objects

StatusSubtypeAssignedTask
InvalidNone
OpenNone
Resolved Pchelolo

Event Timeline

Change 549631 had a related patch set uploaded (by Ppchelko; owner: Ppchelko):
[mediawiki/core@master] REST: Deduplicate and normalize REST error message names

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

Change 549631 merged by jenkins-bot:
[mediawiki/core@master] REST: Deduplicate and normalize REST error message names

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

Pchelolo claimed this task.
Pchelolo moved this task from Backlog to Done on the Platform Team Workboards (Green) board.