Magnus Manske (magnus.manske@web.de) [050202 00:59]:
Stirling Newberry schrieb: | On Jan 31, 2005, at 6:46 PM, David Gerard wrote:
|> I asked on wikitech-l, and Magnus said his rating code is not (in his |> opinion) ready for prime time yet. Anyone want to beat it into shape in |> short order?
| Link to code?
Main stuff is in ~ phase3/includes/SpecialValidate.php though there are small parts elsewhere, e.g. display of the additional "validation" tab. I remember that, in addition to turning it on with some global variable, one needs to create a SQL table. Damn if I remember where I stored it (wasn't too complex, though, I can probably reverse-engineer it from the PHP).
Cool :-)
Note that this will probably break with the 1.5 extensions, as the whole version counting is redone.
If this implementation was switched on in 1.4 and people loved it and wanted to keep the feature, how much of a PITA would this be for 1.5?
- d.
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
David Gerard schrieb: | Magnus Manske (magnus.manske@web.de) [050202 00:59]: |>I remember that, in addition to turning it on with some global variable, |>one needs to create a SQL table. Damn if I remember where I stored it |>(wasn't too complex, though, I can probably reverse-engineer it from the |>PHP). | | Cool :-)
That's what I figured about the table:
table "validate" val_user <=> user_id val_title <=> cur_title val_timestamp = timestamp of the version val_type = key of what was validated (quality, quantity, etc.) val_value = value on key/type-specific scale (0..X) val_comment = comment for that vaildation
Types are either varchars or integers...
|>Note that this will probably break with the 1.5 extensions, as the whole |>version counting is redone. | | | If this implementation was switched on in 1.4 and people loved it and | wanted to keep the feature, how much of a PITA would this be for 1.5?
Not very painful :-) Just exchange the timestamp identification for the new, "real" version number, done! (Not sure about the best way to preserve the 1.4 data, though, if that's what we want to do anyway)
Magnus
wikitech-l@lists.wikimedia.org