r113957 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113956‎ | r113957 | r113958 >
Date:21:07, 15 March 2012
Author:catrope
Status:ok
Tags:
Comment:
1.19wmf1: MFT r113858
Modified paths:
  • /branches/wmf/1.19wmf1/extensions/ArticleFeedbackv5 (modified) (history)
  • /branches/wmf/1.19wmf1/extensions/ArticleFeedbackv5/ArticleFeedbackv5.hooks.php (modified) (history)
  • /branches/wmf/1.19wmf1/extensions/ArticleFeedbackv5/api/ApiArticleFeedbackv5.php (modified) (history)
  • /branches/wmf/1.19wmf1/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.js (modified) (history)

Diff [purge]

Index: branches/wmf/1.19wmf1/extensions/ArticleFeedbackv5/modules/jquery.articleFeedbackv5/jquery.articleFeedbackv5.js
@@ -3193,7 +3193,7 @@
31943194 'eventid': id,
31953195 'namespacenumber': mw.config.get( 'wgNamespaceNumber' ),
31963196 'token': $.cookie( 'clicktracking-session' ),
3197 - 'additional': mw.config.get( 'wgTitle' ),
 3197+ 'additional': mw.config.get( 'wgTitle' ) + '|' + $.articleFeedbackv5.revisionId,
31983198 'redirectto': url
31993199 } );
32003200 };
Property changes on: branches/wmf/1.19wmf1/extensions/ArticleFeedbackv5/api/ApiArticleFeedbackv5.php
___________________________________________________________________
Modified: svn:mergeinfo
32013201 Merged /trunk/extensions/ArticleFeedbackv5/api/ApiArticleFeedbackv5.php:r113858
Index: branches/wmf/1.19wmf1/extensions/ArticleFeedbackv5/ArticleFeedbackv5.hooks.php
@@ -418,7 +418,7 @@
419419 * @return bool
420420 */
421421 public static function trackEditAttempt( $editpage ) {
422 - self::trackEvent( 'edit_attempt', $editpage->getArticle()->getTitle() ); // EditPage::getTitle() doesn't exist in 1.18wmf1
 422+ self::trackEvent( 'edit_attempt', $editpage->getArticle()->getTitle(), $editpage->getRevIdFetched()); // EditPage::getTitle() doesn't exist in 1.18wmf1
423423 return true;
424424 }
425425
@@ -442,7 +442,7 @@
443443 public static function trackEditSuccess( &$article, &$user, $text,
444444 $summary, $minoredit, $watchthis, $sectionanchor, &$flags,
445445 $revision, &$status, $baseRevId /*, &$redirect */ ) { // $redirect not passed in 1.18wmf1
446 - self::trackEvent( 'edit_success', $article->getTitle() );
 446+ self::trackEvent( 'edit_success', $article->getTitle(), $baseRevId );
447447 return true;
448448 }
449449
@@ -453,7 +453,7 @@
454454 * @param $context IContextSource
455455 * @return
456456 */
457 - private static function trackEvent( $event, $title ) {
 457+ private static function trackEvent( $event, $title, $rev_id) {
458458 global $wgArticleFeedbackv5Tracking;
459459 $ctas = array( 'none', 'edit', 'learn_more' );
460460
@@ -485,7 +485,7 @@
486486 'action' => 'clicktracking',
487487 'eventid' => $trackingId,
488488 'token' => $token,
489 - 'additional' => $title->getText(),
 489+ 'additional' => $title->getText() . '|' . $rev_id,
490490 'namespacenumber' => $title->getNamespace()
491491 ) );
492492 $api = new ApiMain( $params, true );
Property changes on: branches/wmf/1.19wmf1/extensions/ArticleFeedbackv5
___________________________________________________________________
Modified: svn:mergeinfo
493493 Merged /trunk/extensions/ArticleFeedbackv5:r113858

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r113858bug 35106 - adding | and rev id after rest of tracking itemsemsmith21:23, 14 March 2012

Status & tagging log