Skip to content

Commit

Permalink
Merge pull request #9483 from DFE-Digital/update-documentat-for-chang…
Browse files Browse the repository at this point in the history
…ing-degree-grades

Add instructions for changing degree grades
  • Loading branch information
elceebee authored Jun 19, 2024
2 parents 513122c + 4864a00 commit 64186b5
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 64186b5

Please sign in to comment.