@maple-dev/alchemy: typed dashboard props, a managed refresh interval, and adopting a dashboard built in the UI
I maintainer di solito rispondono entro 1 giorno
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 18/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- backend-api-design, observability
Direzione di ricerca
Start with the @maple-dev/alchemy provider and its Dashboard, DashboardWidget, and DashboardData types; compare them with the v2 API schema for visualizations, raw_sql sources, layout, and refresh_interval_seconds. The linked open pull request #1872 is the implementation path, so read its diff and related tests rather than starting independently. Done means the typed props, managed refresh interval, and dashboardId adoption behavior are covered by tests and the provider no longer creates a duplicate dashboard when Alchemy state is absent.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Written by an AI agent (Claude) on behalf of @jasonkuhrt.
A team managing its Maple dashboards with @maple-dev/alchemy can't type-check a dashboard, can't manage its refresh interval, and can't take over a dashboard someone already built in the UI.
yield* Maple.Dashboard("service-health", {
name: "Service health",
// Type error: not a prop, though the v2 API has it.
refresh_interval_seconds: 60,
widgets: [
// Type-checks, then the API answers 400 at deploy: "timeseries" is not a
// visualization, and a raw_sql source needs its `sql`.
{ id: "requests", visualization: "timeseries", data_source: { kind: "raw_sql" } },
],
})
And declaring a dashboard that was first built in the UI creates a second one beside it, because the provider creates whenever it has no Alchemy state.
What we'd like to write instead:
// Panels as values, checked where they're written, shared across dashboards.
const requests = Maple.DashboardWidget.make({
id: "requests",
visualization: "stat",
data_source: { kind: "raw_sql", sql: "SELECT count() AS value FROM traces WHERE $__orgFilter" },
display: { title: "Requests" },
layout: { x: 0, y: 0, w: 3, h: 4 },
})
yield* Maple.Dashboard("service-health", {
...Maple.DashboardData.make({ name: "Service health", refresh_interval_seconds: 60, widgets: [requests] }),
// Take over the dashboard built in the UI.
dashboardId: "dash_…",
})
Heartbeat runs this today through a patch of @maple-dev/alchemy 0.2.4, for two dashboards. #1872 implements it.
- Lingua principale
- TypeScript
- Stelle
- 1.8k
- Fork
- 120
- Merge medio
- 8h 11m
- PR unite (30g)
- 667
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di MapleTechLabs/maple
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
MapleTechLabs/maple#1921 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
MapleTechLabs/maple#1888 ·
I maintainer di solito rispondono entro 1 giorno
-
Alerting: Linear as a destination type, opening one issue per incidentForse già presa @Makisuo l’ha presa oggi. Aperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 20/100
MapleTechLabs/maple#1896 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
MapleTechLabs/maple#1874 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
MapleTechLabs/maple#1873 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di MapleTechLabs/maple
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
marmelab/react-admin#11431 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
db-ux-design-system/core-web#8655 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
stripe/react-stripe-js#728 ·
-
[Upload Grade C dataset] the pop-up changes it's size while uploading the document => Jumping effectApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
epam/statgpt-admin-frontend#305 ·
I maintainer di solito rispondono entro 1 giorno