Repository navigation
test(core): v0.2 M3 trial import with a simulated messy ledger - #17
Merged
Merged
Conversation
Close the last exit item of #10 with a simulated legacy ledger (duplicates, bad credit codes, mixed date formats, option aliases, missing keys, two primary contacts, "长期" expiry) under data/samples/legacy-trial/. test/import-trial.test.ts pins the per-row outcome; the import guide gains the trial findings (T1-T14) and a cleaning checklist. New platform gaps filed and logged in 07 §6.3: objectstack#25491 (mapping transforms ignored) and #25493 (date shapes, option aliases/case, one error per row). Closes #10 Claude-Session: https://claude.ai/code/session_01WD2qxFMbYUkbEnsSXW7PQj Co-authored-by: Claude <noreply@anthropic.com>
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.
Requested by 田騏 · project thread
Closes #10. Follow-up to #15: the last exit item ("用客户真实台账(脱敏)导入一次,问题记录在 PR 中"), done with a simulated ledger as the user asked instead of a customer sample.
改了什么
data/samples/legacy-trial/:模拟的「脏」台账(13 行供应商、12 位联系人、11 张证书,全部虚构),覆盖重复行、信用代码小写 / 带连字符 / 17 位、2011.07.01/20090615/2018-02-30日期、「中国大陆」「CN」「物流」「ISO9001」等别名、缺信用代码 / 注册号、同表两位主联系人、邮箱大小写不同、一格两个邮箱、「长期」有效期、全称不一致、清单外资质。test/import-trial.test.ts:逐行钉住平台给出的结果。data/samples/README.md说明试导样例。试导发现(详见导入说明 §6.1)
UNIQUE_VIOLATION2011.07.01、20090615invalid_dateCN大写invalid_option没有发现导入把错误数据写进系统的情况:问题行要么被拒,要么被跳过。需要人工核对的只有三处:T6、T9、T10。
验证
pnpm validate、lint、typecheck、i18n:check、test(9 个文件全部通过)、build;文档相对链接与锚点检查 0 问题。Generated by Claude Code