oppia / oppia

A free, online learning platform to make quality education accessible for all.
https://www.oppia.org
Apache License 2.0
5.62k stars 3.78k forks source link

Fix part of issue #18422: remove/replace deprecated prerequisite skillids when a skill is deleted/merged #20194

Closed sworth45 closed 1 week ago

sworth45 commented 3 weeks ago

Overview

  1. This PR fixes part of #18422.
  2. This PR does the following: This PR is designed to stop skill's prerequisite skill lists from becoming outdated after a member of the list is deleted. Whenever a skill is deleted/merged, it updates any skills which have it as a prerequisite by deleting/swapping it.
  3. (For bug-fixing PRs only) The original bug occurred because: The original bug occured because there was no connection between a skill and it's id on another skill's prerequisite list.

Essential Checklist

Please follow the instructions for making a code change.

Proof that changes are correct

Proof of changes on desktop with slow/throttled network

Before: https://drive.google.com/file/d/12donQW5sqU5vcr4RNC10sYuALoU7a6cp/view

After: https://drive.google.com/file/d/1fgqF0xmgiVPbzZtd6zVutdKOUQDWO6pS/view (Both running locally)

PR Pointers

oppiabot[bot] commented 3 weeks ago

Hi @sworth45 please assign the required reviewer(s) for this PR. Thanks!

oppiabot[bot] commented 1 week ago

Hi @sworth45, I'm going to mark this PR as stale because it hasn't had any updates for 7 days. If no further activity occurs within 4 days, it will be automatically closed so that others can take up the issue. If you are still working on this PR, please make a follow-up commit within 4 days (and submit it for review, if applicable). Please also let us know if you are stuck so we can help you!