WeKnora/internal/datasource/connector/notion
wizardchen 5d0d317a36 feat(datasource): reveal pre-existing selections in lazily-loaded picker
When editing a data source whose tree loads one level at a time (Feishu
wiki), a saved deep-node selection was invisible: only top-level spaces
were listed, so the selected node could not be seen and its ancestor
space rendered as unchecked.

- Add Connector.ResolveResourceAncestors: given selected resource IDs,
  return the ancestor IDs that must be expanded to reveal them. Feishu
  walks up via GetWikiNode (O(depth) per selection, no full-tree walk);
  Notion/Yuque return empty.
- Fix wikiNode.ParentNodeID JSON tag: the Feishu API field is
  parent_node_token, not parent_node_id, so GetWikiNode can return the
  parent and the ancestor walk works in production.
- Expose POST /datasource/{id}/resource-ancestors (service + handler +
  route) and a matching frontend API client.
- Edit-mode picker reveals hidden selections by expanding and lazily
  loading each ancestor level, so selections are visible and checked.
- Gate child fetching on treeFullyLoaded instead of a partial-children
  heuristic, avoiding a redundant request for full-tree connectors.
2026-06-22 19:24:08 +08:00
..
client.go feat(notion): add Notion API client and type definitions 2026-04-08 16:31:25 +08:00
client_test.go feat(notion): add Notion API client and type definitions 2026-04-08 16:31:25 +08:00
connector.go feat(datasource): reveal pre-existing selections in lazily-loaded picker 2026-06-22 19:24:08 +08:00
connector_test.go fix(datasource): lazy-load Feishu wiki resources to avoid listing timeout (#1672) 2026-06-22 17:53:30 +08:00
markdown.go feat(notion): implement Connector interface, markdown renderer, and DI registration 2026-04-08 16:31:25 +08:00
markdown_test.go fix: update environment configuration for debugging and logging, enhance SQLite FTS5 table management, and improve API base URL handling 2026-04-11 18:51:16 +08:00
types.go feat(notion): add Notion API client and type definitions 2026-04-08 16:31:25 +08:00
types_test.go feat(notion): add Notion API client and type definitions 2026-04-08 16:31:25 +08:00