[Wikidata-bugs] [Maniphest] T312811: Provide initial "automated summaries" to statement edits made with Wikibase REST API

2022-09-14 Thread Jakob_WMDE
Jakob_WMDE added subscribers: Ollie.Shotton_WMDE, Silvan_WMDE, Jakob_WMDE.
Jakob_WMDE added a comment.


  Notes from task breakdown:
  
  - include auto summary data in `EditMetadata` - @Jakob_WMDE
- change `EditMetadata`
  - remove the `getComment` method
  - add a `getSummary` method which returns an `EditSummary` object
- create an `EditSummary` interface and implement it in a 
`StatementEditSummary` class
  - `EditSummary` has two methods `public function getUserComment(): 
?string` and `public function getEditAction(): string` and constants for all 
kinds of edit actions
  - `StatementEditSummary` has factory methods for all actions, and a 
`public function getStatement(): Statement` method
  - change all use cases to create the `EditMetadata` with the corresponding 
`StatementEditSummary` using the factory methods - @Silvan_WMDE
- in `MediaWikiEditEntityFactoryItemUpdater` use the user comment from the 
`EditSummary` object
  - create a `FormatableSummaryAdapter` which creates a `FormatableSummary` 
from our `EditSummary` - @Ollie.Shotton_WMDE
- maps the `EditSummary::getEditAction` to the `FormatableSummary` with the 
module name (`wbsetclaim` or `wbremoveclaims`), action name (`create`, 
`update`, `remove`)
- gets the property id and mainsnak from 
`StatementEditSummary::getStatement`
  - change `MediaWikiEditEntityFactoryItemUpdater` - @Jakob_WMDE
- inject the `FormatableSummaryAdapter` and `SummaryFormatter`
- in the call `$editEntity->attemptSave()` do 
`$this->summaryFormatter->format( 
$this->mediaWikiSummaryAdapter->newFromSummary( $editMetadata->getSummary() ) 
),`
- e2e tests

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

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

To: Jakob_WMDE
Cc: Jakob_WMDE, Silvan_WMDE, Ollie.Shotton_WMDE, Lydia_Pintscher, Aklapper, 
WMDE-leszek, Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, ItamarWMDE, 
Akuckartz, Nandana, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, 
_jensen, rosalieper, Scott_WUaS, Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T312811: Provide initial "automated summaries" to statement edits made with Wikibase REST API

2022-09-14 Thread WMDE-leszek
WMDE-leszek moved this task from Next to Sprint 13 on the Wikibase Product 
Platform board.
WMDE-leszek edited projects, added Wikibase Product Platform (Sprint 13); 
removed Wikibase Product Platform.

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

WORKBOARD
  https://phabricator.wikimedia.org/project/board/5771/

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

To: WMDE-leszek
Cc: Lydia_Pintscher, Aklapper, WMDE-leszek, Astuthiodit_1, karapayneWMDE, 
Invadibot, maantietaja, ItamarWMDE, Akuckartz, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T312811: Provide initial "automated summaries" to statement edits made with Wikibase REST API

2022-09-14 Thread WMDE-leszek
WMDE-leszek updated the task description.

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

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

To: WMDE-leszek
Cc: Lydia_Pintscher, Aklapper, WMDE-leszek, Astuthiodit_1, karapayneWMDE, 
Invadibot, maantietaja, ItamarWMDE, Akuckartz, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T312811: Provide initial "automated summaries" to statement edits made with Wikibase REST API

2022-08-03 Thread Lydia_Pintscher
Lydia_Pintscher added a parent task: T314503: rollout of the new Wikibase REST 
API to Wikidata.

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

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

To: Lydia_Pintscher
Cc: Lydia_Pintscher, Aklapper, WMDE-leszek, Astuthiodit_1, karapayneWMDE, 
Invadibot, maantietaja, ItamarWMDE, Akuckartz, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T312811: Provide initial "automated summaries" to statement edits made with Wikibase REST API

2022-07-25 Thread WMDE-leszek
WMDE-leszek set the point value for this task to "8".

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

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

To: WMDE-leszek
Cc: Lydia_Pintscher, Aklapper, WMDE-leszek, Astuthiodit_1, karapayneWMDE, 
Invadibot, maantietaja, ItamarWMDE, Akuckartz, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T312811: Provide initial "automated summaries" to statement edits made with Wikibase REST API

2022-07-25 Thread Silvan_WMDE
Silvan_WMDE updated the task description.

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

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

To: Silvan_WMDE
Cc: Lydia_Pintscher, Aklapper, WMDE-leszek, Astuthiodit_1, karapayneWMDE, 
Invadibot, maantietaja, ItamarWMDE, Akuckartz, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T312811: Provide initial "automated summaries" to statement edits made with Wikibase REST API

2022-07-15 Thread WMDE-leszek
WMDE-leszek added a subscriber: Lydia_Pintscher.
WMDE-leszek added a comment.


  changed "modules" and "actions" to match existing i18n keys per suggestion 
from @Lydia_Pintscher

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

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

To: WMDE-leszek
Cc: Lydia_Pintscher, Aklapper, WMDE-leszek, Astuthiodit_1, karapayneWMDE, 
Invadibot, maantietaja, ItamarWMDE, Akuckartz, Nandana, Lahi, Gq86, 
GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Scott_WUaS, 
Wikidata-bugs, aude, Mbch331
___
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T312811: Provide initial "automated summaries" to statement edits made with Wikibase REST API

2022-07-15 Thread WMDE-leszek
WMDE-leszek updated the task description.

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 -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org


[Wikidata-bugs] [Maniphest] T312811: Provide initial "automated summaries" to statement edits made with Wikibase REST API

2022-07-11 Thread WMDE-leszek
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}`PUT 
`/statements/{statement_id}`   | `/* wbrestapi-statement-update:1| */ 
[[Property:P123]]: VALUE_FORMATTED` |
  | DELETE `/entities/items/{item_id}/statements/{statement_id}`DELETE 
`/statements/{statement_id}` | `/* wbrestapi-statement-remove:1| */ 
[[Property:P123]]: VALUE_FORMATTED` |
  | PATCH `/entities/items/{item_id}/statements/{statement_id}`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 
 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 -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org