Project

General

Profile

Actions

Bug #26605

open

CurrentUser.queryContext is null when used in a ZIO for

Added by François ARMAND 5 days ago. Updated 4 days ago.

Status:
Pending release
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 (2 open0 closed)

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

Related issues 2 (2 open0 closed)

Related to Rudder - Bug #26599: Missing Score pie charts on dashboardPending releaseFrançois ARMANDActions
Related to Rudder - Bug #26625: Ubuntu 22.04 agent cannot be accepted on the serverPending releaseClark ANDRIANASOLOActions
Actions #1

Updated by François ARMAND 5 days ago

  • Related to Bug #26599: Missing Score pie charts on dashboard added
Actions #2

Updated by François ARMAND 5 days ago

  • Status changed from New to In progress
  • Assignee set to François ARMAND
Actions #3

Updated by François ARMAND 5 days ago

  • Subtask #26608 added
Actions #4

Updated by François ARMAND 5 days ago

  • Subtask #26609 added
Actions #5

Updated by François ARMAND 5 days ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from François ARMAND to Clark ANDRIANASOLO
  • Pull Request set to https://github.com/Normation/rudder/pull/6280
Actions #6

Updated by Anonymous 4 days ago

  • Status changed from Pending technical review to Pending release
Actions #7

Updated by François ARMAND 3 days ago

  • Related to Bug #26625: Ubuntu 22.04 agent cannot be accepted on the server added
Actions

Also available in: Atom PDF