aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfrancis <francis>2008-03-14 09:47:30 +0000
committerfrancis <francis>2008-03-14 09:47:30 +0000
commitb3100fdff42a7e1d80843b45f917f84862480e23 (patch)
tree96fb895e07217f678bb1110bd366bfd31bd23427
parentd2f842f020277452d9a9e0321722dee6ddd39e60 (diff)
Not sure this makes a difference.
-rw-r--r--app/models/info_request.rb4
-rw-r--r--todo.txt17
-rw-r--r--vendor/plugins/acts_as_solr/lib/instance_methods.rb2
3 files changed, 7 insertions, 16 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb
index 3e469fbaa..d6c2e7bd3 100644
--- a/app/models/info_request.rb
+++ b/app/models/info_request.rb
@@ -22,7 +22,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: info_request.rb,v 1.63 2008-03-13 12:15:21 francis Exp $
+# $Id: info_request.rb,v 1.64 2008-03-14 09:47:31 francis Exp $
require 'digest/sha1'
@@ -112,8 +112,8 @@ class InfoRequest < ActiveRecord::Base
incoming_message.solr_destroy
end
end
- info_request.solr_up_to_date = true
$do_solr_index = false # disable indexing again while we save it, or else destroyed things get put back
+ info_request.solr_up_to_date = true
info_request.save!
$do_solr_index = true
end
diff --git a/todo.txt b/todo.txt
index 278eb7213..222be8578 100644
--- a/todo.txt
+++ b/todo.txt
@@ -6,22 +6,13 @@ Search:
Gah - test to see if it queries solr when new message arrives
-Date sorting
- - add public bodies and users
- - make updated at use last event date
+Search for successful requests now has bogus date order :( Doesn't fit in
+with paradigm of request / incoming message being separate objects.
+Perhaps we should be indexing events
Search by tags on public bodies
-cron jobs aren't running, some weirdness with run-with-lockfile
-
-Should we index by individual piece of correspondence, or by whole info requests?
- Advantages of individual:
- Ordinary search results link more directly to object
- Easy to alert when a new piece of correspondence occurs
- Advantages of whole info requests:
- Easier to alert to new correspondence on request containing keyword
- Shorter search results
- Syntax of filtering requests by type is clearer
+Check cron jobs are running
Send mail re university requests
http://www.whatdotheyknow.com/user/jennifer_jones#user-55
diff --git a/vendor/plugins/acts_as_solr/lib/instance_methods.rb b/vendor/plugins/acts_as_solr/lib/instance_methods.rb
index 0941d209d..c53df94f3 100644
--- a/vendor/plugins/acts_as_solr/lib/instance_methods.rb
+++ b/vendor/plugins/acts_as_solr/lib/instance_methods.rb
@@ -136,4 +136,4 @@ module ActsAsSolr #:nodoc:
end
end
-end \ No newline at end of file
+end