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

Update create workflow, update workflow, and form validation logic #164

Merged
merged 3 commits into from
Jun 5, 2024

Conversation

ohltyler
Copy link
Member

@ohltyler ohltyler commented Jun 4, 2024

Description

This PR updates and refactors a variety of functionality related to form validation and workflow updates, to match with the updated UX. Specifically:

  • Updates the card buttons in NewWorkflow to read as Create, and update the functionality to actually create a preset workflow and load the editor page with the newly-created workflow automatically with the created ID
  • Removes the notion of a new/temporary/cached workflow, and all related code, frontend state, and redux store logic for it. Now, the editor page can only be loaded using a created workflow in the backend with a persisted ID
  • Updates the buttons in WorkflowInputs to match the UX. There will now be no explicit create buttons, and will only be Ingest/Search buttons to execute ingest and search. Internal updates to the workflow and fine-grained provisioning will happen behind the scenes
  • Refactors the validation and workflow update logic into WorkflowInputs directly. This will slowly change over time as (potentially) auto-update and more of the internal update and execution logic has been implemented.
  • Sets up stub functions to perform the internal update and execution logic (the actual ingest and search)
  • Adds a code editor field for inputting sample ingest docs, and persists the state in the base WorkflowInputs component. This will be used when performing the actual ingest execution.

Demo video, showing auto-creation, and new buttons on WorkflowInputs component:

screen-capture.35.webm

Issues Resolved

Makes progress on #23

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.

@ohltyler ohltyler merged commit 691c3b8 into opensearch-project:main Jun 5, 2024
11 checks passed
@ohltyler ohltyler deleted the tools-panel-2 branch June 5, 2024 16:23
opensearch-trigger-bot bot pushed a commit that referenced this pull request Jun 5, 2024
ohltyler added a commit that referenced this pull request Jun 5, 2024
) (#165)

Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit 691c3b8)

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