Skip to content

[Bounty proposal] fix(notion): search and list_pages print truncated page ids that get/update/append cannot use #13862

Closed

Description

@lukiod

Symptom

In plugins/omi-notion-app/main.py, format_page_info prints each page id as page_id[:20] + "..." (line 202 on current main). Notion page ids are 36 character dashed UUIDs (Page object, id), so search and list_pages return ids like 59833787-2cf9-4fdf-8. get_page, update_page and append_content send page_id verbatim to /pages/{id} and /blocks/{id}/children, so reading, retitling, archiving or appending to a page found through chat ends in an object not found error.

Evidence

Hermetic round trip in the existing test_main.py suite driving the real handlers against a requests double that only resolves the complete id: 2 tests fail on unchanged main.py, every listed id rejected by get_page, update_page and append_content.

Fix

PR incoming: print the complete id (as get_page and create_page already do) plus the round trip tests in the already registered suite. Same defect class as #13860 in the Google Calendar plugin, kept separate because the plugins are independent.


Proposed bounty: US$25 under the contribution guide, at maintainer discretion. @josancamon19 @kodjima33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions