WMDE-leszek created this task.
WMDE-leszek added projects: Wikibase Product Platform, Wikidata, Story.

TASK DESCRIPTION
  As a Wikidata patroller I want statement edits made with REST API to have an 
"automated summary" provided so that I can have a quick overview on what the 
edit has been about.
  As a Wikidata patroller I want statement edits made with REST API to have an 
"automated summary" provided so that I can consider edits made with the REST 
API in my regular workflows.
  
  For the time being (July 2022), with no better alternative present, Wikibase 
REST API will mimic the "automated summaries" of Wikibase's Action API and 
other logic.
  
  The following "automated summary" templates are suggested to use with edits 
made with specific REST methods and paths
  
  | POST `/entities/items/{item_id}/statements`                                 
                          | `/* wbrestapi-statement-create:1| */ 
[[Property:P123]]: VALUE_FORMATTED` |
  | PUT `/entities/items/{item_id}/statements/{statement_id}`<br />PUT 
`/statements/{statement_id}`       | `/* wbrestapi-statement-update:1| */ 
[[Property:P123]]: VALUE_FORMATTED` |
  | DELETE `/entities/items/{item_id}/statements/{statement_id}`<br />DELETE 
`/statements/{statement_id}` | `/* wbrestapi-statement-remove:1| */ 
[[Property:P123]]: VALUE_FORMATTED` |
  | PATCH `/entities/items/{item_id}/statements/{statement_id}`<br />PATCH 
`/statements/{statement_id}`   | `/* wbrestapi-statement-update:1| */ 
[[Property:P123]]: VALUE_FORMATTED` |
  
  Notes to the above:
  
  - relevant i18n messages are to be provided. Their text should match the 
respective `wbsetclaim-` messages
  - `[[Property:P123]]` should be replaced by the wiki-specific wikitext 
representation of the link to the property used in the statement (P123 
<https://phabricator.wikimedia.org/P123> in the examples)
  - `VALUE_FORMATTED` should be replaced by the wiki-specific wikitext 
representation of the value of the statement ("main snak")
  
  No "smarter" automated summaries are intended to be provided for the time 
being.

TASK DETAIL
  https://phabricator.wikimedia.org/T312811

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: WMDE-leszek
Cc: Aklapper, WMDE-leszek, Astuthiodit_1, karapayneWMDE, Invadibot, 
maantietaja, ItamarWMDE, Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, 
QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, 
Lydia_Pintscher, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to