aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeLines
...
| | * | | | | 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.
* | | | | | Merge branch 'feature/restore-unobtrusive-js' into rails-3-developLouise Crow2013-08-22-9268/+400
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Merge branch 'feature/restore-unobtrusive-js' of ↵Louise Crow2013-08-22-0/+0
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | ssh://git.mysociety.org/data/git/public/alaveteli into feature/restore-unobtrusive-js
| | * | | | | Include unobtrusive js in the admin layout, where we use the :confirm option ↵Louise Crow2013-08-12-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | of the submit_tag helper. Fixes #1042.
| | * | | | | Add unobtrusive javascript gem to provide the js side of Rails built-in ↵Louise Crow2013-08-12-0/+398
| | | | | | | | | | | | | | | | | | | | | | | | | | | | helpers using the jquery framework rather than prototype.
| | * | | | | Remove prototype javascript files. We don't seem to be using them, we seem ↵Louise Crow2013-08-12-9265/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | to be using jquery.
| * | | | | | Add confirmation to outgoing messsage destroy.Louise Crow2013-08-22-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes #1053.
| * | | | | | Include unobtrusive js in the admin layoutLouise Crow2013-08-22-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | We use the :confirm option of the submit_tag helper. Fixes #1042.
| * | | | | | Add unobtrusive javascript gem.Louise Crow2013-08-22-0/+398
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is to provide the js side of Rails built-in helpers using the jquery framework rather than prototype.
| * | | | | | Remove prototype javascript files.Louise Crow2013-08-22-9265/+0
| |/ / / / / | | | | | | | | | | | | | | | | | | We don't seem to be using them, we seem to be using jquery.
* | | | | | Merge branch 'release/0.13' into rails-3-developLouise Crow2013-08-20-11/+34
|\ \ \ \ \ \ | | |_|_|/ / | |/| | | |
| * | | | | Mark all events for the fixed requests as needing a reindex.release/0.13Louise Crow2013-08-20-9/+16
| | | | | |
| * | | | | Handle case of nil user_idLouise Crow2013-08-20-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | When status was updated by a script.
| * | | | | Release notes for 0.13Louise Crow2013-08-15-0/+16
| | | | | |
| * | | | | Bump application version.Louise Crow2013-08-15-1/+1
| | | | | |
| * | | | | Merge branch 'rails-3-develop' into release/0.13Louise Crow2013-08-15-36/+151
| |\ \ \ \ \ | | | |/ / / | | |/| | |
| * | | | | Merge branch 'rails-3-develop' into release/0.13Louise Crow2013-08-12-2153/+36
| |\ \ \ \ \
* | \ \ \ \ \ Merge remote-tracking branch ↵Louise Crow2013-08-20-8/+5
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | 'openaustralia_github/fix-production-diagnostic-messages' into rails-3-develop
| * | | | | | | Make method name clearerHenare Degan2013-08-10-3/+3
| | | | | | | |
| * | | | | | | Don't show diagnostic messages when request is simply localHenare Degan2013-08-10-6/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes the scenario when Alaveteli is behind a proxy in production Resolves #1039
* | | | | | | | Add libxml2-dev and libxslt-devLouise Crow2013-08-19-0/+2
| |_|_|/ / / / |/| | | | | | | | | | | | | | | | | | | | They are depended on by nokogiri, depended on in turn by webrat.
* | | | | | | Merge branch 'feature/further-request-event-fixes' into rails-3-developLouise Crow2013-08-15-14/+126
|\ \ \ \ \ \ \
| * | | | | | | Comments on described_state and calculated_stateLouise Crow2013-08-15-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add some notes on the logic and expectations around InfoRequest.described_state and calculate_status and InfoRequestEvent.described_state and calculated_state.
| * | | | | | | Add task for cleaning up bad request histories.Louise Crow2013-08-15-0/+30
| | | | | | | |
| * | | | | | | Set the calculated state on external requests.Louise Crow2013-08-15-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Set to 'waiting_response' on creation, to match the displayed state.