Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

stateless tipg: remove `collection_catalog`

オープン
#37 コメント 1 件 リアクション 0 件 担当者 2 名 GitHub で見る

@bitner がすでに取り組んでいます。

2023年3月16日 から。

評価

この issue はまだ評価されていません。

説明

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

主要言語
PLpgSQL
スター
220
フォーク
39
平均マージ
1日 18時間
マージ済み PR(30日)
6

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

developmentseed/tipg のほかの issue

developmentseed/tipg の issue をすべて見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。