https://bugzilla.wikimedia.org/show_bug.cgi?id=37748
Web browser: ---
Bug #: 37748
Summary: refactor Item, split data model from database glue.
Product: MediaWiki extensions
Version: master
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: WikidataRepo
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
Mobile Platform: ---
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).
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l