jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/397797 )

Change subject: Expose JS RevisionStore to custom Changers registered by 
extension
......................................................................


Expose JS RevisionStore to custom Changers registered by extension

If the custom changer updates the entity, there might be a need
to update some revision data in the store. In order to allow
changes to have the same revision state, they might use the
same RevisionStore instance. To do so, this makes
EntityChangersFactory expose that instance to whatever user
needs it.

Bug: T181253
Change-Id: Id3899764e6a76889f9344d8d6b79664445d35128
---
M view/resources/wikibase/entityChangers/EntityChangersFactory.js
1 file changed, 8 insertions(+), 0 deletions(-)

Approvals:
  WMDE-leszek: Looks good to me, approved
  jenkins-bot: Verified
  Thiemo Kreuz (WMDE): Looks good to me, but someone else must approve



diff --git a/view/resources/wikibase/entityChangers/EntityChangersFactory.js 
b/view/resources/wikibase/entityChangers/EntityChangersFactory.js
index c937c86..6d26ba5 100644
--- a/view/resources/wikibase/entityChangers/EntityChangersFactory.js
+++ b/view/resources/wikibase/entityChangers/EntityChangersFactory.js
@@ -48,6 +48,14 @@
                 */
                _fireHook: null,
 
+               getRevisionStore: function () {
+                       return this._revisionStore;
+               },
+
+               getEntity: function () {
+                       return this._entity;
+               },
+
                /**
                 * @return {wikibase.entityChangers.AliasesChanger}
                 */

-- 
To view, visit https://gerrit.wikimedia.org/r/397797
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Id3899764e6a76889f9344d8d6b79664445d35128
Gerrit-PatchSet: 6
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: WMDE-leszek <[email protected]>
Gerrit-Reviewer: Thiemo Kreuz (WMDE) <[email protected]>
Gerrit-Reviewer: WMDE-leszek <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to