Skip to content

Refine keep_unmapped_properties + fix audit test URL drift - #212

Merged
johndgiese merged 2 commits into
mainfrom
keep-unmapped-properties-refinements
Jul 28, 2026
Merged

Refine keep_unmapped_properties + fix audit test URL drift#212
johndgiese merged 2 commits into
mainfrom
keep-unmapped-properties-refinements

Conversation

@johndgiese

Copy link
Copy Markdown
Contributor

Two follow-ups to 0d760f0 (which I accidentally pushed straight to main — a push.default = upstream config plus the branch tracking origin/main sent it there, and branch protection blocks rewinding; apologies):

  1. Always keep plugin-injected properties in allowlist mode. keep_unmapped_properties: false now only drops properties present in the page's notion_data. Plugins can inject additional properties into page.properties (e.g. innolitics.github.io's website_components plugin embeds mentioned-page data under notion-id keys) and those must survive the allowlist. Without this, flipping the site's articles/services configs would have stripped the embedded mention data their templates render.

  2. Fix test_audit (pre-existing CI failure, unrelated to the export change). Main's Test workflow hadn't run since May; since then Notion changed page URLs from www.notion.so/<slug> to app.notion.com/p/<slug>, breaking the test's hardcoded URLs. Assertions now match the stable slug#block-id fragment. This is independent of the local audit error-handling work in your working copy — no overlap.

flake8 clean; export/config tests pass locally (24 passed). The end-to-end audit test needs the CI Notion token, so CI here is the real check.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EwuTg4uAA3UCEeiNLqtpdC

johndgiese and others added 2 commits July 27, 2026 21:35
When keep_unmapped_properties is false, only drop properties that exist
in the page's notion_data. Plugins can inject additional properties into
page.properties (e.g. innolitics.github.io's website_components plugin
embeds mentioned-page data under notion-id keys); those are deliberate
and must survive the allowlist.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EwuTg4uAA3UCEeiNLqtpdC
Notion changed page URLs from www.notion.so/<slug> to
app.notion.com/p/<slug>, breaking test_audit's hardcoded expectations
(main's last green run predates the change). Assert on the stable
slug#block-id fragment instead of the full URL.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EwuTg4uAA3UCEeiNLqtpdC
@johndgiese
johndgiese merged commit 356d59f into main Jul 28, 2026
4 checks passed
@johndgiese
johndgiese deleted the keep-unmapped-properties-refinements branch July 28, 2026 02:39
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.

1 participant