aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
* Remove unused stylesheetsLouise Crow2013-09-11-309/+0
|
* Fix typo.Louise Crow2013-09-11-1/+1
|
* Merge branch 'body-stats-prerelease' into rails-3-developLouise Crow2013-09-05-25/+74
|\
| * Save cached columns once updated.Louise Crow2013-09-05-2/+13
| |
| * Don't save a public body version when updating the stats.Louise Crow2013-09-05-1/+3
| |
| * Don't dirty the first_letter attribute when not changed.Louise Crow2013-09-05-3/+14
| |
| * Don't dirty every attribute in checking for whitespace.Louise Crow2013-09-05-18/+37
| | | | | | | | | | | | | | Check to see if the stripped version is different before setting it on the record. If we don't do this, the subsequent call to write_attribute in Globalize3 which uses attribute_will_change! means we're storing versions when there hasn't really been any change.
| * Don't re-index body when updating statsLouise Crow2013-09-05-0/+2
| |
| * Don't save versions of new counter cache columnsLouise Crow2013-09-05-1/+5
| |
* | Syntax fix.Louise Crow2013-09-05-1/+1
|/
* Put rake in silent mode when run from cronLouise Crow2013-09-05-1/+1
|
* Add update of body stats to example cron file.Louise Crow2013-09-05-0/+2
|
* Add a verbosity flag to public body stats taskLouise Crow2013-09-05-1/+3
|
* Add bash script for updating body stats from cron.Louise Crow2013-09-05-0/+4
|
* Remove obsolete comment.Louise Crow2013-09-05-1/+0
|
* Merge branch 'hotfix/0.13.0.2' into rails-3-developLouise Crow2013-09-04-1/+1
|\
| * Add a timeout to document conversion with wvtext - it can hang.0.13.0.2hotfix/0.13.0.2Louise Crow2013-09-04-1/+1
| |
* | Merge branch 'hotfix/0.13.0.1' into rails-3-developLouise Crow2013-09-04-1/+1
|\|
| * Fix wrong method name.hotfix/0.13.0.1Louise Crow2013-08-28-1/+1
| |
| * Merge branch 'release/0.13'0.13Louise Crow2013-08-20-2490/+1148
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: locale/bg/app.po locale/es/app.po locale/fi/app.po locale/fr/app.po locale/fr_CA/app.po locale/he_IL/app.po locale/hr/app.po locale/nb_NO/app.po locale/nl/app.po locale/pt_BR/app.po locale/ro_RO/app.po locale/sl/app.po locale/vi/app.po script/rails-post-deploy
| * | The mysociety debian repo only has 64-bit packagesGanesh Sittampalam2013-08-13-1/+1
| | |
| * | Merge branch 'master' of ssh://git.mysociety.org/data/git/public/alaveteliLouise Crow2013-08-05-5/+3
| |\ \
| | * \ Merge branch 'master' of ssh://git.mysociety.org/data/git/public/alaveteliIan Chard2013-08-01-14/+18
| | |\ \
| | * | | Run migrations before trying to install themeIan Chard2013-08-01-3/+1
| | | | |
| | * | | add wheezy package names as alternates for rdoc and irbIan Chard2013-08-01-2/+2
| | | | |
| * | | | Latest translations from transifex.0.12.0.4hotfix/0.12.0.4Louise Crow2013-08-05-1859/+18918
| | |/ / | |/| |
| * | | Update tests for changes to fixture file.hotfix/0.12.0.3Louise Crow2013-08-01-14/+18
| |/ /
| * | Try to convert csv files of public bodies into utf-8 before importing them.0.12.0.2hotfix/0.12.0.2Louise Crow2013-08-01-1/+2
| | |
* | | Merge remote-tracking branch 'origin/remove-old-i18n-patches' into ↵Louise Crow2013-09-04-105/+0
|\ \ \ | | | | | | | | | | | | rails-3-develop
| * | | Remove apparently unneeded I18n customizationMark Longair2013-08-28-105/+0
| | | | | | | | | | | | | | | | | | | | | | | | The tests still pass with this code removed, so remove it - if it's still needed, it should be readded with tests that would fail without.
* | | | Merge branch 'body-statistics' into rails-3-developLouise Crow2013-09-04-1/+1131
|\ \ \ \
| * | | | Don't include NULL column values in the statisticsMark Longair2013-08-20-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were already excluding graphs where all the data was NULL but it's possible by directly manipulating the database to have some values NULL and some non-NULL, so exclude any NULL values anyway.
| * | | | Add some caveats to the experimental statistics pageMark Longair2013-08-20-0/+38
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The statistics we're publishing are potentially subject to misinterpretation, so add some warnings about their experimental nature. Also, add a note crediting Mark Goodge for his useful work on statistics for WhatDoTheyKnow.
| * | | | Reduce the number of public bodies per graphMark Longair2013-08-20-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It seems to be difficult to customize the display of the tick labels (see the body-statistics-rotated-label branch for an as-yet-not-working alternative) so for the moment just reduce the number of public bodies shown per graph from 10 to 8.
| * | | | Add a config option to enable the public body statistics pageMark Longair2013-08-20-0/+10
| | | | |
| * | | | Refactor calculation of statisticsMark Longair2013-08-20-91/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move the calculation of statistics on public bodies into the PublicBody model, so that there's less logic in the controller.
| * | | | Refer to Javascript object members more idiomaticallyMark Longair2013-08-20-12/+12
| | | | | | | | | | | | | | | | | | | | | | | | | Crockford / JSLint suggests using dot notation for referring to members of objects where possible.
| * | | | Improve calculation of PublicBody statistics columnsMark Longair2013-08-20-19/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | On PublicBody, we don't need to update info_requests_count because that's already done with :counter_cache. On the other hand, info_requests_successful_count and info_requests_not_held_count can't be updated easily with counter_cache (since they need conditions to be attached). Instead we update them in post_save and post_destroy, as suggested here: http://blog.douglasfshearer.com/post/17495285851/custom-counter-cache-with-conditions This also adds tests to ensure that the after_(save|destroy) callbacks are called and that they modify the counts correctly.
| * | | | Add a test for the PublicBodyController statistics actionMark Longair2013-08-20-0/+52
| | | | |
| * | | | Add excanvas for support of graph-drawing on IE8 and beforeMark Longair2013-08-20-0/+2
| | | | | | | | | | | | | | | | | | | | This is as suggested in the Flot documentation.
| * | | | Make the minimum requests for statistics configurableMark Longair2013-08-20-1/+8
| | | | | | | | | | | | | | | | | | | | This adds the MINIMUM_REQUESTS_FOR_STATISTICS config option.
| * | | | Add a page with experimental statistics on public bodiesMark Longair2013-08-20-1/+375
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The statistics on the status of the requests to a particular public body are too slow to calculate on-the-fly, so this commit adds: * Extra columns on public_bodies to store counts of the successful, not held, and overdue request counts for each public body. * A rake task which should be run periodically to update the overdue request count column. If Javascript is not available, the summary statistics are shown as tables. If Javascript is available, graphs are drawn with Flot.
| * | | | Add a Flot extension for drawing axis labelsMark Longair2013-08-15-0/+451
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Suprisingly, there is not support in base Flot for drawing axis labels - one solution is to use the flot-axislabels plugin from: https://github.com/markrcote/flot-axislabels This plugin is also MIT-licensed.
| * | | | Add the flot Javascript graph drawing library version 0.8.1Mark Longair2013-08-15-0/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | From the full distribution, this only includes the basic libary and the component for plotting error bars. (Flot is MIT licensed.)
| * | | | Add the statistics2 gem to the bundleMark Longair2013-08-15-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | This is used for the calculation of the confidence intervals for public body statistics.
* | | | | Latest translations from Transifex.Louise Crow2013-09-03-1411/+8285
| | | | |
* | | | | Merge remote-tracking branch 'origin/admin-js-static' into rails-3-developLouise Crow2013-08-28-70/+4
|\ \ \ \ \
| * | | | | Serve admin.js as a static fileMark Longair2013-08-21-70/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | admin.js was being generated from a view so that the config variable ADMIN_PUBLIC_URL could be used to direct AJAX requests in the admin interface correctly. ADMIN_PUBLIC_URL was necessary for WhatDoTheyKnow when the admin interface was proxied over SSL, while the rest of the site was non-SSL. Now that the whole site is served over SSL, however, the proxy for the admin interface is not longer used and ADMIN_PUBLIC_URL / ADMIN_BASE_URL have been removed. As a result, admin.js is now being generated from a Rails view unnecessarily, and at some performance cost. This commit moves admin.coffee and admin.js to the public directory, so they will be served more efficiently. In addition, this commit removes admin.coffee / admin.js from public/javascripts/ where there was a second (and different) version that now appears to be unused.
* | | | | | Fix typo.Louise Crow2013-08-28-1/+1
| |_|/ / / |/| | | |
* | | | | Ignore db/development_structure.sqlLouise Crow2013-08-22-0/+1
| | | | | | | | | | | | | | | | | | | | We're not checking it in any more.