Feature #379
openCanteen: open OutboundCallContext for DietOrderPollJobs IPD calls
0%
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
- Status changed from New to Resolved
- Resolved By set to Navya P.