Skip to content

Harden NFT collection SQL reads and tests#287

Open
ponderingdemocritus wants to merge 14 commits intomainfrom
ponderingdemocritus/nft-sql
Open

Harden NFT collection SQL reads and tests#287
ponderingdemocritus wants to merge 14 commits intomainfrom
ponderingdemocritus/nft-sql

Conversation

@ponderingdemocritus
Copy link
Contributor

@ponderingdemocritus ponderingdemocritus commented Feb 21, 2026

This PR fixes NFT collection SQL correctness in the Arcade SDK by grouping OR trait predicates, switching trait matching from LIKE to exact equality, and counting distinct selected trait names correctly for HAVING clauses. It also hardens edge SQL query construction by normalizing token IDs, sanitizing invalid order IDs, and stabilizing pagination limits and cursor behavior. Tests were expanded to lock these behaviors in packages/arcade-ts/src/marketplace/filters.test.ts and packages/arcade-ts/src/marketplace/client.edge.test.ts, and @cartridge/arcade tests are passing locally. The branch also includes the current pnpm-lock.yaml update present in the workspace diff.

@vercel
Copy link

vercel bot commented Feb 21, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
arcade Ready Ready Preview Feb 23, 2026 1:13am
arcade-storybook Ready Ready Preview Feb 23, 2026 1:13am

Request Review

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