| Commit message (Collapse) | Author | Age | Lines |
|
|
|
| |
These should be provided by jquery-ui-rails.
|
| |
|
| |
|
|\ |
|
| |
| |
| |
| |
| |
| | |
Add spec to demonstrate that admin-added bodies aren't getting derived attributes.
Add a spec to demonstrate the problem setting the first letter for translations.
Demonstrate failure to update derived attributes in translations.
|
|\ \ |
|
| | | |
|
|\ \ \
| |_|/
|/| | |
|
|/ / |
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Prior to this, a name with commas in it plus email address
would have been treated as several separate addresses, some
of which would have just consisted of the bits of the
name between the commas, and would have been invalid.
|
|\ \ \
| | | |
| | | |
| | | | |
into develop
|
| |\ \ \ |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Calling InfoRequestEvent#is_X? loads the associated model from the
database. We don't need to do this to check what 'type' the event is.
This commit first checks whether there is an association_id – if there
is then we know it's that 'type'. If there's no association_id, call the
association to check whether one has been added but not yet persisted.
Only check association if the object is a new record. This avoids
checking the association on a persisted record when we know it isn't
that type of event due to the database record not existing.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
InfoRequestEvent#incoming_message_selective_columns ends up returning
the same thing.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Just check if there's an associated InfoRequest.
user system total real
old 0.010000 0.000000 0.010000 ( 0.012269)
new 0.000000 0.000000 0.000000 ( 0.000101)
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
The existing track is already found in PublicBodyController#show.
Really, the partial shouldn't attempt to find one in the fallback case,
but keeping for now for compatibility.
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Previously loaded all PublicBodyHeading and associated PublicBodyCategory
records. Now only loads the PublicBodyCategory records that relate to the
PublicBody.
user system total real
old 0.320000 0.000000 0.320000 ( 0.356155)
new 0.010000 0.000000 0.010000 ( 0.010077)
|
| | | | |
| | | | |
| | | | |
| | | | | |
Types should be CamelCase
|
| | | | |
| | | | |
| | | | |
| | | | | |
No point loading all results if we're only ever going to return the first.
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Easier to understand
Removes explicit return
|
| | | | |
| | | | |
| | | | |
| | | | | |
Use pluck to return only public_body_id instead of filtering in Ruby
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| | | | | |
|
| |\ \ \ \
| | |_|/ /
| |/| | | |
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Ruby can natively decode uuencoded text with String#unpack. [1] This
avoids the uuencode program dependency and avoids writing tempfiles.
The actual implementation is taken from mail [2]. The UnixToUnix module
is not available in our bundled version of mail.
This commit includes a spec to illustrate the failure of uuencode(1) to
decode the particular attachment in incoming-request-bad-uuencoding-2.
email. Parsing with uuencode returns the following error:
External Command: Error from command "uudecode -o /dev/stdout
/tmp/foiuu20150530-14811-u6j936":
uudecode: /tmp/foiuu20150530-14811-u6j936: No `end' line
The file _is_ created and appears to be OK, but the exit code is 1. This
causes AlaveteliExternalCommand to fail and return nil.
See #2508 [3] for the bug report.
[1] http://ruby-doc.org/core-1.8.7/String.html#method-i-unpack
[2] https://github.com/mikel/mail/blob/bc4c9bb9321e9d36a678692f2f562d3146b63f78/lib/mail/encodings/unix_to_unix.rb#L7
[3] https://github.com/mysociety/alaveteli/issues/2508
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
each instead of for
remove self
avoid explicit return
|
| | | | |
| | | | |
| | | | | |
Inspired by https://github.com/mikel/mail/commit/bc4c9bb9321e9d36a678692f2f562d3146b63f78
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
|
|/ / / /
| | | |
| | | |
| | | | |
Fixes #2507
|
|\ \ \ \ |
|
| | |/ /
| |/| | |
|
|\ \ \ \
| |/ / /
|/| / /
| |/ / |
|
| | | |
|