Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

stateless tipg: remove `collection_catalog`

Aperta
#37 1 commento 0 reazioni 2 assegnatari Vedi su GitHub

@bitner ci sta già lavorando.

Dal 16/3/2023.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

Since the start of tifeature/timvt/tipg, we designed the application with having a list of the available collections/layers stored in the application State: https://github.com/developmentseed/tipg/blob/489f0243b0b4f0d46d12f06a1baf0bccc1d4232a/tipg/db.py#L83

This gave some advantages:

The collection_catalog is created at application startup https://github.com/developmentseed/tipg/blob/489f0243b0b4f0d46d12f06a1baf0bccc1d4232a/tipg/main.py#L65-L80 because we assumed it's a pretty costly process.

The problem then (as explained in https://github.com/developmentseed/eoAPI/pull/55#issuecomment-1471006644) is when you have changed in the DB (e.g new table) it won't show up in the application because the catalog is now updated.

Proposal

  • remove collection_catalog
  • create a clean SQL function which will list the collections
  • the function should accept id (to return only one collection), limit, offset, spatial_filter and temporal_filter

cc @bitner

Lingua principale
PLpgSQL
Stelle
224
Fork
39
Merge medio
2g 18h
PR unite (30g)
6

Preparare l'ambiente

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 developmentseed/tipg

Tutte le issue di developmentseed/tipg

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.