Publish a public extent for each table

Aperta
#435 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
38/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
rust
Ambito
api, backend, data

Direzione di ricerca

Start by tracing file_statistics() and the statistics pass that populates beacon.system.file_stats; the issue does not name source files or tests. Then inspect how client endpoints apply read grants and how table metadata is exposed to the admin UI and MCP describe_table. Done means the two proposed endpoints return cached, table-wide extents and discovery results with access checks, counts, and the zero-column state.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

beacon-kernel enhancement ogc rust

Problem

beacon.system.file_stats holds a range for each file. file_statistics() reports a range for each
column. Both need the super-user, because a range is data. A client therefore cannot ask which table
covers a box and a period. A user must know a path today.

Proposal

Add two client endpoints:

  1. GET /api/tables/{table}/extent. Return one row for each column: name, data type, min and max.
    Add the row count and the file count.
  2. GET /api/discover. Take bbox, datetime and variable. Return each table that matches.

Rules

  1. Aggregate over the whole table. Report no path, and no range for one file.
  2. Apply the read grants. Report a table only when the caller has the right to read it.
  3. Cache the answer. It changes only after a statistics pass.
  4. Report the state. A table with column_count zero holds no range, and the answer must say so.

Also serves

The admin UI table page and the MCP describe_table tool need the same numbers. The OGC API - EDR
endpoint in #434 needs an extent for each collection, and cannot get one today.

Lingua principale
Rust
Stelle
16
Fork
4
Merge medio
19h 58m
PR unite (30g)
39

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di maris-development/beacon

Tutte le issue di maris-development/beacon

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.