brazil-data-cube / bdc-catalog

Brazil Data Cube Image Metadata Catalog
https://bdc-catalog.readthedocs.io/en/latest/
GNU General Public License v3.0
4 stars 10 forks source link

Timeline trigger should not consider end_date #159

Closed raphaelrpl closed 2 years ago

raphaelrpl commented 2 years ago

The trigger bdc_catalog.triggers.timeline.sql is considering both start_date and end_date. For data cubes which has composition period, it turns out in wrong time line:

2020-01-01_2020-01-16    =>   2020-01-01, 2020-01-16
2020-01-17_2020-02-01    =>   2020-01-17, 2020-02-01

It should consider only start date

2020-01-01_2020-01-16    =>   2020-01-01
2020-01-17_2020-02-01    =>   2020-01-17
raphaelrpl commented 2 years ago

Resolved in #157 de1c2965c9c05481edfadd51935e1286a0c63482