Skip to content

XRAY-161169 - Normalization - #916

Merged
VidrevichMichael merged 4 commits into
devfrom
feature/XRAY-161169-fix-post-body
Oct 15, 2026
Merged

VidrevichMichael merged 4 commits into
devfrom
feature/XRAY-161169-fix-post-body

Conversation

@VidrevichMichael

@VidrevichMichael VidrevichMichael commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor
  • The pull request is targeting the dev branch.
  • The code has been validated to compile successfully by running go vet ./....
  • The code has been formatted properly using go fmt ./....
  • All static analysis checks passed.
  • All tests have passed. If this feature is not already covered by the tests, new tests have been added.
  • Updated the Contributing page / ReadMe page / CI Workflow files if needed.
  • All changes are detailed at the description. if not already covered at JFrog Documentation, new documentation have been added.

Summary by CodeRabbit

  • Bug Fixes
    • Improved indirect CVE path matching by standardizing package identifiers across Go, npm, PyPI, and Maven packages, including Go version formatting.

@coderabbitai

coderabbitai Bot commented Oct 11, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 6c8ee15f-2418-4691-b6d5-6ee9a1ae33f0
📥 Commits

Reviewing files that changed from the base of the PR and between a41d71c and 95befeb.

📒 Files selected for processing (2)
  • utils/catalog/contextualpaths.go
  • utils/catalog/contextualpaths_test.go

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

GetIndirectCvePaths now normalizes BOM package-version keys before sending them to Catalog. The normalization combines namespaces into names for Go, npm, and Maven packages, and adds a v prefix to applicable Go versions.

Changes: Catalog key normalization

Layer / File(s) Summary
Normalize keys before the Catalog request
utils/catalog/contextualpaths.go, utils/catalog/contextualpaths_test.go
The request path converts BOM package-version keys to Catalog-form keys. Tests cover Go, npm, PyPI, and Maven keys, plus the expected namespace in the request.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 95bef

No actionable normalization defect is established; the PR is mergeable after normal checks.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 28.57% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 7 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title identifies the issue and accurately describes the main change: package-key normalization.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

Comment thread utils/catalog/contextualpaths.go Resolved
Comment thread utils/catalog/contextualpaths.go Resolved
Comment thread utils/catalog/contextualpaths_test.go Resolved

@attiasas attiasas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Overall LGTM.
Try to reduce comments where needed

@github-actions

Copy link
Copy Markdown
Contributor

@VidrevichMichael
VidrevichMichael merged commit 01bd2c0 into dev Oct 15, 2026
128 of 129 checks passed
@VidrevichMichael
VidrevichMichael deleted the feature/XRAY-161169-fix-post-body branch October 15, 2026 07:16

This branch was previously deployed

1 inactive deployment
frogbot — 443e25b7 Deployed Oct 14, 2026 by VidrevichMichael via scan-pull-request #4702
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