[go: up one dir, main page]

Page MenuHomePhabricator

Add tags support to RepoApi
Closed, ResolvedPublic

Description

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.

Event Timeline

I can see two approaches:

  1. Add a tags parameter to the methods that make edits: editEntity, setLabel, etc.
  2. 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.

Change 706514 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[wikibase/javascript-api@master] Add tags to RepoApi

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

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

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

Let’s call this done, we’ll see in the parent tasks if it works or not.

Let’s call this done, we’ll see in the parent tasks if it works or not.

Shouldn't we update the submodule? :D

Well yes, that’ll be part of the parent tasks IMO :)