-
Notifications
You must be signed in to change notification settings - Fork 54
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
Convert cache to session storage #1669
Conversation
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1669 +/- ##
=======================================
Coverage 57.60% 57.60%
=======================================
Files 367 367
Lines 13921 13921
Branches 3651 3651
=======================================
Hits 8019 8019
Misses 5839 5839
Partials 63 63
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
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.
Is there a use case where you want the cache to be shared across tabs? This change may impact that, but should help for most scenarios
@derek-ho Talked to the PMs we are good with not sharing cache across tabs for now. |
* convert cache to session storage Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> * update tests to mock session storage Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> --------- Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> (cherry picked from commit 952b4bc) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* convert cache to session storage * update tests to mock session storage --------- (cherry picked from commit 952b4bc) Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…h-project#1671) * convert cache to session storage * update tests to mock session storage --------- (cherry picked from commit 952b4bc) Signed-off-by: Shenoy Pratik <sgguruda@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> (cherry picked from commit 3a69e36)
Description
Convert cache to session storage
Issues Resolved
This PR helps to reduce the lifecycle of the catalog cache to be limited to a browser's tab lifecycle.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.