| Commit message (Collapse) | Author | Age | Lines |
|
|
|
|
|
| |
Main intent here is to be more explicit about what form you're
getting the attachment body in - valid UTF-8 or binary, and has it
been cleaned up in order to be UTF-8?
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\ |
|
| | |
|
| | |
|
| | |
|
|\ \
| | |
| | |
| | | |
'openaustralia_github/286-public-body-show-visible-requests' into rails-3-develop
|
| |/
| |
| |
| | |
Fixes #286
|
|/ |
|
|\ |
|
| |
| |
| |
| |
| |
| | |
This is important under ruby 1.9 in order to determine the
encoding that will be used for new strings created in the code in
the file.
|
| |
| |
| |
| |
| |
| | |
They're duplicated on /admin/summary and a bit slow [1].
[1] https://wiki.postgresql.org/wiki/Slow_Counting
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Removes the following bullet warning:
N+1 Query detected
PublicBody => [:translations]
Add to your finder: :includes => [:translations]
N+1 Query method call stack
/home/vagrant/alaveteli/app/helpers/link_to_helper.rb:70:in
`public_body_url'
/home/vagrant/alaveteli/app/helpers/link_to_helper.rb:74:in
`public_body_path'
/home/vagrant/alaveteli/app/helpers/admin_helper.rb:28:in
`public_body_both_links'
/home/vagrant/alaveteli/app/views/admin_general/index.html.erb:148:in
`_app_views_admin_general_index_html_erb__1495531968_70090875267640'
/home/vagrant/alaveteli/app/views/admin_general/index.html.erb:145:in
`each'
/home/vagrant/alaveteli/app/views/admin_general/index.html.erb:145:in
`_app_views_admin_general_index_html_erb__1495531968_70090875267640'
/home/vagrant/alaveteli/app/controllers/application_controller.rb:111:in
`record_memory'
/home/vagrant/alaveteli/lib/whatdotheyknow/strip_empty_sessions.rb:14:in
`call'
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Removes the following bullet warning:
N+1 Query detected
IncomingMessage => [:raw_email]
Add to your finder: :includes => [:raw_email]
N+1 Query method call stack
/home/vagrant/alaveteli/app/models/incoming_message.rb:115:in
`parse_raw_email!'
/home/vagrant/alaveteli/app/models/incoming_message.rb:150:in `sent_at'
/home/vagrant/alaveteli/app/views/admin_general/index.html.erb:54:in
`_app_views_admin_general_index_html_erb___48164640_70115534664600'
/home/vagrant/alaveteli/app/views/admin_general/index.html.erb:42:in
`_app_views_admin_general_index_html_erb___48164640_70115534664600'
/home/vagrant/alaveteli/app/controllers/application_controller.rb:111:in
`record_memory'
/home/vagrant/alaveteli/lib/whatdotheyknow/strip_empty_sessions.rb:14:in
`call'
Improved view rendering times:
Before: Completed 200 OK in 2813.9ms (Views: 1697.3ms | ActiveRecord: 9.5ms)
Completed 200 OK in 2548.6ms (Views: 1838.2ms | ActiveRecord: 8.2ms)
After: Completed 200 OK in 2185.9ms (Views: 276.0ms | ActiveRecord: 7.5ms)
Completed 200 OK in 2216.3ms (Views: 100.3ms | ActiveRecord: 7.6ms)
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Removes the following bullet warnings:
N+1 Query detected
PublicBodyChangeRequest => [:public_body]
Add to your finder: :includes => [:public_body]
N+1 Query method call stack
/home/vagrant/alaveteli/app/models/public_body_change_request.rb:65:in
`get_public_body_name'
/home/vagrant/alaveteli/app/views/admin_general/_change_request_summary.html
.erb:8:in
`_app_views_admin_general__change_request_summary_html_erb__490351475_701155
42681500'
/home/vagrant/alaveteli/app/views/admin_general/index.html.erb:225:in
`_app_views_admin_general_index_html_erb___48164640_70115537288900'
/home/vagrant/alaveteli/app/views/admin_general/index.html.erb:224:in
`_app_views_admin_general_index_html_erb___48164640_70115537288900'
/home/vagrant/alaveteli/app/controllers/application_controller.rb:111:in
`record_memory'
/home/vagrant/alaveteli/lib/whatdotheyknow/strip_empty_sessions.rb:14:in
`call'
N+1 Query detected
PublicBodyChangeRequest => [:user]
Add to your finder: :includes => [:user]
N+1 Query method call stack
/home/vagrant/alaveteli/app/models/public_body_change_request.rb:57:in
`get_user_name'
/home/vagrant/alaveteli/app/views/admin_general/_change_request_summary.html
.erb:46:in
`_app_views_admin_general__change_request_summary_html_erb__490351475_701155
42681500'
/home/vagrant/alaveteli/app/views/admin_general/index.html.erb:225:in
`_app_views_admin_general_index_html_erb___48164640_70115537288900'
/home/vagrant/alaveteli/app/views/admin_general/index.html.erb:224:in
`_app_views_admin_general_index_html_erb___48164640_70115537288900'
/home/vagrant/alaveteli/app/controllers/application_controller.rb:111:in
`record_memory'
/home/vagrant/alaveteli/lib/whatdotheyknow/strip_empty_sessions.rb:14:in
`call'
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Removes the following Bullet warnings:
N+1 Query detected
PublicBodyChangeRequest => [:public_body]
Add to your finder: :includes => [:public_body]
N+1 Query method call stack
/home/vagrant/alaveteli/app/models/public_body_change_request.rb:65:in
`get_public_body_name'
/home/vagrant/alaveteli/app/views/admin_general/_change_request_summary.html
.erb:8:in
`_app_views_admin_general__change_request_summary_html_erb__490351475_701155
42681500'
/home/vagrant/alaveteli/app/views/admin_general/index.html.erb:191:in
`_app_views_admin_general_index_html_erb___48164640_70115537288900'
/home/vagrant/alaveteli/app/views/admin_general/index.html.erb:190:in
`_app_views_admin_general_index_html_erb___48164640_70115537288900'
/home/vagrant/alaveteli/app/controllers/application_controller.rb:111:in
`record_memory'
/home/vagrant/alaveteli/lib/whatdotheyknow/strip_empty_sessions.rb:14:in
`call'
N+1 Query detected
PublicBodyChangeRequest => [:user]
Add to your finder: :includes => [:user]
N+1 Query method call stack
/home/vagrant/alaveteli/app/models/public_body_change_request.rb:57:in
`get_user_name'
/home/vagrant/alaveteli/app/views/admin_general/_change_request_summary.html
.erb:46:in
`_app_views_admin_general__change_request_summary_html_erb__490351475_701155
42681500'
/home/vagrant/alaveteli/app/views/admin_general/index.html.erb:191:in
`_app_views_admin_general_index_html_erb___48164640_70115537288900'
/home/vagrant/alaveteli/app/views/admin_general/index.html.erb:190:in
`_app_views_admin_general_index_html_erb___48164640_70115537288900'
/home/vagrant/alaveteli/app/controllers/application_controller.rb:111:in
`record_memory'
/home/vagrant/alaveteli/lib/whatdotheyknow/strip_empty_sessions.rb:14:in
`call'
|
|/
|
|
|
|
| |
user system total real
old 0.050000 0.020000 0.070000 ( 0.088856)
new 0.020000 0.000000 0.020000 ( 0.018556)
|
| |
|
|\ |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Whilst this is a good security precaution in general, we want people to
display these widgets in iframes on other sites.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Eliminates the following Bullet warnings:
2015-04-21 11:42:26[WARN] /categorise/play
N+1 Query detected
user: vagrant
InfoRequest => [:public_body]
Add to your finder: :includes => [:public_body]
N+1 Query method call stack
/home/vagrant/alaveteli/app/views/request/_request_listing_single.html.erb:16:in `_app_views_request__request_listing_single_html_erb__949797960_70091194573720'
/home/vagrant/alaveteli/app/views/request_game/play.html.erb:46:in `_app_views_request_game_play_html_erb___279307748_70091194720080'
/home/vagrant/alaveteli/app/views/request_game/play.html.erb:45:in `each'
/home/vagrant/alaveteli/app/views/request_game/play.html.erb:45:in `_app_views_request_game_play_html_erb___279307748_70091194720080'
/home/vagrant/alaveteli/app/controllers/application_controller.rb:111:in `record_memory'
/home/vagrant/alaveteli/lib/whatdotheyknow/strip_empty_sessions.rb:14:in `call'
2015-04-21 11:42:26[WARN] /categorise/play
N+1 Query detected
user: vagrant
InfoRequest => [:user]
Add to your finder: :includes => [:user]
N+1 Query method call stack
/home/vagrant/alaveteli/app/views/request/_request_listing_single.html.erb:17:in `_app_views_request__request_listing_single_html_erb__949797960_70091194573720'
/home/vagrant/alaveteli/app/views/request_game/play.html.erb:46:in `_app_views_request_game_play_html_erb___279307748_70091194720080'
/home/vagrant/alaveteli/app/views/request_game/play.html.erb:45:in `each'
/home/vagrant/alaveteli/app/views/request_game/play.html.erb:45:in `_app_views_request_game_play_html_erb___279307748_70091194720080'
/home/vagrant/alaveteli/app/controllers/application_controller.rb:111:in `record_memory'
/home/vagrant/alaveteli/lib/whatdotheyknow/strip_empty_sessions.rb:14:in `call'
|
|\ \ \
| |/ /
|/| |
| | | |
into rails-3-develop
|
| | |
| | |
| | |
| | | |
Fixes #2358
|
| |/ |
|
|/
|
|
| |
In practice, it's just confusing if you've been away from the site.
|
| |
|
|
|
|
| |
Needs to be restored as part of https://github.com/mysociety/alaveteli/issues/2137.
|
|\ |
|
| |
| |
| |
| | |
Closes Â#434.
|
| |
| |
| |
| |
| | |
Fixes submission of form containing both existing and new
translations
|
| | |
|
|/ |
|
| |
|