oppia: [BUG]: In the skill editor, it should not be possible to add X, or an existing prerequisite skill, as the prerequisite of skill X.
Describe the bug
When creating a skill, I noticed that the skill I was currently editing showed up in the list of skills that were candidates for the prerequisite skill. This should not happen.
URL of the page where the issue is observed.
/skill_editor/{{skill_id}}
Steps To Reproduce
- Go to the topics and skills dashboard.
- Create a new skill S and enter its skill editor page.
- Click “+ Add prerequisite skill”.
- In the pop-up modal that appears, you’ll see skill S. You’ll also skills that you previously added as prerequisites:
Expected Behavior
Neither skill S nor the skills that are already added as prerequisites should show up in the pop-up modal.
Screenshots/Videos
No response
What device are you using?
Desktop
Operating System
Linux
What browsers are you seeing the problem on?
Chrome
Browser version
No response
Additional context
No response
Tips for developers
Before tackling the bug, please use git bisect (see https://git-scm.com/docs/git-bisect) to investigate which PR caused it (you only need to go back as far as commit https://github.com/oppia/oppia/commits/9a334e9). If you find the PR, leave a comment on this issue pointing to it, or just say that it happened before commit 9a334e9 if you could reproduce it there. This will help us fix the issue by reverting the faulty PR.
Also, if this is your first issue, please make sure to follow https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia#choosing-a-good-first-issue and https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia#setting-things-up before claiming it. Thanks!
Note: You might find this onboarding doc useful: https://github.com/oppia/oppia/wiki/LaCE-onboarding-guide
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 39 (30 by maintainers)
Commits related to this issue
- Fix for issue #18689 — committed to Jaimin791/oppia by Jaimin791 3 years ago
- lint Fix for issue #18689 — committed to Jaimin791/oppia by Jaimin791 3 years ago
- final fix for #18689 — committed to Jaimin791/oppia by Jaimin791 3 years ago
- final fixnew for #18689 — committed to Jaimin791/oppia by Jaimin791 3 years ago
- final fixnew3 for #18689 — committed to Jaimin791/oppia by Jaimin791 3 years ago
- final fixnew4 for #18689 — committed to Jaimin791/oppia by Jaimin791 3 years ago
- final fixnew4 for #18689 — committed to Jaimin791/oppia by Jaimin791 3 years ago
- fix for #18689 — committed to Jaimin791/oppia by Jaimin791 3 years ago
- Fix for issue #18689 — committed to Jaimin791/oppia by Jaimin791 3 years ago
- Fix for issue updated #18689 — committed to Jaimin791/oppia by Jaimin791 3 years ago
- Fix #18689: Exclude current skill and its prerequisites from untriaged skills in the skill selector (#22066) * Fixed skill selector so that it does not display the current skill or its prerequisites ... — committed to oppia/oppia by Zivanovic8 2 years ago
- Fix #18689: Exclude current skill and its prerequisites from untriaged skills in the skill selector (#22066) * Fixed skill selector so that it does not display the current skill or its prerequisites ... — committed to TARishabh/oppia by Zivanovic8 2 years ago
Hey, @Souradip121 assigning it to you!! When will you be able to create a PR for this?