Page MenuHomePhabricator

Add "old" review status
Closed, ResolvedPublic

Description

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!


Version: unspecified
Severity: enhancement

Details

Reference
bz24219

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:10 PM
bzimport set Reference to bz24219.
bzimport added a subscriber: Unknown Object (MLST).

<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

Created attachment 7544
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

attachment old.patch ignored as obsolete

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...?

CC'ing brion (Hope he doesn't mind! :P)

Just use the updatelog table.

Can we just do something like

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

and get away with it?

Created attachment 7546
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? ;)

attachment old v2.patch ignored as obsolete

Created attachment 7547
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

Attached:

Reviewed by MaxSem on irc. Minor tweaks made. Will commit