| Commit message (Collapse) | Author | Age | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
The rack-cache gem version used by Rails (and turned on by default in
3.1) has a bug using memcached backend and the backend is unavailable.
Note that we could just add the git version with the relevant pull
request merged to the Gemfile if we wanted to keep rake-cache on, but it
seems like Varnish should really be doing the job of whole page caching
better for us.
|
|
|
|
| |
Also removes old temp tasks.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| |
| | |
ssh://git.mysociety.org/data/git/public/alaveteli into rails-3-develop
|
| | |
|
| |\
| | |
| | |
| | |
| | | |
This has already been cherry-picked into the wdtk branch, but
it should also be merged into rails-3-develop
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
On WDTK, /body/all-authorities was using lots of memory - this
commit reduces that by (a) fetching the public bodies in batches,
rather than keeping them all in memory at one time and
(b) writing the CSV to a file and then returning it with
X-Sendfile (or equivalent), rather than returning the whole file
from memory with send_data.
There's a FIXME to do with the layout of download directories; if
that's changed, the example nginx config, etc. will need to be
updated too.
This commit also adds a basic test for reasonable CSV being
returned and switches from FasterCSV to CSV in order to fix this
NotImplementedError under Ruby 1.9:
Please switch to Ruby 1.9's standard CSV library.
It's FasterCSV plus support for Ruby 1.9's m17n encoding engine.
(The CSV version seems to still work fine under 1.8.7.)
|
| |\ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
We're trying to switch to an upstream version of globalize, which now
has Henare's change to allowed blank values without them being
converted to nil - however, there is another intermediate change that
was introduced which means that the name is only written back to the
original table if the locale matches the default locale. This is
described in more depth here:
https://github.com/globalize/globalize/pull/183
This change broke the make_single_language_example helper, but this
commit fixes that by also setting the default locale before creating
the example public bodies.
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Although the I18n library has an I18n.with_locale helper, there's
no equivalent for I18n.default_locale. This method will make a
couple of our tests clearer and less brittle.
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | | |
|
| | | | |
|
|/ / / |
|
|/ / |
|
| |
| |
| |
| | |
This is the commit where @henares' pull request was merged. This is a quick fix, but I think we want to see if we can use the globalize 3.0.1 gem with minimal fixes. It causes tests to fail at the moment, I think because we still have translated attributes in our public_bodies table (and not null constraints at the databse level on at least the name attribute).
|
| | |
|
| |
| |
| |
| | |
Update our session-stripping code.
|
|\ \ |
|
| | | |
|
| | | |
|
| | | |
|
| |/
| |
| |
| |
| | |
Note that this includes some errors in the Welsh translation, which
I will fix in a subsequent commit.
|
|\|
| |
| |
| | |
ssh://git.mysociety.org/data/git/public/alaveteli into rails-3-develop
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
As suggested in the release manager's checklist, this commit
introduces the results of re-pulling from transifex:
tx pull -a -f
... and cleaning the .po files again:
bundle exec rake gettext:clean
... which removes the fuzzy strings from the repository.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The latest updates had several problems, which are fixed
in this commit, e.g.
* Malformed links
* Broken uses of variables (e.g. translating the 'date' in
'{{date}}')
Additionally, I've stripped unnecessary space around many HTML
tags that may cause the text rendering to look odd.
|
| | |
|
| | |
|
| | |
|
| |\ |
|
| | |
| | |
| | |
| | |
| | | |
This is for the case where there are no results and the user was
explicitly searching for authorities.
|
| | | |
|
| | |
| | |
| | |
| | |
| | |
| | | |
The context here is that bodies have merely been included in the search
- it hasn't been explicitly restricted to bodies. So the links don't
really make sense.
|
| | |
| | |
| | |
| | | |
Contributes to #1118.
|
| | |
| | |
| | |
| | |
| | | |
This is the template used when the user is searching for a public body
specifically to make a request to.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The transifex-client version 0.9.1 rejects the transifex.net URL,
with the following error:
CertificateError: hostname 'www.transifex.net' doesn't match
either of '*.transifex.com', 'transifex.com'
... so update it to transifex.com.
|
| |\ \ |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Without this setting, the PostgreSQL user still has to be a superuser
for the tests to work without constraint disabling errors.
|