Repository navigation
WorkflowBuilder port (Vue 3): official OSS builder 1:1 (S1+S2+S3) - #150
Merged
Merged
Conversation
|
The Java checkstyle failed. Please run You can install the pre-commit hooks with |
…tributable type errors, round-trip + OSS-restriction tests, R-5 correction
|
The Java checkstyle failed. Please run You can install the pre-commit hooks with |
This was referenced Nov 6, 2026
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.
WorkflowBuilder port (Vue 3) — official OSS builder, 1:1
Ports the official OpenMetadata
WorkflowBuilder(pina3012259ca, 67 files:canvas + node-config sidebar + execution history, reactflow + dagre) to the
product's Vue 3 UI with
@vue-flow(already in use by lineage/pipelinegraphs) and
dagre(already a dependency). No new dependencies, noreactflow, no Tailwind/less/ui-core-components visuals — style is dev_ui
tokens (
#005587) + antd.Scope lock (per the approved ruling)
The official OSS builder is a restricted editor
(
WorkflowClassBasedefaults all restrictive, no subclass in the OSS repo,asserted by
WorkflowOssRestrictions.test.tsx). This port reproduces theOSS capability set exactly: canvas view, view-mode node drag, start-node
filter/schedule/batch edit, per-subtype node-config forms, save via PUT
(
buildWorkflowForSave), test via POST/validate, suspend/resume, run(on-demand periodic only), paginated execution history, undo/redo (max 50),
unsaved-changes guard. The palette, structural handlers
(
onDrop/onConnect/delete-node), delete button, and create entry arepresent in the tree with the same capability gating (not live behavior in
the OSS build). A working structural editor, workflow create/delete,
delete-node, full start-node config, and scheduled-trigger UI are
Collate-only / gated off in OSS and are NOT built.
What lands
(BFS layout 350×150, edge-condition labels,
inputNamespaceMapmigration), validation service (
buildWorkflowForSave/testWorkflow), API extension (patch/trigger/suspend/resume/validate/delete/instance-details), mode/logic/actions/history composables.
WorkflowCanvas.vue, 4 node components, straight edge,custom controls (undo/redo, zoom %, fit, rearrange), gated palette,
connection-condition modal, empty state, dagre layout helper.
WorkflowHeader,NodeConfigSidebar,NodeFormSidebar,TaskNodeFormRenderer+ all 10 node forms(end/set-action/check-condition/check-change-description/
data-completeness/collect-metadata/user-approval/revert/sink/schema
fallback),
ConditionBuilder, navigation block, rebuiltWorkflowDetailView(builder on the workflow tab, paginated historytab), i18n
workflows.builder.*(205 keys, identical en-US + zh-CN).Gates
npm ci, on main4969cfa0+ this branch; was 317/1408 before thefix round, +43 = 17 OSS-restriction + 3 UserApprovalForm + 1 schema
pin + 22 round-trip), 754.53s.
npm run buildEXIT=0, 10.95s.vue-tsc --noEmit -p tsconfig.app.json): 233 errors,0 attributable vs the 234-error main baseline (the
package.jsonbuild script is unchanged by decision; bare
vue-tsc --noEmiton thesolution-style root tsconfig checks nothing).
b3677ebb) lackedD3's 4
apps.detailkeys (screenshots,screenshotsPage,pause,play); merged in from D3: marketplace app screenshots carousel (images left empty, glob resolver) #149 verbatim, D3 tests re-verified green.after merge, per the landing order).
Fix round for the merge review (2026-11-06 — all three blockers fixed)
the form read/wrote
config.addReviewers/addOwners/ emptyAssigneeStrategy/candidatesFLAT; official reads/writes themnested under
config.assignees, and the product save path reads thenested shape — so official/seeded definitions loaded with empty
approvers and product-saved definitions silently dropped chosen
approvers. Now reads/writes
config.assignees.*exactly likeofficial (plus
type: c.type ?? 'user'on candidates, stale flatkeys stripped on save, and a save-path defense in
applyUserApprovalConfig). NewUserApprovalForm.test.ts(3 its):official-shaped nested fixture loads + save round-trips candidates,
flat legacy config is rebuilt from defaults, empty config yields
nested defaults.
package.jsonbuild isvue-tsc --noEmit && vite build, but theroot
tsconfig.jsonis solution-style ("files": []+ references),so bare
vue-tsc --noEmitchecks NOTHING. The real check(
vue-tsc --noEmit -p tsconfig.app.json) measured: baseline (main4969cfa0) 234 errors, branch before fixes 279, attributable46 (42 in 23 PR files + 4 knock-on in
TaskFormSettingsView.vue);the PR also removed 1 baseline error. After the fixes: 233 errors,
0 attributable (line-insensitive diff vs the baseline) — zero
attributable errors remain. The
package.jsonbuild script isunchanged by decision (changing it would fail every build on the
pre-existing 234-error baseline, recorded as accepted in ruling §7).
new tests in
workflowSerializer.test.ts(29 its) round-trip all 21live governance definitions (fixture
utils/workflowLiveDefinitions.ts, dumped read-only from the deployhost; 19 byte-identical to the official seeds at pin
a3012259ca,plus AutoPilotWorkflow and the triggerless
seed_workflowprobeartifact) through definition → flow → definition, asserting no data
loss modulo the documented official normalizations. Every diff was
checked against official
WorkflowValidationService.ts/WorkflowNodeConfigUtils.ts.WorkflowOssRestrictions.test.ts(17 its), mirroring officialWorkflowOssRestrictions.test.tsx:270-359: palette hidden in editAND view, structural edits blocked, no delete/create at capability
level and no create entry on the builder surface, header
(view: edit present, delete absent from the manage menu, run absent;
edit: save/cancel/validate present, manage menu absent), task-node
sidebar (view: no save/delete-node; edit: save enabled, delete-node
absent), start-node event-based and periodic-batch field locks.
hand-maintained snapshot, not in-tree; all 8 entries verified
field-by-field against the official JSONs at pin
a3012259ca, fullmap pinned in
workflowNodeSchemas.test.ts); C-6.1 history fetch nowsends
startTs: 0, endTs: Date.now()as official does; C-6.2 pagingoffsettypedstring, status tone'default'→'warning'.One knock-on fixed: the new NodeProps typing made Vue Flow's
selected: undefinedwarn — the canvas now passesselected: node.selected ?? false.for the other 34
.vuefiles is waived in favour of the existingdispatch/integration coverage; the round-trip + restriction
assertions above are not waived.
Residuals (ruling §7)
R-1 (OSS scope), R-10 (no QueryBuilderWidget — raw filter TextArea),
R-11 (no Tag/Glossary/UserTeam pickers — antd-Select + search APIs),
R-18 latent note (dead
:node/:is-openprop pass-through intoNodeConfigSidebar, which reads the same values from context),R-19 (pinned official-behaviour wart: official's save builder drops the
configs of
runAppTask/createAndRunIngestionPipelineTask— theproduct reproduces this exactly, asserted in the round-trip test),
R-20 (record-only review items: rgb() box-shadow literals,
SchemaBasedNodeForm English titles, dead
state.canSave,trigger?: WorkflowTriggerObject | unknowncollapse,asBackendNodessilent subType default).
Bugs the S3 test round found and fixed (ruling R-14–R-18)
state.workflowMetadata/state.loading/state.selectedNodeetc. — those live on thewrapped
state.state; the title always fell back to "WorkflowBuilder" and no node form could ever open (same misread in
NodeFormSidebar).args; it emits one
{event, node}/{event, edge}object — everynode/edge click threw.
<Tabs :items>— the installed antd-vue 4.2.6Tabshas noitemsprop (parsesTabPanechildren); the tab bar rendered empty.Now slot-based, the product idiom.
SinkTaskFormmasked-secret dance diverged from official in3 places (blur never restored the mask → a save could wipe the stored
token; focus cleared an already-typed value; key replacement reset an
already re-typed passphrase).
data-testidon antdDrawernever reaches the DOM; the deadtestids were removed, tests use the inner hooks.
Do not merge from here — merge review is the parent's.