diff options
author | Francis Irving <francis@mysociety.org> | 2010-10-20 16:26:21 +0100 |
---|---|---|
committer | Francis Irving <francis@mysociety.org> | 2010-10-20 16:26:21 +0100 |
commit | 4f3a1a70488ab751663125c5cd2e1a376c064f5c (patch) | |
tree | c5a36adab1e9138a1d88e0f97934a3d7949f3d77 | |
parent | 5434125e3ffcd05a3c3963537f16243742185b57 (diff) |
Send displayable version of status
-rw-r--r-- | app/models/info_request.rb | 1 | ||||
-rw-r--r-- | app/models/info_request_event.rb | 1 | ||||
-rw-r--r-- | todo.txt | 1 |
3 files changed, 2 insertions, 1 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb index f35ef7f7d..9c779c55c 100644 --- a/app/models/info_request.rb +++ b/app/models/info_request.rb @@ -966,6 +966,7 @@ public :created_at => self.created_at, :updated_at => self.updated_at, :described_state => self.described_state, + :display_status => self.display_status, :awaiting_description => self.awaiting_description , :prominence => self.prominence, :law_used => self.law_used, diff --git a/app/models/info_request_event.rb b/app/models/info_request_event.rb index a6ef2b58c..329c10504 100644 --- a/app/models/info_request_event.rb +++ b/app/models/info_request_event.rb @@ -377,6 +377,7 @@ class InfoRequestEvent < ActiveRecord::Base # params_yaml has possibly sensitive data in it, don't include it :created_at => self.created_at, :described_state => self.described_state, + :display_status => self.display_status, :calculated_state => self.calculated_state, :last_described_at => self.last_described_at, :incoming_message_id => self.incoming_message_id, @@ -117,7 +117,6 @@ JSON API: Pagination on the Atom feed JSON, so you can get later pages, and/or choose > 25 items Information about attachments in event JSON Allow Javascript callbacks (JSONP) - Displayable status (i.e. text not code) as parameter on info requests Spelling correction not working if you search for "comission", as described here: http://comments.gmane.org/gmane.comp.search.xapian.general/8384 |