Actions
Bug #26605
openCurrentUser.queryContext is null when used in a ZIO for
Status:
Pending release
Priority:
N/A
Assignee:
Category:
Architecture - Code maintenance
Target version:
Pull Request:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
To do
Fix check:
To do
Regression:
No
Description
As see in #26599, it seems that the pattern:
(for { ... IOResults things ... _ <- someService(...)(CurrentUser.queryContext) ... } yield (...)).runNow
Leads to having an empty context.
We need to weave-up the implicit context as a method parameter up to the root call site and call `CurrentUser.queryContext` out of the outer-most zio for loop.
Actions