-
Notifications
You must be signed in to change notification settings - Fork 156
✨ [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
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
119cc26
🎨 Renamed cookieSession to sessionState
yannickadam 3aaa1fc
♻️ Create a SessionStorage interface
yannickadam c021c67
♻️ Move withCookieLockAccess to SessionStore and rename processStora…
yannickadam ce2f815
♻️ Refactor SessionCookieStore to use SessionStorage interface
yannickadam f26717e
♻️ Update session storage interface and move back lock configuration…
yannickadam 44d3ed7
🎨 Remove remaining references to cookies from sessionStore
yannickadam 20b0d29
🎨 Session components naming update
yannickadam 17920d8
👌 Removed StoreAccessOptions
yannickadam bc24152
👌 Extract sessionStoreOperations in its own file
yannickadam 97f9e72
👌 Renamed expandOrRenewCookie
yannickadam 72f4303
👌 Added tests to oldCookiesMigration
yannickadam fdc1996
👌 Updated tests
yannickadam 99d6f97
♻️ Extract session utilities from CookieStore
yannickadam 59e2610
✨ Implement Local Storage store
yannickadam 2de32d1
👌 Naming toSessionState
yannickadam 6fa5709
👌 Improved tests
yannickadam d176b79
👌 Added test for MAX_LOCK_TRIES + used getCookie to check session per…
yannickadam a770083
Merge branch 'yannick.adam/RUMF-1580_Decouple_storage_mechanism' into…
yannickadam 81618f4
✅ Added tests on session handling capabilities
yannickadam 8e5b802
♻️ Moved old cookie migration invocation to cookie storage
yannickadam 008e86e
✨ Implement fallback
yannickadam 7b718f1
✅ Add tests for localStorage in Session Store
yannickadam fbc6d79
♻️ Remove StoreInitOptions and propagate initConfiguration
yannickadam 75c104d
♻️ Changed naming
yannickadam 83acc68
♻️ Removed sessionStore from configuration
yannickadam 7159723
👌 Remove allowFallbackToLocalStorage from SessionStoreOptions
yannickadam c25cc2c
👌 Match cookie test key
yannickadam 8ca99ae
👌 Merge SessionStoreOptions in SessionStoreStrategyType
yannickadam b73cec6
👌 Non-null assertion for sessionManager init
yannickadam 8ba024e
👌 Added tests for configuration
yannickadam 2ab51bd
👌 Add e2e tests
yannickadam df3d491
👌 Report allowFallbackToLocalStorage in configuration telemetry
yannickadam 306e128
👌 Fix E2E linting
yannickadam c041354
👌 Remove redundant unit tests
yannickadam 5dcf990
👌 Use snake case for telemetry
yannickadam f49e86a
👌 Use the same key for cookie and localStorage
yannickadam 1de407c
👌 Rename sessionStoreStrategyType to STORE_TYPE + factorize testKey
yannickadam dae11c9
👌 Remove COOKIE_ACCESS_DELAY in favor of STORAGE_POLL_DELAY
yannickadam 8ac8692
👌 Add a test on configuration
yannickadam f3f7b92
👌 Factorize into expandSessionState
yannickadam d5f6633
👌 Fix typo in sessionState
yannickadam 9d9f1fe
Merge branch 'main' into yannick.adam/RUMF-1580_Implement_fallback
yannickadam File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 0 additions & 40 deletions
40
packages/core/src/domain/session/sessionCookieStore.spec.ts
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
44 changes: 0 additions & 44 deletions
44
packages/core/src/domain/session/sessionLocalStorageStore.spec.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.