5f4f1f7508
Añade campos params y output al frontmatter YAML de las 506 funciones del registry. Cada parámetro tiene descripción semántica (qué representa, unidades, rango típico) y cada función describe qué produce su output. Permite a agentes razonar sobre cadenas de composición (ej: prices → log_return → sharpe_ratio) sin leer código.
1.3 KiB
1.3 KiB
name, kind, lang, domain, version, purity, signature, description, tags, uses_functions, uses_types, returns, returns_optional, error_type, imports, params, output, tested, tests, test_file_path, file_path
| name | kind | lang | domain | version | purity | signature | description | tags | uses_functions | uses_types | returns | returns_optional | error_type | imports | params | output | tested | tests | test_file_path | file_path | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| metabase_delete_dashboard | function | go | infra | 1.0.0 | impure | func MetabaseDeleteDashboard(client MetabaseClient, dashboardID int) error | Elimina permanentemente un dashboard de Metabase. Accion irreversible. Para soft-delete usar MetabaseUpdateDashboard con archived:true. Endpoint: DELETE /api/dashboard/:id. |
|
|
false | error_go_core |
|
|
nil si la eliminacion fue exitosa, error en caso contrario | false | functions/infra/metabase_delete_dashboard.go |
Ejemplo
// Eliminar permanentemente
err := MetabaseDeleteDashboard(client, 1)
// Preferir soft-delete:
// MetabaseUpdateDashboard(client, 1, map[string]any{"archived": true})
Notas
ATENCION: Esta operacion es irreversible. El dashboard y todas sus dashcards se eliminan permanentemente.
Para un borrado seguro, preferir archivar con MetabaseUpdateDashboard(client, dashboardID, map[string]any{"archived": true}).