You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
pricing: a non-USD unit on a hostless or "*" block unprices the bundled table everywhere #1190
Found by an independent review of #1153 at 80348bf (and raised by pdettori there as a suggestion); deferred by the author's call.
After #1153 a unit is host-wide, and only rows in an endpoint's unit may price its traffic. A block with unit: and no hosts: (or hosts: ["*"]) covers every endpoint, so every endpoint no more specific block names takes that unit — and the bundled dollar table stops pricing anything there.
Measured at 80348bf with hosts: ["*"], unit: credits, models: {premium-ide} and the bundled table on:
At a66911e the same request was unit=USD prov=bundled. The unpricing is loud (unpricedBy names every pair); the other half is silent: a charge any of those endpoints reports itself is labelled credits.
Shape of a fix
Refuse a non-USD unit: on a hostless or "*" block at startup, beside the multiplier-only refusal — a unit is a gateway's, so its hosts should be named — with one row added to TestConfig_AUnitOnAMultiplierOnlyBlockIsRefused's table or a sibling.
Activity
fix: Refuse a non-USD unit on a pricing block for every endpoint