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 interfaces & types; fetch reactflow state from workflow redux store #45

Merged
merged 4 commits into from
Oct 2, 2023

Conversation

ohltyler
Copy link
Member

@ohltyler ohltyler commented Sep 29, 2023

Description

This PR accomplishes 2 main things:

  1. Add interfaces and types for the Workflow plugin resource and all that it is comprised of. Note that types are preferred over interfaces, and we are only using interfaces for their ease of use of both 1/ extending them to child interfaces, and 2/ implementing them via Classes.
  2. Updating the dummy nodes/edges datastore to be within the reactFlowState field of a Workflow, which is where it will persist after fetching this from the backend later on. Populates the nodes/edges in the Workspace by pulling this from the workflow prop when rendering the component.

Other:

  • few name changes to interfaces now converted to types
  • added an eslintrc.json file & updated yarn script such that we ignore a few rules altogether that are unnecessary. This way, we don't have to continuously add // eslint-disable-next-line <rule> for things like empty interfaces that we may fill in later, etc.

Testing:

  • confirmed the dummy nodes/edges render the same as before
  • confirmed the warn toast shows if there is no reactFlowState for a workflow. Final UX for this part is TBD.

Issues Resolved

Closes #12 . Makes progress on #8 , #10

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 merged commit d9e697c into opensearch-project:main Oct 2, 2023
4 checks passed
@ohltyler ohltyler deleted the datastores branch October 2, 2023 16:00
opensearch-trigger-bot bot pushed a commit that referenced this pull request Oct 2, 2023
…re (#45)

Signed-off-by: Tyler Ohlsen <[email protected]>
(cherry picked from commit d9e697c)
ohltyler added a commit that referenced this pull request Oct 2, 2023
…re (#45) (#46)

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

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
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Persisting UI metadata
2 participants