{"action":"closed","issue":{"url":"https://api.github.com/repos/cybsafe/phishtray/issues/122","repository_url":"https://api.github.com/repos/cybsafe/phishtray","labels_url":"https://api.github.com/repos/cybsafe/phishtray/issues/122/labels{/name}","comments_url":"https://api.github.com/repos/cybsafe/phishtray/issues/122/comments","events_url":"https://api.github.com/repos/cybsafe/phishtray/issues/122/events","html_url":"https://github.com/cybsafe/phishtray/issues/122","id":370055992,"node_id":"MDU6SXNzdWUzNzAwNTU5OTI=","number":122,"title":"Model the Task scoring & evaluation.","user":{"login":"webbo89","id":1236578,"node_id":"MDQ6VXNlcjEyMzY1Nzg=","avatar_url":"https://avatars2.githubusercontent.com/u/1236578?v=4","gravatar_id":"","url":"https://api.github.com/users/webbo89","html_url":"https://github.com/webbo89","followers_url":"https://api.github.com/users/webbo89/followers","following_url":"https://api.github.com/users/webbo89/following{/other_user}","gists_url":"https://api.github.com/users/webbo89/gists{/gist_id}","starred_url":"https://api.github.com/users/webbo89/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/webbo89/subscriptions","organizations_url":"https://api.github.com/users/webbo89/orgs","repos_url":"https://api.github.com/users/webbo89/repos","events_url":"https://api.github.com/users/webbo89/events{/privacy}","received_events_url":"https://api.github.com/users/webbo89/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-15T08:39:01Z","updated_at":"2018-10-24T10:03:04Z","closed_at":"2018-10-24T10:03:04Z","author_association":"CONTRIBUTOR","body":"\r\n## Brief:\r\n\r\nResearchers want to apply scores to the responses that users choose.\r\n\r\n\r\n| Email                 | Response     | Task | Score |\r\n|-----------------------|--------------|------|-------|\r\n| You've won a holiday! | Yes please   | A    | 1     |\r\n| You've won a holiday  | No thank you | A    | 2     |\r\n| Urgent request        | Yes          | B    | 5     |\r\n\r\n\r\n## Requirement:\r\n\r\nWhen a user clicks to reply to an email, we need to score the action based on what they chose.\r\n\r\n* A new model called `Tasks` which should have fields of:\r\n    * Name             (string)\r\n    * score_threshhold (integer)\r\n    * debrief_over_threshold (textfield)\r\n    * debrief_under_threshold (textfield)\r\n\r\n* In Django Admin, for ExerciseEmailReply, we associate by selecting a`Task` with an integer value. An ExerciseEmailReply can have zero or many Tasks associated to it.\r\n* Produce a function which sums the scores for each task. Input: ExerciseEmailReply.id Output: Task & Score.\r\n* Please test the evaluation function with FactoryBoy https://factoryboy.readthedocs.io and see examples in https://github.com/cybsafe/phishtray/blob/master/exercise/tests/test_models.py\r\neg \r\n```\r\n\r\n       def evaluate_reply(4)\r\n \r\n           return [Task:Motivation,Score 23]\r\n```\r\n\r\n"}}
{"actor":{"display_login":"webbo89"}}