Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

stateless tipg: remove `collection_catalog`

Đang mở
#37 1 bình luận 0 reaction 2 người được giao Xem trên GitHub

@bitner đang làm issue này rồi.

Từ ngày 16/3/2023.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

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

Ngôn ngữ chính
PLpgSQL
Star
224
Fork
39
Merge trung bình
2 ngày 18 giờ
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của developmentseed/tipg

Tất cả issue của developmentseed/tipg

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.