r37383 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r37382‎ | r37383 | r37384 >
Date:11:44, 9 July 2008
Author:btongminh
Status:old
Tags:
Comment:
* Added flag "top" to list=usercontribs if the user is the last contributor to the page
* Limited API section in RELEASE-NOTES to 80 chars
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/api/ApiQueryUserContributions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiQueryUserContributions.php
@@ -169,7 +169,8 @@
170170 ));
171171
172172 $this->addFieldsIf('rev_page', $this->fld_ids);
173 - $this->addFieldsIf('rev_id', $this->fld_ids);
 173+ $this->addFieldsIf('rev_id', $this->fld_ids || $this->fld_flags);
 174+ $this->addFieldsIf('page_latest', $this->fld_flags);
174175 // $this->addFieldsIf('rev_text_id', $this->fld_ids); // Should this field be exposed?
175176 $this->addFieldsIf('rev_comment', $this->fld_comment);
176177 $this->addFieldsIf('rev_minor_edit', $this->fld_flags);
@@ -202,6 +203,8 @@
203204 $vals['new'] = '';
204205 if ($row->rev_minor_edit)
205206 $vals['minor'] = '';
 207+ if ($row->page_latest == $row->rev_id)
 208+ $vals['top'] = '';
206209 }
207210
208211 if ($this->fld_comment && !empty ($row->rev_comment))
Index: trunk/phase3/RELEASE-NOTES
@@ -460,7 +460,8 @@
461461 * Replaced $wgAPIUCUserPrefixMinLength by the more generic $wgAPIMaxDBRows
462462 * (bug 11719) Remove trailing blanks in YAML output.
463463 * (bug 13541) Added siprop=specialpagealiases to meta=siteinfo
464 -* Added fallback8bitEncoding and readonly fields to meta=siteinfo&siprop=general output
 464+* Added fallback8bitEncoding and readonly fields to
 465+ meta=siteinfo&siprop=general output
465466 * (bug 13544) Added prop=revid to action=parse
466467 * (bug 13603) Added siprop=usergroups to meta=siteinfo
467468 * Cleaned up redirect resolution
@@ -471,7 +472,8 @@
472473 * (bug 12136) Extend allowed characters in JSON callback to ][.'"_A-Za-z0-9
473474 * (bug 11673) Return error 'unknown_action' in specified format
474475 * (bug 13618) Added rcprop=redirect and rcshow=redirect to list=recentchanges
475 -* (bug 13544) Added oldid parameter to action=parse to allow for parsing of old revisions
 476+* (bug 13544) Added oldid parameter to action=parse to allow for parsing of old
 477+ revisions
476478 * (bug 13718) Return the proper continue parameter for cmsort=timestamp
477479 * action=login now returns the correct waiting time in the details property
478480 * (bug 13792) Broken titles are now silently skipped in search results.
@@ -487,7 +489,8 @@
488490 * (bug 14013) Added rcshow=patrolled to list=recentchanges
489491 * (bug 14028) Added language attribute to interwiki map in meta=siteinfo
490492 * (bug 14022) Added usprop=registration and auprop=blockinfo
491 -* (bug 14021) Removed titles= support from list=backlinks (has been obsolete for ages)
 493+* (bug 14021) Removed titles= support from list=backlinks (has been obsolete
 494+ for ages)
492495 * (bug 13829) Expose parse tree via action=expandtemplates
493496 * (bug 13606) Allow deletion of images
494497 * Added iiprop=mime and aiprop=metadata
@@ -508,13 +511,16 @@
509512 * Added bkip parameter to list=blocks
510513 * (bug 14651) apprefix and similar parameters are now canonicalized
511514 * Added clprop=timestamp to prop=categories
512 -* (bug 14678) API errors now respects $wgShowExceptionDetails and $wgShowSQLErrors
 515+* (bug 14678) API errors now respects $wgShowExceptionDetails and
 516+ $wgShowSQLErrors
513517 * (bug 14723) Added time zone and writing direction to meta=siteinfo
514518 * Added APIQueryInfoTokens and APIQueryRevisionsTokens hooks so extensions
515519 can add their own tokens
516520 * Added block and unblock tokens to prop=info as well
517521 * Added paging (limit and continue parameters) to
518522 prop={links,templatelinks,langlinks,extlinks,categories,images}
 523+* Added flag "top" to list=usercontribs if the user is the last contributor to
 524+ the page
519525
520526 === Languages updated in 1.13 ===
521527

Status & tagging log