-
-
Notifications
You must be signed in to change notification settings - Fork 788
Use VirtualStudy service from public VS controller #11892
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
Use VirtualStudy service from public VS controller #11892
Conversation
|
Thanks @forus .
Does this mean that computation of "sample IDs dynamically based on the provided filters" has not been occurring yet? Or is this an issue specifically with the public virtual studies controller? If it is just this controller, why would it now need compute the sample IDs dynamically instead of just reusing the same computation already implemented for the regular virtual studies? Or is that what you meant? |
|
@pieterlukasse Thanks for the review! Find my answers below.
Indeed, the computation has not been running for the public virtual studies controller only, which lists public virtual studies on the landing page. However, the calculation has been occurring for the session service endpoints, which are used everywhere else for virtual studies.
It reuses the same computation in the |
3655bd6 to
8816456
Compare
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.
Thanks @forus , I see now. Basically the code is adjusted to correctly use getUserVirtualStudies instead of just sessionServiceRequestHandler.getVirtualStudiesAccessibleToUser(ALL_USERS)
Submitting dynamic virtual studies without explicitly defined sample IDs previously resulted in a NullPointerException. This behavior was incorrect, as dynamic studies are designed to derive their sample IDs dynamically from filters, not require them upfront. The issue revealed that the public VS controller was not using the appropriate VirtualStudy service. This change aligns the controller with the correct service to handle public dynamic virtual studies safely.
8816456 to
4d0eb94
Compare
|



Summary
Submitting dynamic virtual studies without explicitly defined sample IDs previously resulted in a
NullPointerException. This behavior was incorrect, as dynamic studies are designed to derive their sample IDs dynamically from filters, not require them upfront.Root Cause
The issue was traced to the public Virtual Study controller, which was invoking the session service directly. That service assumed precomputed sample IDs and therefore failed for dynamic studies.
Fix
Result
Please merge the fix to the v6 version as well #11891