feat(triggers): surface name on the Trigger model (§4.5, step B-1)
Read the new `name` column through the data model: `Trigger`/`TriggerRow` carry it, every trigger SELECT/RETURNING includes it, and the row→Trigger assembly + the interactive create paths populate it (the create INSERTs still omit it, so they take the migration's default). Behavior unchanged — the apply diff still keys on the semantic tuple; B-2 switches it to name-keying (enabling Update) and wires the manifest. Tested: manager-core lib 367 + trigger journeys green; clippy clean. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -892,6 +892,7 @@ mod tests {
|
||||
id,
|
||||
app_id,
|
||||
script_id: req.script_id,
|
||||
name: "mock".into(),
|
||||
kind: crate::trigger_repo::TriggerKind::Kv,
|
||||
enabled: true,
|
||||
dispatch_mode: req.dispatch_mode,
|
||||
@@ -920,6 +921,7 @@ mod tests {
|
||||
id,
|
||||
app_id,
|
||||
script_id: req.script_id,
|
||||
name: "mock".into(),
|
||||
kind: crate::trigger_repo::TriggerKind::Docs,
|
||||
enabled: true,
|
||||
dispatch_mode: req.dispatch_mode,
|
||||
@@ -948,6 +950,7 @@ mod tests {
|
||||
id,
|
||||
app_id,
|
||||
script_id: req.script_id,
|
||||
name: "mock".into(),
|
||||
kind: crate::trigger_repo::TriggerKind::DeadLetter,
|
||||
enabled: true,
|
||||
dispatch_mode: TriggerDispatchMode::Async,
|
||||
@@ -977,6 +980,7 @@ mod tests {
|
||||
id,
|
||||
app_id,
|
||||
script_id: req.script_id,
|
||||
name: "mock".into(),
|
||||
kind: TriggerKind::Email,
|
||||
enabled: true,
|
||||
dispatch_mode: TriggerDispatchMode::Async,
|
||||
@@ -1021,6 +1025,7 @@ mod tests {
|
||||
id,
|
||||
app_id,
|
||||
script_id: req.script_id,
|
||||
name: "mock".into(),
|
||||
kind: crate::trigger_repo::TriggerKind::Cron,
|
||||
enabled: true,
|
||||
dispatch_mode: req.dispatch_mode,
|
||||
@@ -1050,6 +1055,7 @@ mod tests {
|
||||
id,
|
||||
app_id,
|
||||
script_id: req.script_id,
|
||||
name: "mock".into(),
|
||||
kind: crate::trigger_repo::TriggerKind::Files,
|
||||
enabled: true,
|
||||
dispatch_mode: req.dispatch_mode,
|
||||
@@ -1078,6 +1084,7 @@ mod tests {
|
||||
id,
|
||||
app_id,
|
||||
script_id: req.script_id,
|
||||
name: "mock".into(),
|
||||
kind: crate::trigger_repo::TriggerKind::Pubsub,
|
||||
enabled: true,
|
||||
dispatch_mode: req.dispatch_mode,
|
||||
@@ -1154,6 +1161,7 @@ mod tests {
|
||||
id,
|
||||
app_id,
|
||||
script_id: req.script_id,
|
||||
name: "mock".into(),
|
||||
kind: TriggerKind::Queue,
|
||||
enabled: true,
|
||||
dispatch_mode: req.dispatch_mode,
|
||||
|
||||
Reference in New Issue
Block a user