Skip to content

fix: landing page doesn't show blocked SPs#471

Merged
SgtPooki merged 3 commits intomainfrom
fix/landing-page-doesnt-show-blocked-sps
Apr 24, 2026
Merged

fix: landing page doesn't show blocked SPs#471
SgtPooki merged 3 commits intomainfrom
fix/landing-page-doesnt-show-blocked-sps

Conversation

@SgtPooki
Copy link
Copy Markdown
Collaborator

fixes #470

Copilot AI review requested due to automatic review settings April 23, 2026 19:17
@SgtPooki SgtPooki self-assigned this Apr 23, 2026
@FilOzzy FilOzzy added this to FOC Apr 23, 2026
@github-project-automation github-project-automation Bot moved this to 📌 Triage in FOC Apr 23, 2026
Copy link
Copy Markdown
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 fixes the landing-page provider listing by filtering out storage providers that are configured as blocked (via BLOCKED_SP_IDS / BLOCKED_SP_ADDRESSES) so they don’t appear in the public provider list.

Changes:

  • Inject ConfigService into ProvidersService and apply SP blocklist filters to the getProvidersList() query.
  • Add a Vitest unit test ensuring blocklist-related andWhere clauses are applied.

Reviewed changes

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

File Description
apps/backend/src/providers/providers.service.ts Adds spBlocklists-based query filters to exclude blocked providers from list results.
apps/backend/src/providers/providers.service.spec.ts Adds unit coverage for the new blocklist filtering behavior.

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

Comment thread apps/backend/src/providers/providers.service.ts Outdated
Comment thread apps/backend/src/providers/providers.service.ts Outdated
Comment thread apps/backend/src/providers/providers.service.spec.ts Outdated
Comment thread apps/backend/src/providers/providers.service.spec.ts
@SgtPooki SgtPooki moved this from 📌 Triage to 🔎 Awaiting review in FOC Apr 23, 2026
@SgtPooki SgtPooki requested a review from silent-cipher April 23, 2026 19:46
@rjan90 rjan90 added this to the M4.2: mainnet GA milestone Apr 24, 2026
Copy link
Copy Markdown
Collaborator

@silent-cipher silent-cipher left a comment

Choose a reason for hiding this comment

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

lgtm

@github-project-automation github-project-automation Bot moved this from 🔎 Awaiting review to ✔️ Approved by reviewer in FOC Apr 24, 2026
@SgtPooki SgtPooki merged commit 0c8e58e into main Apr 24, 2026
7 checks passed
@SgtPooki SgtPooki deleted the fix/landing-page-doesnt-show-blocked-sps branch April 24, 2026 14:08
@github-project-automation github-project-automation Bot moved this from ✔️ Approved by reviewer to 🎉 Done in FOC Apr 24, 2026
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.

dealbot dashboard lists blocked SPs

5 participants