Open czlee opened 8 years ago
It can be a pain to reorder things (I did this with WADL last night) but I'm not sure its a huge pain, when most use cases wont require it, or for cases where it is required (say dropping/adding an ESL octo at Australs) the user should have a vague idea of what to do. In either (1) or (2) prelim rounds still have a seq
that could require reordering at some point.
That said (2) seems fine; an ascending seq makes sense. You could always use the abbreviation
as the slug — its used in the navigation UI anyway and requiring it to be unique in conjunction with the break category makes sense.
That said I don't think its a huge enough pain that this should be a big priority.
The
round.seq
field is a hangover from when Tabbycat didn't support break rounds. When we added break round support I think we sort of defaulted to just keeping rounds in "sequential order". For a couple of reasons, this isn't a great strategy:Here are some options:
(tournament, seq)
pairs will no longer be unique, which will in turn mean it can't be easily sorted using just the one field. For prelim rounds,seq
should run in ascending order; for break rounds,seq
should run in descending order (since "more rounds", if added, are added to the front; this way, the grand final is alwaysseq=1
). The "round order" is not fully defined if there is more than one break category, but in principle would go prelim rounds in ascending order, then break rounds in descending order.(1) would probably wreak less havoc on the status quo. (2) would require us to rethink URLs, etc.. Though arguably, we should rethink URLs anyway:
/australs/draw/round/10/
is probably better off as/australs/draw/open/semi/
(though at the same time, adding a slug field toRound
would also be a pain).