CLI native-alarm-source import of a 4-column CSV resets MES overrides to inherit #104

Closed
opened 2026-11-09 15:35:34 -05:00 by dohertj2 · 1 comment
Owner

A CLI native-alarm-source import of a 4-column CSV (no MesReportable column, #102 item 4) silently resets every imported source's MES override to inherit: the server's bulk handler overwrites the stored value with null when the field is unspecified. The Central UI import already preserves it. Add a server-side "keep the stored value when unspecified" mode (nullable + explicit-clear marker) so the CLI path matches the UI.

A CLI `native-alarm-source import` of a 4-column CSV (no MesReportable column, #102 item 4) silently resets every imported source's MES override to inherit: the server's bulk handler overwrites the stored value with null when the field is unspecified. The Central UI import already preserves it. Add a server-side "keep the stored value when unspecified" mode (nullable + explicit-clear marker) so the CLI path matches the UI.
dohertj2 added the type:bugpriority:p3 labels 2026-11-09 15:35:34 -05:00
Author
Owner

Fixed on main 063fb218: bulk-override entries gain optional KeepStoredMesReportable — when set the server leaves the stored MES flag alone (a new row inherits); unset keeps today's behaviour (blank = clear to inherit), so older callers are unaffected. CLI and Central UI now build entries the same way (the UI's client-side lookup is gone). Keep-stored server tests + CLI 4-column test fail without the fix. Evidence (after rebase): slnx 0 warnings/0 errors; ManagementService 752, CLI 571, CentralUI 1533, InboundAPI 373, Security 199, ExternalSystemGateway 146, TemplateEngine 617, Transport.IntegrationTests 145, Host 623, Commons 915 passed; key projects re-run green on the pushed tip.

Fixed on main 063fb218: bulk-override entries gain optional KeepStoredMesReportable — when set the server leaves the stored MES flag alone (a new row inherits); unset keeps today's behaviour (blank = clear to inherit), so older callers are unaffected. CLI and Central UI now build entries the same way (the UI's client-side lookup is gone). Keep-stored server tests + CLI 4-column test fail without the fix. Evidence (after rebase): slnx 0 warnings/0 errors; ManagementService 752, CLI 571, CentralUI 1533, InboundAPI 373, Security 199, ExternalSystemGateway 146, TemplateEngine 617, Transport.IntegrationTests 145, Host 623, Commons 915 passed; key projects re-run green on the pushed tip.
Sign in to join this conversation.