Last modified: 2010-07-02 07:24:24 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T26219, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24219 - Add "old" review status
Add "old" review status
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
CodeReview (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-reviewed
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-01 21:14 UTC by Sam Reed (reedy)
Modified: 2010-07-02 07:24 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Rough patch (2.60 KB, patch)
2010-07-01 21:42 UTC, Sam Reed (reedy)
Details
Minor improved patch (3.46 KB, patch)
2010-07-02 06:40 UTC, Sam Reed (reedy)
Details
Moar with updatelog shizz (4.12 KB, patch)
2010-07-02 07:08 UTC, Sam Reed (reedy)
Details

Description Sam Reed (reedy) 2010-07-01 21:14:57 UTC
Nearly 30% of the revisions marked as new in codereview, predate this extension, and don't really need explicitally reviewing

Requesting flag to be able to mark these old!
Comment 1 Sam Reed (reedy) 2010-07-01 21:22:21 UTC
<MaxSem> 6709
<Reedy> heh, ta Max
<AzaToth> ok
<MaxSem> for the reference: select count(*) from code_rev where cr_status='new' and cr_timestamp > 20081101000000
<Reedy> It's still nearly 30% of the "new" commits

Nearly 30% postdate codereview even. Meaning 70% predates
Comment 2 Sam Reed (reedy) 2010-07-01 21:42:36 UTC
Created attachment 7544 [details]
Rough patch

Basic patch...

Needs a different CSS colour setting for old (maybe?)

Also, something in relation to brions "fixme" - // $wgExtNewFields[] = array( 'code_rev', "$base/archives/codereview-cr_status.sql" ); // FIXME FIXME this is a change to options... don't know how

Need a way to alter cols in extensions. Or something
Comment 3 Sam Reed (reedy) 2010-07-01 21:49:40 UTC
Further poking.. Can we do something with $wgDatabase->fieldInfo() ...?

Do we get enough info? Or can we get enough info (see if 'old' exists?)

http://www.php.net/manual/en/function.mysql-fetch-field.php#20082

Suggests if we get the flags, we'll get it...

enum_value_exists for updaters.inc...?
Comment 4 Sam Reed (reedy) 2010-07-01 21:50:57 UTC
CC'ing brion (Hope he doesn't mind! :P)
Comment 5 Max Semenik 2010-07-01 21:52:18 UTC
Just use the updatelog table.
Comment 6 Sam Reed (reedy) 2010-07-01 21:57:47 UTC
Can we just do something like

$wgExtNewFields[] = array( 'code_rev_enum_add_old', "$base/archives/codereview-cr_status.sql" );

and get away with it?
Comment 7 Sam Reed (reedy) 2010-07-02 06:40:51 UTC
Created attachment 7546 [details]
Minor improved patch

Use separate file for enum update. Changed addition to wgExtNewFields to use 3 array indicies.

Use "code_rev_enum_add_old" to do the addition, hopefully should mean that it doesn't get run again when added to update log

No support attempted for SQLite. The update may work fine.. And can just be applied to both. MaxSem? ;)
Comment 8 Sam Reed (reedy) 2010-07-02 07:08:02 UTC
Created attachment 7547 [details]
Moar with updatelog shizz

Addition of insert to code to updatelog

Add call to update_row_exists in efCodeReviewSchemaUpdates as conditional to find out if update already done
Comment 9 Sam Reed (reedy) 2010-07-02 07:21:52 UTC
Reviewed by MaxSem on irc. Minor tweaks made. Will commit
Comment 10 Sam Reed (reedy) 2010-07-02 07:24:24 UTC
r68871

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links