RepoApi (lib/resources/wikibase-api/src/RepoApi.js) is used to make Wikibase edits from JavaScript. To implement several parts of T236893, we need to add support for edit tags to it.
Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Add tags to RepoApi | wikibase/javascript-api | master | +68 -3 |
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | None | T343037 [EPIC] Segmentation of Wikidata editing clients [up to milestone 2] | |||
Resolved | • Manuel | T236893 Tag all edits made via Wikibase View and Wikibase Client | |||
Resolved | Lucas_Werkmeister_WMDE | T286771 Tag edits made via Wikibase Client linkitem | |||
Resolved | Ladsgroup | T286773 Tag edits made via Wikibase View | |||
Resolved | Lucas_Werkmeister_WMDE | T286777 Add tags support to RepoApi | |||
Resolved | Lucas_Werkmeister_WMDE | T286778 Add tags parameter to wbmergeitems API |
Event Timeline
I can see two approaches:
- Add a tags parameter to the methods that make edits: editEntity, setLabel, etc.
- Add a tags parameter to the constructor, and use that for all edits made by the instance.
The second one seems much more elegant to me, and it probably also means we have to do less work to propagate the tags configuration: just configure the tags when the RepoApi is created, and then pass around the instance as usual.
Turns out one of the APIs exposed by RepoApi doesn’t even have a tags parameter yet: T286778: Add tags parameter to wbmergeitems API
Change 706514 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):
[wikibase/javascript-api@master] Add tags to RepoApi
Probably blocked on T287178: Fix Wikibase JavaScript API (RepoApi) build / CI (unless we think this is important enough for a force-merge).
Change 706514 merged by jenkins-bot:
[wikibase/javascript-api@master] Add tags to RepoApi