Page MenuHomePhabricator

📛 Replace `label-description-same-value` error with `data-policy-violation`
Closed, ResolvedPublic

Description

The new error should follow this format:

HTTP status code: 422
"code":"data-policy-violation"
"message":"Edit violates data policy"
"context":{ "violation": "{violation}", "violation_context": { "some": "context" } }

Note:

  • remember to check if the OAS needs updating as well.
  • {violation} is one of the existing error codes (see main ticket, minus patch-result- errors)
  • {violation_context} includes the illegal context, e.g. { "language-code": "foo" }

Event Timeline

Dima_Koushha_WMDE renamed this task from Replace `label-description-same-value` error with `data-policy-violation` to 📛 Replace `label-description-same-value` error with `data-policy-violation`.Jul 23 2024, 9:38 PM
Dima_Koushha_WMDE updated the task description. (Show Details)

Change #1060408 had a related patch set uploaded (by Jakob; author: Jakob):

[mediawiki/extensions/Wikibase@master] REST: Replace label-description-same-value with data-policy-violation

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

Change #1060408 merged by jenkins-bot:

[mediawiki/extensions/Wikibase@master] REST: Replace label-description-same-value with data-policy-violation

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