When using weighted assignment groups in a course, deleting an assignment group and moving assignments into another group upon deletion can cause stale grades in the enrollments API, gradebook exports, and Grade Export report.
Grades should update when assignments are moved into another assignment group upon assignment group deletion.
Steps to Reproduce
In a course, create multiple weighted assignment groups and add assignments to each group
Grade all assignments for a student
On the assignments page, select the option to delete one of the assignment groups
Select to move assignments in that group to another assignment group
Navigate to the gradebook. Notice that the total score has updated
Access the enrollments API. Notice that the current score does not match the gradebook total