Page MenuHomePhabricator

Build an entry point for wikibase.serialization
Closed, ResolvedPublic

Description

Something similar to wikibase.datamodel

Event Timeline

Change 540394 had a related patch set uploaded (by Ladsgroup; owner: Ladsgroup):
[mediawiki/extensions/Wikibase@master] Start using one single entry point for wikibase.serialization

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

Change 540398 had a related patch set uploaded (by Ladsgroup; owner: Ladsgroup):
[mediawiki/extensions/WikibaseLexeme@master] Use one single module for wikibase.serialization

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

Change 540403 had a related patch set uploaded (by Ladsgroup; owner: Ladsgroup):
[mediawiki/extensions/WikibaseMediaInfo@master] Use one single module for wikibase.serialization

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

Change 540394 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Start using one single entry point for wikibase.serialization

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

Change 541514 had a related patch set uploaded (by Ladsgroup; owner: Ladsgroup):
[mediawiki/extensions/Wikibase@master] Add StatementGroupSetDeserializer to wikibase.serialization

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

Change 541514 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Add StatementGroupSetDeserializer to wikibase.serialization

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

Change 540398 merged by jenkins-bot:
[mediawiki/extensions/WikibaseLexeme@master] Use one single module for wikibase.serialization

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

Ladsgroup moved this task from Doing to Done on the RL Module Terminators Trailblazing board.
Ladsgroup removed a project: Patch-For-Review.

Change 540403 merged by jenkins-bot:
[mediawiki/extensions/WikibaseMediaInfo@master] Use one single module for wikibase.serialization

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

@Ladsgroup: I am updating LinguaLibre, which was using ItemSerializer that you removed in the JS serialization library, and I search the new way to serialize an item (before sending it to the API wbeditentity). (I should find but if you have any hint, I would be very grateful :)

Hi, would mw.hook( 'wikipage.content') work for you? It should satisfy your usecase. Unless I'm missing something obvious.

Hi, would mw.hook( 'wikipage.content') work for you? It should satisfy your usecase. Unless I'm missing something obvious.

I guess not, because I am not editing a page, but creating an item given the answers from a form (we are on a special page). The structure is encoded in wikibase.datamodel (e.g. an item), and I need to serialize it before sending.

Then I'm sorry. You should build it in your code :(