GeezerVison is showing github.com — docs(id): amend Notion importer design for the data-source model (#8555) by dezren39 · Pull Request #8558 · developing-today/code
Conversation
dezren39
commented
Nov 11, 2026
•
edited by coderabbitai
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Closes #8555.
Amends the Notion importer design (doc/2026-11-10_design_id6436.md, landed by PR #8416 for issue #6436) for the Notion API 2025-09-03 data-source model — the unaddressed Codex P2 finding from PR #8416 (discussion r4533073012), filed as issue #8555. Scope note: this PR does not reply to or resolve that review thread (excluded by the task packet; pr-comment-review job rules).
What changes
- Amendment header on the design naming issue docs(id): Notion importer design has no data-source model — multi-source databases cannot be mapped (PR #8416 review finding) #8555 and the sections touched.
- Recommendation 2–3 / §0: a database is a container of one or more data sources; identity includes
data_source_id ↔ (database note ID, data-source identity).
- §1.2–§1.3: a data-source discovery step in inventory — enumerate each database's data sources and retrieve each schema before any row is read; pinning an older
Notion-Version does not avoid the model (database reads/queries fail when a second source is added). An un-enumerated database is an incomplete inventory item, never silently single-source.
- §2.2: new Data source row (per-source schema provenance claims on the database note, scoped by
data_source_id, never merged across sources); rows belong to exactly one data source and are queried/validated per source; relation identity is now database + data source + property with targets resolved per target data source; rollup inputs scoped like their relation; a multi-source paragraph naming the conflation failure this prevents.
- §3: relation rewriting carries the (database, data source, property) identity.
- §6 / §6.1 / §6.2: the manifest records
data_source_id mappings and each row's owning source; identity and schema diffs are per data source; a database gaining a second source is a changed object whose rows are re-scoped on re-import.
- §8: the corpus gains a multi-source database fixture (two sources, a colliding property name with different types, a relation in only one source, rows in both) plus decidable acceptance check 8 (disjoint per-source schema claims, per-source row validation, source-scoped relation references).
- Implementation slicing: slice 1 enumerates data sources; slice 3 is per-data-source.
Verification
Queue: task 14881, lane code-b.
![Autofix with [code]smith](/api/image?u=https%3A%2F%2Fcamo.githubusercontent.com%2F33b6f70f3541c4e93f4503d29cbfec051fa1b040d8e0ae9313a51c4ece44a627%2F68747470733a2f2f70722d636f6d6d656e74732d6173736574732e626c61636b736d6974682e73682f636f6465736d6974682f6175746f6669782d776974682d636f6465736d6974682d6461726b2d33782e706e67)
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.
Summary by CodeRabbit
- Documentation
- Updated the design guidance to reflect Notion’s data-source model, including source-scoped schemas, rows, and relations.
- Clarified how data-source discovery, identity, provenance, and membership are handled across imports.
- Expanded the test and acceptance criteria for data-source mapping and relation handling.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chatgpt-codex-connector[bot] reacted with thumbs up emoji
coderabbitai
Bot
commented
Nov 11, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

Warning
Review limit reached
You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.
Next included review available in 51 minutes.
Check out review usage here.
View limit details
-
Limit details: You’ve used the included review currently available.
Learn how review limits work.
Review configuration:
Run configuration
-
- Source mode: Auto
- Repository: Unavailable
- Branch: Unavailable
- File: No configuration file from this repository applied
- Commit: Unavailable
- Layers: defaults
- Review profile: CHILL
- Plan: Advanced
- Run ID:
98d77059-96bb-4b55-b983-3d0633440193
Commits
-
Reviewing files that changed from the base of the PR and between ccb3669 and 0ecd266.
Files selected for processing: 1
-
doc/2026-11-10_design_id6436.md
Walkthrough
-
The design now models Notion API 2025-09-03 data sources as independently identified database components. It specifies source discovery, per-source schemas and row queries, relation resolution, manifest identity, repeat-import handling, and multi-source validation.
Changes: Notion data-source model
| Layer / File(s) |
Summary |
Data-source inventory and identity doc/2026-11-10_design_id6436.md |
The design adds per-database data-source enumeration and data_source_id to inventory and manifest identity. |
Source-scoped schemas and relations doc/2026-11-10_design_id6436.md |
The design scopes schemas, row interpretation, relation identity, and relation values to data sources. It tracks row source membership separately from page-UUID identity. |
Repeat imports and acceptance checks doc/2026-11-10_design_id6436.md |
The design updates repeat-import inventory, adds a multi-source test fixture, and defines checks for source-specific schemas and relations. |
Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Other · Severity of issue fixed: Medium
Possibly related issues
- developing-today/code#6513 — The issue requires the importer to follow design
#6436, which this change updates with data-source discovery and per-source handling.
- developing-today/code#8419 — The issue covers persisting inventory and manifest data, which the updated design extends with data-source enumeration and identity.
Merge Risk: Moderate · previous review ccb36
-
The design change adds data-source support but leaves two identity and re-import rules incomplete. Two-way relations could produce duplicate references, and moving a data source between databases could leave stale links. Resolve both in the design before implementation relies on it. No code or runtime behavior changes.
Pre-merge checks: 5
-
| Check name |
Status |
Explanation |
| Description Check |
 |
Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check |
 |
The title accurately and concisely describes the documentation change to incorporate Notion's data-source model in the importer design. |
| Linked Issues check |
 |
Issue #8555 requires either a multi-source amendment or an explicit exclusion decision. The amended design provides the required model. It adds per-database data-source discovery and data_source_id … |
| Out of Scope Changes check |
 |
The whole-pull-request diff changes one design document. The amendment header, affected design sections, manifest rules, fixture, acceptance check, and implementation slicing all support issue #8555. … |
| Docstring Coverage |
 |
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat… |
Full details: Linked Issues check
-
Explanation
Issue #8555 requires either a multi-source amendment or an explicit exclusion decision. The amended design provides the required model. It adds per-database data-source discovery and data_source_id identity in §1.2, §1.3, and the manifest model. It scopes schemas, rows, relations, and rollup inputs per source in Recommendation 2–3 and §2.2–§3. It adds per-source identity and change handling in §6. It adds a multi-source database fixture and acceptance check in §8. The design also records the failure caused by assuming one schema and by relying on an older pinned API version.
Full details: Out of Scope Changes check
-
Explanation
The whole-pull-request diff changes one design document. The amendment header, affected design sections, manifest rules, fixture, acceptance check, and implementation slicing all support issue #8555. No unrelated source code, dependency, or administrative change is present.
Full details: Docstring Coverage
-
Explanation
No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)
Finishing Touches
-
Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
-
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Codex Review Summary: ✅ Completed
This comment shows the latest Codex review activity on this pull request.
| Review |
Status |
Commit |
Review trigger |
| 📝 Code Review |
✅ Completed 2026-11-11T10:09:33.506841Z |
0ecd266 |
Manual request |
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review" or "@codex security review".
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 7e6c0fc1d9
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…e; preserve per-source title/description
|
@codex review — head 9f57c38 fixes both P2 findings from the previous round (row identity = page UUID alone in §6.1; per-source title/description preserved as provenance claims in §2.2). Both threads replied and resolved. Please re-review the new head.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 9f57c38302
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
@codex review
New head ccb3669 fixes the remaining P2 from the 9f57c38 review: relation identity is now keyed by data source + property (§2.2, §3), the parent database is mutable membership metadata, and §6.1 states a data source's identity is its data_source_id alone. Thread PRRT_kwDOJWP47862EZPB replied and resolved. Please re-review.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
|
Codex Review: Didn't find any major issues. 🎉
Reviewed commit: ccb366933e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
…nced_property_id; define source-move graph updates (#8555)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Codex Review: Didn't find any major issues. Swish!
Reviewed commit: 0ecd2666e6
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 17, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
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.
|