-
Notifications
You must be signed in to change notification settings - Fork 142
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
♻️ [RUMF-1580] Decouple storage mechanism #2259
♻️ [RUMF-1580] Decouple storage mechanism #2259
Conversation
Current dependencies on/for this PR:
This comment was auto-generated by Graphite. |
4fca135
to
e4af055
Compare
Codecov Report
@@ Coverage Diff @@
## main #2259 +/- ##
==========================================
- Coverage 93.81% 93.79% -0.03%
==========================================
Files 201 203 +2
Lines 6083 6090 +7
Branches 1347 1348 +1
==========================================
+ Hits 5707 5712 +5
- Misses 376 378 +2
... and 3 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
e4af055
to
20b0d29
Compare
bufferedOperations.push(operations) | ||
return | ||
} | ||
if (lockEnabled && numberOfRetries >= LOCK_MAX_TRIES) { |
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.
💬 suggestion: is it needed?
if (lockEnabled && numberOfRetries >= LOCK_MAX_TRIES) { | |
if (numberOfRetries >= LOCK_MAX_TRIES) { |
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.
Somehow yes - If lockEnabled
is removed - the code works only because LOCK_MAX_TRIES > 0. I'd prefer not to check the lock retry mechanism when locks are not enabled.
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.
Setting LOCK_MAX_TRIES
to 0 seems unlikely but I get the intent.
Could we make a test to enforce that?
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.
👍
Motivation
Before implementing alternate storage mechanism, decouple sessionStore from sessionCookieStore.
Changes
Testing
I have gone over the contributing documentation.