diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-09-11 09:49:37 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-09-11 09:49:37 +0100 |
commit | c6a06ce6cf09946f661d870dfaed85dfc0d6efd0 (patch) | |
tree | f2c7d8686e9b42149a0e1b667f06fa1a1eba092f /app/controllers/request_controller.rb | |
parent | 527f577fcec629e3a39072a144ef96d31b193f8b (diff) | |
parent | 927e97c57725a424eb4fb25f3f4a1a758e9b7728 (diff) |
Merge branch 'feature/faster-request-game' into develop
Diffstat (limited to 'app/controllers/request_controller.rb')
-rw-r--r-- | app/controllers/request_controller.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/controllers/request_controller.rb b/app/controllers/request_controller.rb index 6e983a014..268ecc73a 100644 --- a/app/controllers/request_controller.rb +++ b/app/controllers/request_controller.rb @@ -422,19 +422,19 @@ class RequestController < ApplicationController old_described_state = @info_request.described_state @info_request.set_described_state(params[:incoming_message][:described_state]) - # If you're not the *actual* requester owner. e.g. you are playing the + # If you're not the *actual* requester. e.g. you are playing the # classification game, or you're doing this just because you are an # admin user (not because you also own the request). if !@info_request.is_actual_owning_user?(authenticated_user) - # Log what you did, for classification game score purposes. We - # don't log if you were the requester XXX This is presumably so you - # don't score for classifying your own requests. Could instead - # always log and filter at display time. - @info_request.log_event("status_update", + # Log the status change by someone other than the requester + event = @info_request.log_event("status_update", { :user_id => authenticated_user.id, :old_described_state => old_described_state, :described_state => @info_request.described_state, }) + # Create a classification event for league tables + RequestClassification.create!(:user_id => authenticated_user.id, + :info_request_event_id => event.id) # Don't give advice on what to do next, as it isn't their request RequestMailer.deliver_old_unclassified_updated(@info_request) if !@info_request.is_external? |