You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add full field support to tryTask form generation - #476
The reason will be displayed to describe this comment to others. Learn more.
From your image I see 1.8m on text-editor and 35s on diagram-editor.
But I don't see a particular text-editor test slowing down on your machine.
In my local env I have this execution time for the TE, using your branch:
> @openworkflowspec/text-editor@1.1.0 test-e2e /home/fantonan/NotBackedUp/repos/open-workflow-specification-editor-review/packages/text-editor
> playwright test
Running 12 tests using 1 worker
✓ 1 tests-e2e/text-editor.spec.ts:35:3 › TextEditor JSON › Monaco editor is interactive (2.3s)
✓ 2 tests-e2e/text-editor.spec.ts:44:5 › TextEditor JSON › Completions › JSON schema completion adds the `do` property (1.9s)
✓ 3 tests-e2e/text-editor.spec.ts:64:5 › TextEditor JSON › Completions › Hello World Completion inserts the sample workflow (1.3s)
✓ 4 tests-e2e/text-editor.spec.ts:76:5 › TextEditor JSON › Completions › completions are not available in read-only mode (1.1s)
✓ 5 tests-e2e/text-editor.spec.ts:90:5 › TextEditor JSON › CodeLenses › Hello World CodeLens activates and inserts the sample workflow (2.0s)
✓ 6 tests-e2e/text-editor.spec.ts:101:5 › TextEditor JSON › CodeLenses › CodeLens is hidden in read-only mode (1.1s)
✓ 7 tests-e2e/text-editor.spec.ts:107:5 › TextEditor JSON › CodeLenses › JSON → YAML: CodeLens disappears after language switch (2.0s)
✓ 8 tests-e2e/text-editor.spec.ts:120:5 › TextEditor JSON › CodeLenses › YAML → JSON: CodeLens reappears after language switch (2.0s)
✓ 9 tests-e2e/text-editor.spec.ts:133:5 › TextEditor JSON › CodeLenses › YAML + isReadOnly true → false: CodeLens stays hidden (1.1s)
✓ 10 tests-e2e/text-editor.spec.ts:151:5 › TextEditor JSON › Diagnostics › syntactically invalid JSON shows an error marker (1.3s)
✓ 11 tests-e2e/text-editor.spec.ts:159:5 › TextEditor JSON › Diagnostics › OWS-schema-invalid JSON shows a warning marker (1.3s)
✓ 12 tests-e2e/text-editor.spec.ts:168:5 › TextEditor JSON › Diagnostics › replacing OWS-invalid JSON with a valid workflow removes warning markers (1.5s)
12 passed (22.3s)
The new reset callers use this helper to pad catch.retry.backoff even when the active retry variant is a reusable-policy string (for example, stories/examples/workflows/try-catch-retry-reusable.yaml has retry: default). Since this helper replaces an existing scalar intermediate with an object, Apply or an external reset turns that form default into retry: { backoff: "" }, so the reference disappears from the form. Preserve existing non-object parents, or restrict padding to fields in the active one-of variant.
The resync condition only watches defaultValues, not field.innerObjectFormat. Calling setContent with the same workflow serialized in the other format changes contentFormat and recreates these descriptors, but the structurally equal task does not reset the form; the textarea therefore keeps YAML text in JSON mode (or vice versa), and the next edit/Apply parses it using the wrong format. Re-serialize when the field format changes, as StructuredValueField already does.
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This branch has not been deployed
No deployments
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
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.
Closes #408
This PR introduces full field support to
tryTaskform generation in both read-only and edit mode.Not Addressed in This PR
Changes
tryTaskform generation, coveringbackoffvariants.EnumFielddefinitions with discriminatorvalueMapand structured inner object support.EnumControlwith discriminator selection and inline YAML/JSON textarea editing for inner backoff payloads.EditFormFooterwith task ID resolution fortry/catchchild nodes and proper serialization/clearing ofvalueMapfields.How to Test
tryTaskin both read-only and edit mode.