Skip to content

fix: handle comma-separated Notion multi-select filters#4227

Merged
tangly1024 merged 1 commit into
mainfrom
codex/fix-gallery-tags-filter
Jul 1, 2026
Merged

fix: handle comma-separated Notion multi-select filters#4227
tangly1024 merged 1 commit into
mainfrom
codex/fix-gallery-tags-filter

Conversation

@tangly1024

Copy link
Copy Markdown
Collaborator

Summary

  • split comma-separated Notion multi-select values before collection view filter matching
  • keep the split scoped to multi_select schema fields so text filters are unchanged
  • add regression coverage for multi_select_contains and multi_select_does_not_contain

Root cause

Some Notion payloads encode multi-select tags as a single plain text value like Tech,Life. The collection filter matcher compared exact values only, so contains Tech missed the page and does_not_contain Tech could incorrectly keep it.

Checks

  • npx jest __tests__/lib/notion-data-format.test.js --runInBand --env=node
  • npx eslint lib\db\notion\filterCollectionViewData.js __tests__\lib\notion-data-format.test.js
  • git diff --check
@netlify

netlify Bot commented Jul 1, 2026

Copy link
Copy Markdown

Deploy Preview for notionnext-netlify ready!

Name Link
🔨 Latest commit 09fb0c4
🔍 Latest deploy log https://app.netlify.com/projects/notionnext-netlify/deploys/6a44ab3ed6f9980008f5e8ca
😎 Deploy Preview https://deploy-preview-4227--notionnext-netlify.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@vercel

vercel Bot commented Jul 1, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
notion-next-preview Ready Ready Preview Jul 1, 2026 5:54am
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying notionnext-org-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 09fb0c4
Status: ✅  Deploy successful!
Preview URL: https://0d86f567.notionnext-org-docs.pages.dev
Branch Preview URL: https://codex-fix-gallery-tags-filte.notionnext-org-docs.pages.dev

View logs

@tangly1024 tangly1024 merged commit 08b4d32 into main Jul 1, 2026
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 participant