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
Introduce SessionService and SessionEntityInterface. #3555
Conversation
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.
Some minor things, but otherwise looks good!
module/VuFind/src/VuFind/Db/Service/SessionServiceInterface.php
Outdated
Show resolved
Hide resolved
module/VuFind/src/VuFind/Db/Service/SessionServiceInterface.php
Outdated
Show resolved
Hide resolved
module/VuFind/src/VuFind/Db/Service/SessionServiceInterface.php
Outdated
Show resolved
Hide resolved
Thanks for all the catches, @aleksip -- it shows that I was rushing to get this done at the end of the day; I appreciate your attention to detail. :-) I'm a little surprised that some of these things failed to trigger code style or phpstan warnings! In any case, I believe all of your suggestions have been addressed now. |
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.
@demiankatz Yes, I too was a bit surprised about that. Anyway, looks all good now!
This PR sets up another database entity interface and service to pave the way for #2233. It makes some minor improvements upon the current code in #2233 (e.g. renaming getBySessionId to getSessionById for consistency with existing methods like getUserById in other services); I will reconcile the differences in #2233 after this is merged.
This also adds a unit test for the SystemStatus Ajax handler, which did not previously have one.