Project

General

Profile

Actions

Bug #26605

closed

CurrentUser.queryContext is null when used in a ZIO for

Added by François ARMAND 2 months ago. Updated about 2 months ago.

Status:
Released
Priority:
N/A
Category:
Architecture - Code maintenance
Target version:
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.


Subtasks 2 (0 open2 closed)

Rudder plugins - Bug #26608: CurrentUser.queryContext is null when used in a ZIO for (public plugins)ReleasedClark ANDRIANASOLOActions
Rudder plugins - Bug #26609: CurrentUser.queryContext is null when used in a ZIO for (private plugin)ReleasedClark ANDRIANASOLOActions

Related issues 3 (0 open3 closed)

Related to Rudder - Bug #26599: Missing Score pie charts on dashboardReleasedFrançois ARMANDActions
Related to Rudder - Bug #26625: Ubuntu 22.04 agent cannot be accepted on the serverReleasedClark ANDRIANASOLOActions
Related to Rudder - User story #26688: Initial page after Rudder installation should be the license tab at welcome stepReleasedFrançois ARMANDActions
Actions

Also available in: Atom PDF