feat(metabase): nuevos modulos — snippets, notifications, dashboard_filters

Tres modulos nuevos con funciones CRUD completas:
- snippets: list, get, create, update, archive (SQL reutilizable)
- notifications: list, create_card_alert, create_dashboard_subscription, update, delete
- dashboard_filters: add_dashboard_filter (parameter_mappings sobre cards existentes)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-14 19:03:08 +02:00
parent 7081c3b4d1
commit 4299482b75
14 changed files with 1105 additions and 0 deletions
@@ -0,0 +1,44 @@
---
name: metabase_delete_notification
kind: function
lang: py
domain: infra
version: "1.0.0"
purity: impure
signature: "def metabase_delete_notification(client: MetabaseClient, notification_id: int) -> None"
description: "Elimina una notificacion de Metabase (alerta de card o suscripcion de dashboard). Operacion irreversible. Endpoint: DELETE /api/notification/:id."
tags: [metabase, notification, delete, api, python]
uses_functions: []
uses_types: []
returns: []
returns_optional: false
error_type: "error_go_core"
imports: []
params:
- name: client
desc: "instancia autenticada de MetabaseClient"
- name: notification_id
desc: "ID de la notificacion a eliminar"
output: "None"
tested: false
tests: []
test_file_path: ""
file_path: "python/functions/metabase/notifications.py"
---
## Ejemplo
```python
# Eliminar una alerta por su ID
metabase_delete_notification(client, 99)
# Patron: listar y eliminar todas las alertas de una card
alerts = metabase_list_notifications(client, card_id=7711)
for a in alerts:
metabase_delete_notification(client, a["id"])
```
## Notas
La operacion es irreversible. Para desactivar temporalmente usar metabase_update_notification con active=False.
Elimina tanto alertas de cards (notification/card) como suscripciones de dashboards (notification/dashboard).