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

  1. Go to the topics and skills dashboard.
  2. Create a new skill S and enter its skill editor page.
  3. Click “+ Add prerequisite skill”.
  4. In the pop-up modal that appears, you’ll see skill S. You’ll also skills that you previously added as prerequisites:

Screenshot from 2023-07-27 01-55-03

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

Most upvoted comments

Hey, @Souradip121 assigning it to you!! When will you be able to create a PR for this?