mirror of
https://github.com/langgenius/dify-official-plugins.git
synced 2026-07-22 01:55:27 -04:00
[PR #2326] [MERGED] feat(notion_datasource): Treat inaccessible parent as a root-level item #2404
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/langgenius/dify-official-plugins/pull/2326
Author: @kazuya-awano
Created: 12/25/2025
Status: ✅ Merged
Merged: 12/28/2025
Merged by: @crazywoola
Base:
main← Head:feat/notion_datasource_treat_inaccessible_parent📝 Commits (1)
ccf7269feat(notion_datasource): Treat inaccessible parent as a root-level item📊 Changes
2 files changed (+10 additions, -3 deletions)
View changed files
📝
datasources/notion_datasource/datasources/utils/notion_client.py(+9 -2)📝
datasources/notion_datasource/manifest.yaml(+1 -1)📄 Description
Related Issues or Context
This change handles cases where a parent resource is not accessible to the integration, even though the child resource is accessible.
When the integration does not have access to a parent block, the Notion API returns a 404 response, which previously caused the plugin to terminate with an error.
This change updates the behavior so that when a parent block cannot be retrieved (404), the resource is treated as a root, allowing processing to continue correctly.
This behavior is based on the Notion API specification, which states that a 404 response is returned when a block does not exist or when the integration does not have access to the block.
Reference:
https://developers.notion.com/reference/retrieve-a-block#errors
This PR contains Changes to Non-Plugin
This PR contains Changes to Non-LLM Models Plugin
This PR contains Changes to LLM Models Plugin
Version Control (Any Changes to the Plugin Will Require Bumping the Version)
VersionField, Not in Meta Section)Dify Plugin SDK Version
dify_plugin>=0.3.0,<0.6.0is in requirements.txt (SDK docs)Environment Verification (If Any Code Changes)
Local Deployment Environment
1.10.1, I have Tested My Changes on Local Deployment Dify with a Clean Environment That Matches the Production Configuration.SaaS Environment
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.