When you run that job, all state that can be refreshed by running other github jobs is deleted.
Current Behavior
There are errors due to foreign key constraints:
PG::ForeignKeyViolation: ERROR: update or delete on table "github_repos" violates foreign key constraint "fk_rails_7d2101fce9" on table "completed_jobs"
DETAIL: Key (id)=(5787) is still referenced from table "completed_jobs".
: DELETE FROM "github_repos" WHERE "github_repos"."id" = **$1
Steps to Reproduce
Run the "Purge Course Github Records" on a course that has a significant amount of data
See the error in the job log
Possible Solution
Either:
implement the "dependent destroy" automatic database feature (the right way, but difficult)
or reorder the deletes to delete things "bottom up" based on the dependency graph (possibly more expedient, but tedious).
Expected Behavior
When you run that job, all state that can be refreshed by running other github jobs is deleted.
Current Behavior
There are errors due to foreign key constraints:
Steps to Reproduce
Possible Solution
Either: