jenkins-bot has submitted this change and it was merged.

Change subject: Actually send oldid on POST like we promised Parsoid we would
......................................................................


Actually send oldid on POST like we promised Parsoid we would

VisualEditor did not send an oldid on POST so far, which disabled
selective serialization in production.

Bug: 47434
Change-Id: Ib1b7079a7fd3357903e5a14795ed0d2f2bdc5d16
---
M ApiVisualEditor.php
1 file changed, 5 insertions(+), 3 deletions(-)

Approvals:
  Catrope: Looks good to me, approved
  Trevor Parscal: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/ApiVisualEditor.php b/ApiVisualEditor.php
index ed258f2..078f47f 100644
--- a/ApiVisualEditor.php
+++ b/ApiVisualEditor.php
@@ -75,9 +75,11 @@
                        $wgVisualEditorParsoidURL . '/' . 
$wgVisualEditorParsoidPrefix .
                                '/' . urlencode( $title->getPrefixedDBkey() ),
                        array(
-                               'postData' => array( 'content' => $html ),
-                               'timeout' => $wgVisualEditorParsoidTimeout,
-                               'oldid' => $parserParams['oldid']
+                               'postData' => array( 
+                                       'content' => $html,
+                                       'oldid' => $parserParams['oldid'] 
+                               ),
+                               'timeout' => $wgVisualEditorParsoidTimeout
                        )
                );
        }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib1b7079a7fd3357903e5a14795ed0d2f2bdc5d16
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/VisualEditor
Gerrit-Branch: master
Gerrit-Owner: GWicke <[email protected]>
Gerrit-Reviewer: Catrope <[email protected]>
Gerrit-Reviewer: Trevor Parscal <[email protected]>
Gerrit-Reviewer: jenkins-bot

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

Reply via email to