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

[🐛] Priority score of an issue is not displayed #206

Closed
winterji opened this issue Nov 14, 2024 · 1 comment
Closed

[🐛] Priority score of an issue is not displayed #206

winterji opened this issue Nov 14, 2024 · 1 comment

Comments

@winterji
Copy link
Contributor

When I display a Snyk project in Backstage with some issues I don't see the priority scores - the whole column is empty. I would like to see the priority score of each issue there.

When investigating the problem I found out that the plugin is trying to fetch the priority score from a different path within the json response than where it is really stored. It is trying to fetch it from issueData.attributes.priority.score but in my case the score is located at issueData.attributes.risk.score.value.

A link to the exact line where it is trying to reference the priority score:
https://github.com/snyk-tech-services/backstage-plugin-snyk/blob/main/src/components/SnykEntityComponent/components/SnykIssuesComponent.tsx#L41

  • node -v:
    v20.17.0
  • npm -v:
    10.8.2

Expected behaviour

Priority score of each issue will be displayed in the table of issues for each project.

Actual behaviour

The priority score column is empty for all issues.

Steps to reproduce

Set up snyk plugin and integrate an entity with an existing snyk project with unresolved issues.

Screenshots

backstage-snyk-plugin-tab
@winterji
Copy link
Contributor Author

winterji commented Nov 21, 2024

Hey, I created a PR solving this issue - #207 . Can I get a review please? @stefanbuck-snyk @aarlaud

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

No branches or pull requests

2 participants