Last modified: 2012-12-13 11:17:41 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 T39748, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37748 - refactor Item, split data model from database glue
refactor Item, split data model from database glue
Status: VERIFIED FIXED
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
master
All All
: Highest normal (vote)
: ---
Assigned To: Jeroen De Dauw
storypoints: 21
:
Depends on:
Blocks: 36450
  Show dependency treegraph
 
Reported: 2012-06-20 16:29 UTC by Daniel Kinzler
Modified: 2012-12-13 11:17 UTC (History)
3 users (show)

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


Attachments

Description Daniel Kinzler 2012-06-20 16:29:33 UTC
The Wikibase\Item class currently models the item data and also handles database updates and other things that will only work on the repository. 

In the light of the imminent refactoring of ContentHandler, moving more functionality into the Content class, it seems like a good idea to refactor Item as well:

* put all code related to the data structure as such into the Item or ItemData class.
* put all code related to rendering, editing and storing into the ItemContent class, which implements Content and wraps an instance of ItemData.

There could be an interface (Item?) shared by both, but that may cause more confusion than it actually helps (see the Page vs WikiPage mess).
Comment 1 denny vrandecic 2012-06-28 11:34:14 UTC
Picked up for Sprint 8.
Comment 2 Anja Jentzsch 2012-11-29 12:38:23 UTC
Verified in Wikidata demo time for sprint 8

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


Navigation
Links