26 Jan 05:34
Re: Game history UI
Andrew Plotkin <erkyrath <at> eblong.com>
2006-01-26 04:34:22 GMT
2006-01-26 04:34:22 GMT
On Wed, 25 Jan 2006, Jason McIntosh wrote: > On 1/25/06, Andrew Plotkin <erkyrath <at> eblong.com> wrote: >> >> We would need a way to refer to a particular game record. (That is, if you >> are browsing the game records, and you want to throw one at your client, >> there has to be a way to name it.) I suppose this would be the game URI >> plus a record number of some sort. > > Why not skip the URI and just use a record ID string? Works either way. If you have only a record ID string, then it has to be globally unique (at that bookkeeper), instead of being unique to that game. You're the bookkeeper implementor; you tell me which makes more sense. :) >> What we want is an RPC "volity.game_history(data)". Actually, two RPCs. > > Oh, yes, of course, this is what I think I meant to say... > > Except that let's actually make this a bit more general (and useful) > by replacing it with these calls, which deal at the game record level > (which will include history, plus other useful metadata): > > Client->Bookkeeper: volity.game_record($record_id) > Bookkeeper->Client: volity.game_record($record_id, $record) I retain a preference for naming these RPCs differently. get_record and game_record? You're entirely right that they should deal with game records, rather than just the "history" data field. > The second argument in the latter call is a game record struct, > exactly as described in [[Game Record]]. I'm keeping the ID separate > just to avoid changing that specification by adding an ID field, but > maybe it should have one anyway...? It's certainly not going to have an ID when the referee submits it. I'm okay with the ID being attached as a field when it comes back from the bookkeeper; I suspect that we'll eventually have more bookkeeper-supplied fields anyway. (We should therefore add a section to [[Game Record]] for "Fields which the referee must not supply, because the bookkeeper will supply them.") --Z -- -- "And Aholibamah bare Jeush, and Jaalam, and Korah: these were the borogoves..." * If the Bush administration hasn't thrown you in military prison without trial, it's for one reason: they don't feel like it. Not because you're patriotic. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
RSS Feed