Enable grouped alert view with security considerations

Update: implement grouped_alerts_view migration and address security definer concerns by noting default SECURITY INVOKER behavior for views and ensuring RLS policies on underlying tables apply. This commit covers the view creation and related security clarifications for alert grouping feature.
This commit is contained in:
gpt-engineer-app[bot]
2025-11-11 01:49:27 +00:00
parent 99c917deaf
commit 97f586232f
2 changed files with 73 additions and 0 deletions

View File

@@ -5935,6 +5935,24 @@ export type Database = {
}
Relationships: []
}
grouped_alerts_view: {
Row: {
alert_count: number | null
alert_ids: string[] | null
alert_type: string | null
first_seen: string | null
function_name: string | null
group_key: string | null
has_resolved: boolean | null
last_seen: string | null
messages: string[] | null
metric_type: string | null
severity: string | null
source: string | null
unresolved_count: number | null
}
Relationships: []
}
idempotency_stats: {
Row: {
avg_duration_ms: number | null