diff options
-rw-r--r-- | app/models/info_request.rb | 13 | ||||
-rwxr-xr-x | script/multiple-solr-query | 10 | ||||
-rw-r--r-- | todo.txt | 24 |
3 files changed, 33 insertions, 14 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index 775138b84..5901dd28b 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.85 2008-04-14 14:46:48 francis Exp $ +# $Id: info_request.rb,v 1.86 2008-04-15 17:22:34 francis Exp $ require 'digest/sha1' @@ -127,6 +127,17 @@ class InfoRequest < ActiveRecord::Base ) end + # For debugging + def InfoRequest.profile_search(query) + t = Time.now.usec + for i in (1..10) + t = Time.now.usec - t + secs = t / 1000000.0 + STDOUT.write secs.to_s + " query " + i.to_s + "\n" + results = InfoRequest.full_search(query, "created_at desc", 10, 1, false).results + end + end + public # When name is changed, also change the url name def title=(title) diff --git a/script/multiple-solr-query b/script/multiple-solr-query new file mode 100755 index 000000000..17c80e8a7 --- /dev/null +++ b/script/multiple-solr-query @@ -0,0 +1,10 @@ +#!/bin/bash + +set -x + +# Test solr multiple times + +LOC=`dirname $0` + +$LOC/runner 'InfoRequest.profile_search("'$1'")' + @@ -1,5 +1,8 @@ Isn't showing admin things that haven't been touched for 2 weeks or whatever +Check fixed: Michael Turner's name has a space in it - strip them automatically +(can see on the write message to page) + FOI requests to use to test it ============================== @@ -30,17 +33,9 @@ BAILII - relationship with law courts, robots.txt ? Next ==== -Put user rather than import_csv - -Link more clearly to full request and next/previous correspondence (ask Matthew) - Perhaps always redirect to internal # links from the /response/ pages -e.g. http://www.flickr.com/groups/central/discuss/72157604494352123/72157604515433851/ - Check date order here http://www.whatdotheyknow.com/track/feed/5 -Fix search to deal with overdue message query that Tomski asks for - Don't let people track their own requests? Let you change feeds from email to RSS @@ -56,18 +51,21 @@ Things to track: - new requests with keyword - successful responses +Fix search to deal with overdue message query that Tomski asks for + Later ===== +Put user rather than import_csv + +Link more clearly to full request and next/previous correspondence (ask Matthew) + Perhaps always redirect to internal # links from the /response/ pages +e.g. http://www.flickr.com/groups/central/discuss/72157604494352123/72157604515433851/ + Get Atom highlighting to include stylesheet for yellow somehow Does Atom infer base URLs from included HTML or do we need to be explicit? Add RSS icons -Michael Turner's name has a space in it - strip them automatically (can see on the write message to page) - -Now that we have LinkToHelper in mailer *objects* (not classes) call out to it -everywhere that it should - "Some of the information" option should give you choice of complaining if you like. Use :order in the info_request.events belongs_to clause instead of each time it is queried |