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

fix: workflows backcompat #5897

Merged
merged 3 commits into from
Mar 8, 2024
Merged

fix: workflows backcompat #5897

merged 3 commits into from
Mar 8, 2024

Conversation

psychedelicious
Copy link
Collaborator

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Community Node Submission

Description

Old workflows appear to "just work" (with one caveat*). I really did not expect this. To be honest, I don't really understand how it doesn't explode.

Model related fields were the big question mark, but what actually ends up happening is they show up with an error state, and force you to choose a model.

The only change in this PR is to fix the styling for some field types.

*Caveat: If your workflow was already loaded in the editor and you updating the app, it model fields seem to just not render at all. If you load the workflow after updating the app, the thing I don't understand happens and it works. I maybe able to work that mystery mojo into the app startup but maybe this is good enough?

QA Instructions, Screenshots, Recordings

Load up workflows saved on a previous version. The worst that should happen is you have to re-select models.

Merge Plan

This PR can be merged when approved

Recently the schema for models was changed to a generic `ModelField`, and the UI was unable to derive the type of those fields. This didn't affect functionality, but it did break the styling of handles.

Add `ui_type` to the affected fields and update the UI to use the correct capitalizations.
@github-actions github-actions bot added python PRs that change python files invocations PRs that change invocations frontend PRs that change frontend files labels Mar 8, 2024
@github-actions github-actions bot added backend PRs that change backend files services PRs that change app services labels Mar 8, 2024
@psychedelicious psychedelicious force-pushed the psyche/feat/workflow-backcompat branch from 027ee84 to efac142 Compare March 8, 2024 11:43
Copy link
Collaborator

@brandonrising brandonrising left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

works well for me!

@maryhipp maryhipp merged commit 33ded35 into main Mar 8, 2024
14 checks passed
@maryhipp maryhipp deleted the psyche/feat/workflow-backcompat branch March 8, 2024 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend PRs that change backend files frontend PRs that change frontend files invocations PRs that change invocations python PRs that change python files services PRs that change app services
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants