mirror of
https://github.com/pacnpal/thrilltrack-explorer.git
synced 2025-12-20 13:31:12 -05:00
Implement pipeline monitoring alerts
Approve and implement the Supabase migration for the pipeline monitoring alert system. This includes expanding alert types, adding new monitoring functions, and updating existing ones with escalating thresholds.
This commit is contained in:
@@ -438,6 +438,18 @@ async function submitCompositeCreation(
|
||||
}
|
||||
|
||||
if (errors.length > 0) {
|
||||
// Report to system alerts (non-blocking)
|
||||
import('./pipelineAlerts').then(async ({ reportTempRefError }) => {
|
||||
try {
|
||||
const { data: { user } } = await supabase.auth.getUser();
|
||||
if (user) {
|
||||
await reportTempRefError(uploadedPrimary.type, errors, user.id);
|
||||
}
|
||||
} catch (e) {
|
||||
console.warn('Failed to report temp ref error:', e);
|
||||
}
|
||||
});
|
||||
|
||||
throw new Error(`Temp reference validation failed: ${errors.join(', ')}`);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user