Last modified: 2014-11-13 13:44:26 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T75319, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 73319 - Batch multiple entity-changes in one request
Batch multiple entity-changes in one request
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: High normal (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=0
:
Depends on:
Blocks: 52136
  Show dependency treegraph
 
Reported: 2014-11-12 18:18 UTC by tobias.gritschacher
Modified: 2014-11-13 13:44 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description tobias.gritschacher 2014-11-12 18:18:55 UTC
We need a possibility to make multiple changes to an entity with one request that results in several "smaller" edits in the backend (and is visible as multiple edits in the history and recent changes).

While moving towards the new UI layout, we are going to replace individual edit toolbars with just a fex section-edit-toolbars which makes it possible in the UI to edit several parts of an entity at once. It might not be a good idea to do a pile of API requests to wbsetreference, wbsetqualifier, wbsetclaim, wbsetlabel etc.. at once when someone hits save and we might want to use wbeditentity instead.
The disadvantage of editentity is, that the edit-summary will be somewhat useless for huge changes as it will just say "Updated item".
The solution would be a flag in wbeditentity that causes the backend to save individual ChangeOps separately resulting in several edits and thus in several entries in recent changes and the history.
Another approach would be to implement a completely new API module that takes a list of changes (one change would be equivalent to what the "data" parameter in wbeditentity contains) and that saves these changes individually.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links