feat(release-notes): add status filter to exclude Draft entries#29
Open
yecksin wants to merge 1 commit into
Open
feat(release-notes): add status filter to exclude Draft entries#29yecksin wants to merge 1 commit into
yecksin wants to merge 1 commit into
Conversation
…m Notion query By default, queryDatabase now excludes entries with Status=Draft so published and untagged release notes remain visible without needing to update old records. An optional `status` query param allows explicitly filtering by any status value (e.g. ?status=Draft). https://claude.ai/code/session_01YXYTSDowYhjStxhVwGANPd
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
statusquery param to thequeryDatabaseendpoint to filter release notes by their Notion "Status" propertystatusparam), entries withStatus=Draftare excluded — this means old release notes without a Status value remain visible without needing to update themstatusis explicitly provided (e.g.?status=Draft), it filters to show only that specific statusUsage
Notion setup required
Add a Select property called "Status" to the release notes database with options:
Draft(yellow) — for entries in progressPublished(green) — for entries ready to showEntries without a Status value are treated as published (not filtered out).
Test plan
statusparam returns non-Draft entries?status=Draftreturns only Draft entrieshttps://claude.ai/code/session_01YXYTSDowYhjStxhVwGANPd