Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add correct lesson url for license issues [IDE-971] #782

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DariusZdroba
Copy link
Contributor

@DariusZdroba DariusZdroba commented Feb 21, 2025

Description

Learn links in the Issue Description Panel for License type Issues were always wrong, this was fixed with adding a link to URL: https://learn.snyk.io/lesson/license-policy-management/ when a License type issue is encountered.

Checklist

  • Tests added and all succeed
  • Linted
  • README.md updated, if user-facing
  • License file updated, if new 3rd-party dependency is introduced

Comment on lines +240 to +242
if !strings.Contains(lesson.Url, "?loc=ide") {
lesson.Url += "?loc=ide"
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be quite an easy thing to test :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, the test for the learn already included this but I will also add a test for lessons which are not coming from license issues

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants