aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/models/info_request.rb7
-rw-r--r--app/models/outgoing_message.rb4
-rw-r--r--app/views/request_mailer/followup.rhtml2
-rw-r--r--todo.txt53
4 files changed, 54 insertions, 12 deletions
diff --git a/app/models/info_request.rb b/app/models/info_request.rb
index 847a30cc0..6f7c5d6d3 100644
--- a/app/models/info_request.rb
+++ b/app/models/info_request.rb
@@ -17,7 +17,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.27 2008-01-14 12:22:36 francis Exp $
+# $Id: info_request.rb,v 1.28 2008-01-21 10:20:34 francis Exp $
require 'digest/sha1'
@@ -85,6 +85,11 @@ public
end
# Work out what the situation of the request is
+ # awaiting - awaiting a response
+ # overdue - response is overdue
+ # information - has response containing information
+ # none - received a response, but no information XXX
+ # unknown - received a response that hasn't been classified
def calculate_status
# Extract aggregate information for any incoming messages all together
contains_information = false
diff --git a/app/models/outgoing_message.rb b/app/models/outgoing_message.rb
index fdd950ba5..9eacab767 100644
--- a/app/models/outgoing_message.rb
+++ b/app/models/outgoing_message.rb
@@ -21,7 +21,7 @@
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: outgoing_message.rb,v 1.21 2008-01-10 19:59:33 francis Exp $
+# $Id: outgoing_message.rb,v 1.22 2008-01-21 10:20:34 francis Exp $
class OutgoingMessage < ActiveRecord::Base
belongs_to :info_request
@@ -111,7 +111,7 @@ class OutgoingMessage < ActiveRecord::Base
end
# Returns the text to quote the original message when sending this one
- def get_quoted_part_of_followup
+ def quoted_part_to_append_to_email
if self.message_type == 'followup' && !self.incoming_message_followup.nil?
return "\n\n-----Original Message-----\n\n" + self.incoming_message_followup.get_body_for_quoting + "\n"
else
diff --git a/app/views/request_mailer/followup.rhtml b/app/views/request_mailer/followup.rhtml
index 3c37b2763..f98a0ea3f 100644
--- a/app/views/request_mailer/followup.rhtml
+++ b/app/views/request_mailer/followup.rhtml
@@ -8,4 +8,4 @@ location: <%= main_url(request_url(@info_request)) %>
Sent using GovernmentSpy, a project of UKCOD, registered charity number 1076346.
-------------------------------------------------------------------
-<%= @outgoing_message.get_quoted_part_of_followup.strip %>
+<%= @outgoing_message.quoted_part_to_append_to_email.strip %>
diff --git a/todo.txt b/todo.txt
index 89c6333c3..94302797e 100644
--- a/todo.txt
+++ b/todo.txt
@@ -16,13 +16,57 @@ BAILII - relationship with law courts, robots.txt ?
"Fundamental Savings Review" - Tom's friend
+States
+======
+
+What I *really* care about is the state of the request for use in the
+user interface, e.g. search results, RSS feeds.
+
+- Awaiting response
+- Response overdue
+- Awaiting follow up information / clarification from requester
+ (same as awaiting categorisation from requester?)
+- Responses contain no useful information XXX exact wording matters
+- Responses contain some useful information (XXX RSS needs to know when more)
+- Response contains all information requested
+
+State to ask about individual messages
+
+Please choose what this response is.
+ a) an acknowledgement of message received / forwarded on
+ b) asking for clarification about your request
+ c) a response containing information
+ e) a rejection notice
+
+Brainstorm of things to say if c):
+
+ How satisfied are you that your original request has been answered?
+ a) Quite satisfied, they've sent most of the information, or equivalent information.
+ b) Neutral, they sent some useful information, but not all.
+ c) Dissatisfied, they didn't send the relevant information.
+
+ How much of the information you originally requested have you recieved?
+ a) All of it.
+ b) Some of it.
+ c) None of it.
+
+ Have you now got all the info you originally requested
+ a) Yes, pretty well.
+ b) No
+
+ Are you yet satisfied that your original request has been answered?
+ a) Yes, I now have (most) of the information I wanted from my original request.
+ b) I received some of the information, or some related useful information.
+ c) I have received
+ d) My request was explicitly rejected
+
+
Next
====
Followups:
- link to the follow up form, or embed in bottom of main request page
- don't show classify link on /response/ page
- - rename get_quoted_part_of_followup
- Copy the To: for followups properly (including name not just email)
Alert somewhere if working days table not up to date
@@ -92,13 +136,6 @@ Check act to see if can use pseudonym for FOI request?
Later
=====
-Workflow:
-a) a confirmation of message received / forwarded on
-b) a request for clarification
-c) a response containing all the information you requested
-d) a response containing some of the information
-e) a rejection notice
-
Synthesise these tips into our handful of snappy snappy bullet points
http://community.foe.co.uk/tools/right_to_know/tips.html