Skip to content

✨ [RUMF-1580] Implement storage fallback #2261

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

Merged
merged 42 commits into from
Jun 15, 2023

Conversation

yannickadam
Copy link
Contributor

@yannickadam yannickadam commented May 19, 2023

Motivation

When cookies are not available, allows the sessionManager to fallback to localStorage.

Changes

  • Create sessionStoreStrategy during configuration validation
  • Propagate to SessionStore
  • Naming & cleanup

Testing

  • Local
  • Staging
  • Unit
  • End to end

I have gone over the contributing documentation.

@yannickadam
Copy link
Contributor Author

Current dependencies on/for this PR:

This comment was auto-generated by Graphite.

@yannickadam yannickadam force-pushed the yannick.adam/RUMF-1580_Implement_fallback branch from f35a90f to 5f16faa Compare May 19, 2023 15:21
@yannickadam yannickadam force-pushed the yannick.adam/RUMF-1580_Implement_Local_Storage branch from 70842b8 to 4910506 Compare May 19, 2023 15:26
@yannickadam yannickadam force-pushed the yannick.adam/RUMF-1580_Implement_fallback branch from 5f16faa to 73df497 Compare May 19, 2023 15:26
@yannickadam yannickadam changed the title [RUMF-1580] Implement storage fallback ✨ [RUMF-1580] Implement storage fallback May 19, 2023
@yannickadam yannickadam force-pushed the yannick.adam/RUMF-1580_Implement_Local_Storage branch from 4910506 to 205349f Compare May 22, 2023 09:23
@yannickadam yannickadam force-pushed the yannick.adam/RUMF-1580_Implement_fallback branch from 73df497 to b26c828 Compare May 22, 2023 09:23
@codecov-commenter
Copy link

codecov-commenter commented May 22, 2023

Codecov Report

Attention: Patch coverage is 99.46524% with 1 line in your changes missing coverage. Please review.

Project coverage is 94.25%. Comparing base (8dac824) to head (9d9f1fe).
Report is 981 commits behind head on main.

Files with missing lines Patch % Lines
packages/core/src/domain/session/sessionStore.ts 98.61% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2261      +/-   ##
==========================================
+ Coverage   93.93%   94.25%   +0.31%     
==========================================
  Files         204      205       +1     
  Lines        6122     6142      +20     
  Branches     1354     1358       +4     
==========================================
+ Hits         5751     5789      +38     
+ Misses        371      353      -18     

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

@yannickadam yannickadam force-pushed the yannick.adam/RUMF-1580_Implement_Local_Storage branch from 205349f to 90064ab Compare May 30, 2023 12:52
@yannickadam yannickadam force-pushed the yannick.adam/RUMF-1580_Implement_fallback branch from b26c828 to 3c9ac7f Compare May 30, 2023 12:52
@yannickadam yannickadam force-pushed the yannick.adam/RUMF-1580_Implement_Local_Storage branch from 90064ab to 3e1c1e3 Compare June 1, 2023 21:21
@yannickadam yannickadam force-pushed the yannick.adam/RUMF-1580_Implement_fallback branch 2 times, most recently from d408034 to 305deaf Compare June 2, 2023 13:39
@yannickadam yannickadam marked this pull request as ready for review June 2, 2023 14:07
@yannickadam yannickadam requested a review from a team as a code owner June 2, 2023 14:07
@yannickadam yannickadam force-pushed the yannick.adam/RUMF-1580_Implement_fallback branch from f7661fb to 83acc68 Compare June 6, 2023 12:13
Comment on lines +24 to +28
/**
* Every second, the storage will be polled to check for any change that can occur
* to the session state in another browser tab, or another window.
* This value has been determined from our previous cookie-only implementation.
*/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Collaborator

@bcaudan bcaudan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work!

Base automatically changed from yannick.adam/RUMF-1580_Implement_Local_Storage to main June 14, 2023 05:23
@yannickadam yannickadam merged commit 97973c5 into main Jun 15, 2023
@yannickadam yannickadam deleted the yannick.adam/RUMF-1580_Implement_fallback branch June 15, 2023 05:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants