howardpchen/capricorn — pull request #27 by shadowdoc (2014-08-05 21:19:05+00:00)
Title: Projection summary graph

This adds a new graph to the login_success page which shows the resident their place among their classmates for the current academic year, based on a projection.

This projection assumes the same "rate" of exams over the remaining days of the year. This does not take into account weekends or vacation, so it's an estimated projection.

There were necessary changes to functions in capricornLib in order to accomplish this change.

There are also changes to how tools/updateResCounts.php works so that it will function in "update mode" where it just chews on this academic year if called with a straight GET. You can easily pass arguments to it with query strings to process older data. Ex: http://localhost:4000/capricorn/tools/updateResCounts.php?startDate=2010&EndDate=2012. This makes it easier to update data on a server without editing to the php code on the server. This tool NEEDS to be incorporated into the login schema as this is currently a pretty big Denial of Service hole.

Please look over all of the commits carefully!!