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): model manager goes blank #6679

Merged
merged 2 commits into from
Jul 25, 2024

Conversation

psychedelicious
Copy link
Collaborator

Summary

The model edit UI's composition allows for the model edit form to be instantiated before the model's config has been received. This results in the form having no values - all the fields are blank instead of populated by the model config.

Part of the fix is to pass the model config around directly instead of relying on all components to fetch the model directly.

I also fixed a crapload of performance issues related to improper use of redux selectors.

Related Issues / Discussions

Closes #6347

QA Instructions

To reproduce the issue:

  • Go to the model manager
  • Select a model
  • Click Edit
  • Click the Generation tab
  • Wait at least 60 seconds (this clears the cached model config, which will trigger the race condition)
  • Return to the model manager tab

Also, model manager UI should feel substantially snappier.

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)

The model edit UI's composition allows for the model edit form to be instantiated before the model's config has been received. This results in the form having no values - all the fields are blank instead of populated by the model config.

Part of the fix is to pass the model config around directly instead of relying on _all_ components to fetch the model directly.

I also fixed a crapload of performance issues related to improper use of redux selectors.
@github-actions github-actions bot added the frontend PRs that change frontend files label Jul 25, 2024
@psychedelicious psychedelicious merged commit f8e27b8 into main Jul 25, 2024
14 checks passed
@psychedelicious psychedelicious deleted the psyche/fix/ui/model-manager-edit branch July 25, 2024 21:52
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.

[bug]: Model info disappears from model manager after generation
2 participants