Open
Conversation
|
@such-xl is attempting to deploy a commit to the tangly1024's projects Team on Vercel. A member of the Team first needs to authorize it. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
已知问题
schema实际存在,但嵌套层级比原逻辑更深collection.value.value.schema一类结构type、status、category、slug、date等字段无法正确映射getAllPageIds()主要依赖collection_view.page_sortcollectionQuery,但尚未出现在page_sort中解决方案
normalizeCollection()的剥层能力collection_id时,从pageRecordMap.collection推断唯一 collection idpage_sort作为顺序来源collectionQuery中的 block ids改动收益
schematype/status/category/slug/date等关键字段映射page_sort的刷新时机具体改动
lib/db/notion/normalizeUtil.jsnormalizeCollection()的归一化逻辑lib/db/SiteDataApi.jscollectionIdfallbackcollection_id时,从pageRecordMap.collection推断lib/db/notion/getNotionConfig.jscollectionId/ schema fallbacklib/db/notion/getAllPageIds.jspage_sort顺序page_sortcollectionQuery结果,而不是仅在page_sort为空时兜底本地开发环境测试通过
测试确认
schema可正常解析collectionQuery但未进入page_sort时,仍可被站点识别