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(ui): edge case resulting in no node templates when loading workfl… #6397

Merged
merged 1 commit into from
May 19, 2024

Conversation

psychedelicious
Copy link
Collaborator

Summary

…ow, causing failure

Depending on the user behaviour and network conditions, it's possible that we could try to load a workflow before the invocation templates are available.

Fix is simple:

  • Use the RTKQ query hook for openAPI schema in App.tsx
  • Disable the load workflow buttons until w have templates parsed

Related Issues / Discussions

n/a

QA Instructions

  • Go to the generation tab
  • Generate an image
  • Refresh the page (which will clear the RTKQ cache)
  • Make your internet reaaaallly slow (devtools throttling)
  • Load a workflow direclty from the generation tab without ever clicking workflows
  • It should load

Merge Plan

n/a

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)

…ow, causing failure

Depending on the user behaviour and network conditions, it's possible that we could try to load a workflow before the invocation templates are available.

Fix is simple:
- Use the RTKQ query hook for openAPI schema in App.tsx
- Disable the load workflow buttons until w have templates parsed
@github-actions github-actions bot added the frontend PRs that change frontend files label May 19, 2024
@hipsterusername hipsterusername merged commit ba8bed6 into main May 19, 2024
14 checks passed
@hipsterusername hipsterusername deleted the psyche/fix/ui/schema-fetch-edge-case branch May 19, 2024 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend PRs that change frontend files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants