Skip to content

Update IPFS URL to v2#498

Merged
valentinludu merged 1 commit intodevfrom
chore/update-ipfs-url
Mar 16, 2026
Merged

Update IPFS URL to v2#498
valentinludu merged 1 commit intodevfrom
chore/update-ipfs-url

Conversation

@valentinludu
Copy link
Copy Markdown
Contributor

@valentinludu valentinludu commented Mar 13, 2026

Description

Update ipfs url to v2

Testing

Tested the build locally

Checklist

  • Performed a self-review of my own code

Summary by CodeRabbit

  • Chores
    • Updated product metadata retrieval infrastructure to use the latest API version.

@valentinludu valentinludu changed the title chore: update IPFS URL to v2 Update IPFS URL to v2 Mar 13, 2026
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 13, 2026

📝 Walkthrough

Walkthrough

Updated the IPFS API endpoint version in the product metadata build script from v1 to v2. The change modifies the URL path used to fetch product metadata via IPFS hash while maintaining existing fetch and processing logic.

Changes

Cohort / File(s) Summary
API Endpoint Update
scripts/build-products.js
Updated IPFS API endpoint from https://api.nexusmutual.io/ipfs/{hash} to https://api.nexusmutual.io/v2/ipfs/{hash}

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 2
✅ Passed checks (2 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Update IPFS URL to v2' directly and clearly summarizes the main change: updating the IPFS API endpoint from v1 to v2 in the build script.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch chore/update-ipfs-url
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch chore/update-ipfs-url
📝 Coding Plan
  • Generate coding plan for human review comments

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

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@scripts/build-products.js`:
- Line 15: The ipfsURL helper (const ipfsURL = ipfsHash =>
`https://api.nexusmutual.io/v2/ipfs/${ipfsHash}`) may return a v2 response with
a different JSON shape; locally fetch a sample using ipfsURL(...) and validate
the body consumed by the code path that calls .then(res => res.json()), then
update the parsing logic that consumes that JSON (or adjust ipfsURL to point to
the correct endpoint) so the code handles the v2 structure (e.g., map new field
names or unwrap nested objects) before merging.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: efff8c3b-7bf2-4e67-906b-132b7c4423ef

📥 Commits

Reviewing files that changed from the base of the PR and between b04f59d and 1a8b6de.

📒 Files selected for processing (1)
  • scripts/build-products.js

@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying sdk with  Cloudflare Pages  Cloudflare Pages

Latest commit: 1a8b6de
Status: ✅  Deploy successful!
Preview URL: https://05a2d04c.sdk-9yp.pages.dev
Branch Preview URL: https://chore-update-ipfs-url.sdk-9yp.pages.dev

View logs

@valentinludu valentinludu merged commit 7e8902d into dev Mar 16, 2026
3 checks passed
@valentinludu valentinludu deleted the chore/update-ipfs-url branch March 16, 2026 10:03
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