DeliveryMetrics.NetworkExtend (wsdataselect v1.4.0)

Copy Markdown View Source

Looks up the extended network code (via the Sigma database).

This is called from within the asynchronous DeliveryMetrics.Service process, so it is abstracted behind an injectable backend. In tests a stub is used so the long-lived service never queries the Wsdataselect repo (which uses the Ecto Sandbox in :manual mode) outside of a test's ownership scope.

Summary

Functions

extend(net, year)

@spec extend(String.t(), integer()) :: {:ok, String.t()} | {:error, String.t()}