Ant Zucaro [Fri, 19 Apr 2013 00:30:55 +0000 (20:30 -0400)]
Fix the broken things in player_game_index.
- New routes were defined (/player/:id/game_type_cd) when a query
parameter is the better fit. Game types are a filter condition
on the resource, not the resource itself, thus should not be in
the route.
- Pagination was broken. Passing search_query to route_url makes
the query parameters persist, although I pass query parameters
in an awful way that needs to be fixed.
- Multiple lines just to show the game type description when an if
statement would do the same thing.
- No need to pass the player_url to the template. You can reverse-
generate URLs to routes with route_url just fine.
- Remove the extra link back to the player_info page, as the
pattern throughout the rest of the application is to click the
nick itself.
Jan Behrens [Wed, 17 Apr 2013 07:10:53 +0000 (09:10 +0200)]
Adding gametype-filtered game_index view (and fix bug in player_game_index)
Not linked anywhere yet, but can be accessed via .../player/###/games/gametype
Jan Behrens [Thu, 11 Apr 2013 07:50:24 +0000 (09:50 +0200)]
Allowing elos to be shown even for less than 32 games
Since ranks are not defined if this is the case, the notice "preliminary" is shown below these elos.
Ant Zucaro [Thu, 28 Mar 2013 18:27:42 +0000 (14:27 -0400)]
Port over all older styles (tables in particular).
All of the table-based stuff wasn't looking right under default, so
port over the older ones instead. Change all tables having the
"table-bordered" class to "table-hover".
Ant Zucaro [Sun, 24 Mar 2013 13:33:06 +0000 (09:33 -0400)]
Add bootstrap.
Bootstrap release candidate 3 is complete enough for me to use. In
particular I can have the icon font and the minimized CSS (for
responsive and regular).
Ant Zucaro [Sun, 17 Feb 2013 21:05:33 +0000 (16:05 -0500)]
"Intercept" requests during downtime
This is a Golang utility that allows the stats maintainer to still
accept requests from remote servers while the XonStat server is
down for maintenance. It basically takes the requests and stores
them into a small sqlite3 database for future (re)submission.
When users navigate to the normal stats URL, they'll be greeted
with a downpage informing them of maintenance work instead of the
normal app.
Usage of xs_interceptor:
xs_interceptor [options] <command>
Where <command> is one of the following:
create - create the requests db (sqlite3 db file)
drop - remove the requests db
list - lists the requests in the db
serve - listens for stats requests, storing them if found
resubmit - resubmits the requests to another URL
Where [options] is one or more of the following:
-port - port number (int) to listen on for 'serve' command
-url - url (string) to submit requests
Ant Zucaro [Wed, 6 Feb 2013 02:30:12 +0000 (21:30 -0500)]
Two new utilities written in Go.
xs_parselog parses XonStat log and extracts/recreates requests
into text files, one request per file.
xs_submit takes a XonStat request via a text file and submits it
to a user-specified URL.
Both of these utlities can be run with "go run <filename> [opts]"
after having install the Go programming language on your machine.
Alternatively, one can build executables with "go build <filename>".
Ant Zucaro [Fri, 25 Jan 2013 22:41:38 +0000 (17:41 -0500)]
Allow version-specific gametype support.
It often happens when a gametype can't be supported because of
some random bug in the server code. This presents a problem
for when the bug is fixed, but servers still use the old code. We
can now specify that a game type is supported only after a certain
time by using version number restrictions. For example, CA is
supported, but only if the stats submission version is >= 5. Older
servers still having versions <= 5 won't record CA b/c they would
not pass this restriction.