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

Convert cache to session storage #1669

Merged
merged 2 commits into from
Apr 3, 2024

Conversation

ps48
Copy link
Member

@ps48 ps48 commented Apr 3, 2024

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

  • New functionality includes testing.
    • All tests pass, including unit test, integration test and doctest
  • New functionality has been documented.
    • New functionality has javadoc added
    • New functionality has user manual doc added
  • Commits are signed per the DCO using --signoff

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.

ps48 added 2 commits April 3, 2024 00:42
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
Signed-off-by: Shenoy Pratik <sgguruda@amazon.com>
@ps48 ps48 added the bug Something isn't working label Apr 3, 2024
Copy link

codecov bot commented Apr 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 57.60%. Comparing base (2d16727) to head (1f6ed0b).

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           
Flag Coverage Δ
dashboards-observability 57.60% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@derek-ho derek-ho left a 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

@ps48
Copy link
Member Author

ps48 commented Apr 3, 2024

@derek-ho Talked to the PMs we are good with not sharing cache across tabs for now.

@ps48 ps48 merged commit 952b4bc into opensearch-project:main Apr 3, 2024
17 of 23 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 3, 2024
* 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>
ps48 pushed a commit that referenced this pull request Apr 3, 2024
* 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>
amsiglan pushed a commit to amsiglan/dashboards-observability that referenced this pull request Jun 7, 2024
…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport 2.x bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants