Skip to content

Conversation

@henchaves
Copy link
Member

This PR does two things in ScansResource:

  • Fetch scan categories directly from the Hub API instead of using local values
  • Remove data check of tags when launching a scan (this was necessary before to avoid a bug)

⚠️ THIS PR MUST BE MERGED ONLY AFTER HUB PRs #1085 AND #1093 ⚠️

@henchaves henchaves self-assigned this Oct 20, 2025
Copy link
Member

@kevinmessiaen kevinmessiaen left a comment

Choose a reason for hiding this comment

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

LGTM, just a quick suggestion

)

category_map = {cat.id: cat.title for cat in SCAN_CATEGORIES}
category_map = {
Copy link
Member

Choose a reason for hiding this comment

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

Shall we cache this?

Copy link
Member Author

Choose a reason for hiding this comment

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

done

@sonarqubecloud
Copy link

@henchaves henchaves merged commit e484bff into main Oct 22, 2025
15 checks passed
@henchaves henchaves deleted the chore/refactor-scans-resource-methods branch October 22, 2025 08:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants