Skip to content

Conversation

@SgtPooki
Copy link
Collaborator

@SgtPooki SgtPooki commented Dec 6, 2025

adds getScheduledRemovals to the StorageContext class so users don't have to instantiate a PDPVerifier themselves.

Related filecoin-project/filecoin-pin#253 (comment)

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR exposes the getScheduledRemovals method on the StorageContext class, providing a convenience method for users to retrieve pieces scheduled for removal without needing to instantiate a PDPVerifier directly.

  • Added getScheduledRemovals() method to StorageContext class that wraps PDPVerifier.getScheduledRemovals()
  • Included test coverage for the happy path and edge case (no data set configured)

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
packages/synapse-sdk/src/storage/context.ts Implements the new getScheduledRemovals() method that creates a PDPVerifier instance internally and delegates to its getScheduledRemovals() method, with proper error handling
packages/synapse-sdk/src/test/storage.test.ts Adds test suite covering successful retrieval and empty array return when no data set is configured

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Dec 6, 2025

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
synapse-dev fd2980c Commit Preview URL

Branch Preview URL
Dec 11 2025, 05:46 PM

@BigLep BigLep moved this from 📌 Triage to ⌨️ In Progress in FS Dec 7, 2025
@BigLep BigLep moved this from ⌨️ In Progress to 🔎 Awaiting review in FS Dec 7, 2025
@rjan90 rjan90 moved this from 🔎 Awaiting review to ⌚️ Issue awaiting PR merge in FS Dec 8, 2025
@SgtPooki SgtPooki merged commit 6a3b5cc into master Dec 11, 2025
11 checks passed
@SgtPooki SgtPooki deleted the fix/storagecontext-getScheduledRemovals branch December 11, 2025 18:15
@github-project-automation github-project-automation bot moved this from ⌚️ Issue awaiting PR merge to 🎉 Done in FS Dec 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: 🎉 Done

Development

Successfully merging this pull request may close these issues.

3 participants