Test Run banner says Notify sends real email, but Notify is faked in the sandbox #151
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
The Test Run panel in the template script dialog and the shared-script form says
External,DatabaseandNotify"fire for real … real HTTP, real SQL, real emails". ForNotifythat is false: Test Run gives scriptsSandboxNotifyTarget, whoseSendreturns a random GUID and enqueues and delivers nothing (src/ZB.MOM.WW.ScadaBridge.CentralUI/ScriptAnalysis/SandboxHostHelpers.cs:150-168).Impact
An operator tests a notification script, gets
WasSuccessful: trueand a NotificationId, and waits for an email that never arrives. No row appears inNotifications/ the Notification Report either.Repro (DEV vd03, 2026-11-28)
Template
NotifyExample(49) → scriptSendTestNotification→ Test Run withNotificationList = <a list containing your own address>. The run returnsNotificationId 5f200e728cb04db1a0e7a930cb2ca9de.SELECT … FROM Notifications WHERE NotificationId = '5f200e72…'returns 0 rows, and no email arrives. The same script on a deployed instance (Flow Debugger) is Delivered in ~4 s.Banner text locations
src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/TemplateScriptDialog.razor:167src/ZB.MOM.WW.ScadaBridge.CentralUI/Components/Pages/Design/SharedScriptForm.razor:113Fix (pick one)
Notifyis simulated (a fake id is returned and nothing is sent); point users at Flow Debugger on a deployed instance for a real send. Optionally write a console line from the sandboxSend("[sandbox] Notify.To('X').Send not delivered").Sendinto the central Notification Outbox (insert-if-not-exists, the same as site ingest), so it really sends, matching the banner and the External/Database behaviour.Fixed in
8010fee2(main): chose 'correct the banner'. Both Test Run banners now say External/Database are real and Notify is simulated (fake NotificationId, nothing queued or sent) and point to Deployment → Flow Debugger for a real send. The sandbox Notify.To(list).Send also writes a '[sandbox] ... not delivered' line to the Test Run console.