-
Notifications
You must be signed in to change notification settings - Fork 0
Display Pre-Computed Result on Recipe Selection #144
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
Conversation
Coverage Report
File Coverage
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
src/state/store.ts
Outdated
|
|
||
| set({ | ||
| selectedRecipeId: recipeId, | ||
| resultUrl: SIMULARIUM_EMBED_URL + (sel.result_path ?? ""), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you're storing redundant information in the store. if we already know the result path, we can construct it without having to store it separately here
meganrm
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is doing what we want it to do. given the amount of state management refactor already underway, I think this is fine, and then we'll progress with mine and Joes PRs afterwards
interim17
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree with megan this is a fine stepping stone as it is, definitely worth merging some things since so many different branches are floating around that touch the same files
Problem
Link to story or ticket
Solution
We already know what the results for the recipes are before any changes are made, so we should show that when a user selects a recipe from the drop-down.
I previously added the
result_pathfield to the firebase collection where we store the metadata for each recipe. This is the s3 path to the simularium result file for the recipe. This PR allows cellpack studio to read this result path and display this pre-computed result until the user makes changes and has their own run.Open Question
Am I using the store right?