Skip to content

Commit

Permalink
Add instructions for changing degree grades
Browse files Browse the repository at this point in the history
  • Loading branch information
elceebee committed Jun 19, 2024
1 parent 513122c commit 4864a00
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion docs/support_playbook.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,8 +194,32 @@ ApplicationQualification.find(QUALIFICATION_ID).update!(
**Change grade**
***UK Degrees***
In addition to changing the `grade`, you also need to update:
- `grade_hesa_code`,
- `degree_grade_uuid`
- `predicted_grade`
For UK degrees, The `grade` is a string. You can get possible strings with `Hesa::Grade.all.map { |grade| grade.name }`
```ruby
ApplicationQualification.find(ID).update!(grade: 'D', audit_comment: 'Updating grade following a support request, ticket ZENDESK_URL')
ApplicationQualification.find(ID).update!(
grade:, # One of the strings defined above for UK degrees
grade_hesa_code: Hesa::Grade.find_by_description(grade).hesa_code,
degree_grade_uuid: Hesa::Grade.find_by_description(grade).id,
predicted_grade:, # must be true or false, not nil. Nil will make it impossible to submit an application later.
audit_comment: 'Updating grade following a support request, ticket ZENDESK_URL',
)
```
***Other qualifications***
```ruby
ApplicationQualification.find(ID).update!(
grade: 'D',
audit_comment: 'Updating grade following a support request, ticket ZENDESK_URL'
)
```
**Change start and graduation date**
Expand Down

0 comments on commit 4864a00

Please sign in to comment.