Closed nozomione closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
refinebio-web | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Sep 7, 2023 5:41pm |
🗒️ @davidsmejia The backend cache (#164) is used in the DatasetRegenerate
component (for expired datasets) to conditionally display the info message "Some expression values may differ. Why[link here]". And It works as expected, for currently the worker version v1.42.67-hotfix
in a response body and x-source revision v1.45.27-hotfix
in a response header differs (preview here)✅
🗒️ @davidsmejia The backend cache (#164) is used in the
DatasetRegenerate
component (for expired datasets) to conditionally display the info message "Some expression values may differ. Why[link here]". And It works as expected, for currently the worker versionv1.42.67-hotfix
in a response body and x-source revisionv1.45.27-hotfix
in a response header differs (preview here)✅
This doesn't really make sense to me. If we are using the cache as a fallback to determine if the worker_version
has changed it would either imply that the API is down and we can't regenerate the dataset currently.
If we use the cached value by default and that value only gets updated on deploys then we won't necessarily be aware if the BE had a deploy and version change. Meaning we wouldn't show the message after API deploys until a new FE deploy / cache regeneration.
This doesn't really make sense to me. If we are using the cache as a fallback to determine if the
worker_version
has changed it would either imply that the API is down and we can't regenerate the dataset currently.If we use the cached value by default and that value only gets updated on deploys then we won't necessarily be aware if the BE had a deploy and version change. Meaning we wouldn't show the message after API deploys until a new FE deploy / cache regeneration.
I've matched the refinebio-frontend implementation. Currently it compares the worker version with the x-source version (cached API version) to determine if the message should be displayed to users or not. If any requirements change, please let me know so that we may adjust the implementation. Thank you @davidsmejia
Also, it only checks the minor version change. Should we remove the cache from this file and evaluate the version change using a fetched response instead? If so, I'll make that update in #164, pls let me know.
🗒️ The original issue will be divided into separate parts (context/hooks/helper implementations, UI implementations for pages), thus closing this PR.
Issue Number
Closing #161
Total files changed : 32 (excluded ones that were simply renamed, rearranged, or removed comments) which includes some minor adjustments
Purpose/Implementation Notes
Implemented the following:
Please preview the latest UI here.
To view the expired dataset here (Dataset ID
13c80a81-105a-44b9-84ee-a028c36fda9d
)To view the processed downloadable dataset here (Dataset ID
43150960-ccd4-49ac-9c82-f6fad8ab12a9
)To view the shared dataset here (other than the one stored in localstorage to test the move to dataset functionality, Dataset ID
94f08633-976f-4578-b2f6-fe933b97b069
):To view the dataset processing error here (Dataset ID
2856e9aa-2a68-456b-97ba-38eb43f65009
):Types of changes
Functional tests
List out the functional tests you've completed to verify your changes work locally.
Checklist