feat(plugin-grid): "Import as historical data" option in the Import Wizard (framework #3479)#2815
Merged
Merged
Conversation
…izard (framework #3479) Adds a checkbox to the Import Wizard's options panel (next to "Run automations & triggers") that sends `treatAsHistorical` on the import request. When on, the server skips the object's `state_machine` rule so mid-lifecycle rows — already-`closed` tickets, `closed_won` deals — aren't rejected by `initialStates`. Off by default: a normal import still walks the FSM, so the exemption is always an explicit opt-in. - types: `ImportRequestOptions.treatAsHistorical?`. - ImportWizard: option state (default off), checkbox + hint, threaded through `assembleImportRequest` (sent only when on) for both inline and named-mapping shapes. Pairs with the framework side (objectstack #3483). Verified in the plugin-grid demo: the checkbox renders in the Preview step's options panel, defaults off, and toggles. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
✅ Console Performance Budget
📦 Bundle Size Report
Size Limits
|
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.
配套 framework 的 objectstack#3483(#3479 修复)—— 把
treatAsHistorical接到导入向导 UI。背景
framework #3479:导入历史 mid-lifecycle 数据(已
closed工单、closed_won商机)被对象的state_machineinitialStates逐行拒。framework 侧加了treatAsHistorical导入选项(默认关),本 PR 把它接到导入向导的复选框。改动
ImportRequestOptions.treatAsHistorical?: boolean。assembleImportRequest穿进请求体(仅勾选时发送),inline 与 named-mapping 两条请求形态都覆盖。语义
默认关(opt-in):正常导入仍走 FSM,只有显式勾选才跳过 state_machine —— 与 framework 侧一致,防止批量新建绕过 FSM 入口。
验证
importDryRun.test.ts新增 2 个 it(勾选→请求带treatAsHistorical:true;默认/关→不带;named-mapping 路径也带)。从根--project unit跑 14 passed。🤖 Generated with Claude Code