aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/info_request_event.rb7
-rw-r--r--todo.txt8
2 files changed, 7 insertions, 8 deletions
diff --git a/app/models/info_request_event.rb b/app/models/info_request_event.rb
index b040f6320..3926780c7 100644
--- a/app/models/info_request_event.rb
+++ b/app/models/info_request_event.rb
@@ -20,7 +20,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: info_request_event.rb,v 1.44 2008-05-19 12:01:22 francis Exp $
+# $Id: info_request_event.rb,v 1.45 2008-05-19 21:28:07 francis Exp $
class InfoRequestEvent < ActiveRecord::Base
belongs_to :info_request
@@ -59,7 +59,7 @@ class InfoRequestEvent < ActiveRecord::Base
# Full text search indexing
acts_as_xapian :texts => [ :search_text_main, :title ],
:values => [ [ :created_at, 0, "created_at", :date ],
- [ :rss_at, 1, "rss_at", :date ],
+ [ :rss_at, 1, "rss_at", :number ], # XXX using number for lack of :datetime support in Xapian
[ :request, 2, "request_collapse", :string ]
],
:terms => [ [ :calculated_state, 'S', "status" ],
@@ -84,7 +84,8 @@ class InfoRequestEvent < ActiveRecord::Base
# response (e.g. successful) in which case we want to date sort by
# when the responses was described as being of the type. For other
# types, just use the create at date.
- self.last_described_at || self.created_at
+ date = self.last_described_at || self.created_at
+ return date.strftime("%Y%m%d%H%M%S") # format it here as no datetime support in Xapian's value ranges
end
def search_text_main
text = ''
diff --git a/todo.txt b/todo.txt
index 3cd7e2fe9..3b5a3d28c 100644
--- a/todo.txt
+++ b/todo.txt
@@ -31,9 +31,6 @@ BAILII - relationship with law courts, robots.txt ?
Next
====
-Block new messages to particular requests (for those we failed to spam protect
-in time)
-
Blog posts / Wikipedia articles about this request
e.g. http://socialreporter.wordpress.com/2008/04/14/costs-of-the-bbc-action-action-network/
http://reportr.net/2008/04/24/bbc-spent-6m-to-develop-the-iplayer/
@@ -46,11 +43,11 @@ separately
Bit confusing that sort order when you do "variety:successful" in query is by the date of creation.
Should probably use the described date a lot more often for dates. But not sure, hard to tell.
-Fix up the privacy policy
-
Advertise WDTK search queries on TWFY
Advertise alerts on end pages with WDTK
+Do some performance profiling
+
Later
=====
@@ -224,6 +221,7 @@ Quoting fixing TODO:
http://www.whatdotheyknow.com/request/235/response/513
http://www.whatdotheyknow.com/request/40/response/163 - Disclaimer
http://www.whatdotheyknow.com/request/265/response/688 - word wrapping
+ http://www.whatdotheyknow.com/request/180/response/482 (charset)
Sources of public bodies
========================