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

Only cache payloads matching the current session #855

Merged
merged 1 commit into from
May 17, 2024

Conversation

bidetofevil
Copy link
Collaborator

@bidetofevil bidetofevil commented May 16, 2024

Goal

Only do the session caching if the sessionId of the session object to be cached matches the current session

Testing

Added tests where the caching runs after the current session has moved on to ensure no saving is done.

Copy link
Collaborator Author

bidetofevil commented May 16, 2024

@bidetofevil bidetofevil marked this pull request as ready for review May 17, 2024 00:05
@bidetofevil bidetofevil requested a review from a team as a code owner May 17, 2024 00:05
Copy link
Contributor

@fractalwrench fractalwrench left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link

codecov bot commented May 17, 2024

Codecov Report

Attention: Patch coverage is 66.66667% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 80.76%. Comparing base (fb2dad9) to head (bd36671).
Report is 1 commits behind head on master.

Current head bd36671 differs from pull request most recent head 9b8e510

Please upload reports for the commit 9b8e510 to get more accurate results.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #855      +/-   ##
==========================================
- Coverage   80.80%   80.76%   -0.04%     
==========================================
  Files         429      429              
  Lines       11465    11469       +4     
  Branches     1750     1752       +2     
==========================================
- Hits         9264     9263       -1     
- Misses       1445     1446       +1     
- Partials      756      760       +4     
Files Coverage Δ
...dk/session/orchestrator/SessionOrchestratorImpl.kt 91.60% <66.66%> (-1.20%) ⬇️

... and 2 files with indirect coverage changes

Base automatically changed from hho/session-orchestrator-tests to master May 17, 2024 16:07
@bidetofevil bidetofevil merged commit e875418 into master May 17, 2024
4 checks passed
@bidetofevil bidetofevil deleted the hho/session-caching branch May 17, 2024 17:24
Copy link
Collaborator Author

Merge activity

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.

None yet

2 participants