Last modified: 2014-09-25 11:47:42 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 T71001, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69001 - Replace base classes ApiWikibase, ModifyEntity, ModifyClaim, etc. with composable objects.
Replace base classes ApiWikibase, ModifyEntity, ModifyClaim, etc. with compos...
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Wikidata bugs
u=dev c=backend p=0
:
Depends on:
Blocks: 68917
  Show dependency treegraph
 
Reported: 2014-08-01 11:39 UTC by Daniel Kinzler
Modified: 2014-09-25 11:47 UTC (History)
4 users (show)

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


Attachments

Description Daniel Kinzler 2014-08-01 11:39:05 UTC
Our API modules depend on subclassing for common operations. This makes it hard to mix and match, and makes it virtually impossible to mock all services used by a given API module (see bug 68917).

To fix this, we should create helper classes for specific aspects of API operations (e.g. finding entities, saving entities, etc), and use them in the concrete modules via composition.

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


Navigation
Links