Project

General

Profile

Actions

Feature #379

open
NP NP

Canteen: open OutboundCallContext for DietOrderPollJobs IPD calls

Feature #379: Canteen: open OutboundCallContext for DietOrderPollJobs IPD calls

Added by Navya P. about 1 month ago. Updated 30 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
10/13/2026
Due date:
% Done:

0%

Estimated time:
Resolved By:

Description

Second half of the sync-failure fix (first half: Redmine #378, IPD side). DietOrderPollJob has no HttpContext, so AuthTokenForwardingHandler forwards nothing when it calls IPDs dietary-order endpoints -- every poll 401ed, swallowed by the jobs own per-hospital try/catch, so orders created in IPD never reached Canteens Diet orders page. Fix spans two repos: nuvita-shared-kernel registers IOutboundCallContextProvider for the IPD client (TryAddSingleton, same pattern as the EMR client); nuvita-canteen-management wires DietOrderPollJob to fake a per-hospital HttpContext AND open an OutboundCallContext scope with the configured Ipd:InternalApiKey before calling SyncActiveAsync/SyncChangedSinceAsync, mirroring nuvita-ipds own BedDayChargeJob.

NP Updated by Navya P. about 1 month ago Actions #1

  • Status changed from New to Resolved
  • Resolved By set to Navya P.

NP Updated by Navya P. 30 days ago Actions #2

  • Assignee set to Navya P.
Actions

Also available in: PDF Atom