Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new workflow config interfaces #151

Merged
merged 1 commit into from
May 13, 2024

Conversation

ohltyler
Copy link
Member

@ohltyler ohltyler commented May 10, 2024

Description

This PR adds several base interfaces used in the new form/configuration component on the workflow editor page. These are kept generic for now until more details of the form inputs are finalized from UX. The base WorkflowConfig will live under the new config field added in the ui_metadata interface. The main idea is this base config will capture all of the input in the form, and will be used for generating the 1/ form values, 2/ yup validation schema, and 3/ the ReactFlow workspace's nodes/edges. The initial conversion fns have been added and stubbed.

Additionally, the form & schema values in ResizableWorkspace (formValues, formSchema) have changed from the workspace-flow-based form/schema, to the new interfaces, since these will be the source of truth, instead of the workspace nodes/edges being the source of truth. For now, we will leave those interfaces as they may prove useful later on, such as when full drag-and-drop functionality is supported.

This PR also removes the default workspace flow values (the sets of nodes/edges) for the various use cases; now we will only care about providing default values under config, since these will determine the final workspace flow. Defaults/presets are stubbed and left empty for now.

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Signed-off-by: Tyler Ohlsen <[email protected]>
@ohltyler ohltyler changed the title Add new workflow form interfaces Add new workflow config interfaces May 10, 2024
@ohltyler ohltyler merged commit 4a0ade3 into opensearch-project:main May 13, 2024
11 checks passed
@ohltyler ohltyler deleted the more-refactoring branch May 13, 2024 16:21
opensearch-trigger-bot bot pushed a commit that referenced this pull request May 13, 2024
Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit 4a0ade3)
ohltyler added a commit that referenced this pull request May 13, 2024
Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit 4a0ade3)

Co-authored-by: Tyler Ohlsen <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants