-
Notifications
You must be signed in to change notification settings - Fork 153
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
configurable sessions expiration #1501
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1501 +/- ##
============================================
+ Coverage 11.63% 11.65% +0.01%
- Complexity 30029 30092 +63
============================================
Files 2154 2157 +3
Lines 665568 665830 +262
Branches 196667 196744 +77
============================================
+ Hits 77464 77571 +107
- Misses 559891 560024 +133
- Partials 28213 28235 +22 ☔ View full report in Codecov by Sentry. |
The implementation seems simple and reasonable, but I'd like to see a few things happen:
|
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.
See comments for requested changes.
c53b85d
to
d43dd19
Compare
d43dd19
to
73ae7f4
Compare
Thank you for the refactor @rpassas. There is a failing test on Azure pipelines: https://dev.azure.com/fhir-pipelines/fhir-core-library/_build/results?buildId=16210&view=logs&j=7448d812-dbed-5970-799b-77d1cf827579&t=5ba38598-e9de-532c-87f1-57d0b28805df I will investigate why that is, and review the test in the process. I also see that the interface you created has methods that are directly bound to the expiring cache implementation. I'm going to create a branch that separates the two that can be merged into this. |
@rpassas Please check these two branches. https://github.com/hapifhir/org.hl7.fhir.core/tree/do-20231211-sessionCache-reset-on-fetch Your test was nearly correct; I repaired it. I made some of the methods have more explicit meaning, and moved some methods to the implementation. Let me know if these changes work for you; I'd like to see them merged into your PRs before merging them to master/main. |
@dotasek I've merged your requested changes (in the wrapper as well). They all look good to me - thanks! |
Summary
Original thread here. I didn't refactor SessionCache into an interface, but I'm happy to do so while we're looking at it.
This is meant to be a simple addition to allow the wrapper to create a
ValidationService
with a configurableSessionCache
. That is, whenresetExpirationAfterAccess
istrue
, an active session's expiration time resets when it is accessed.