Closed maabdelghaffar closed 6 years ago
Nice. Would it be possible to also implement a "is_product_published" to check if a product with specific ID (e.g. S1B_IW_GRDH_1SDV_20171013T095250_20171013T095315_007809_00DCB4_7722) is already published? I am afraid that the get_published_products will get big over time (with hundereds/thousand new products each day..)
Yes sure
Yes log message updated and product_id will be included in the geoserver_rest_endpoint
Ah, ok. I would have make the function explicit (..,collection_id,product_id) and building the url within instead of building the url outside the function. @randomorder: what do you think?
@torse @maabdelghaffar I agree with @torse One more thing: Currently on error returns None.
elif r.status_code != 200 and r.status_code != 404:
log.info("Request failed")
return None
I think it would be better to raise an exception and let the caller decide what to do. Take a look at what we do for the publishing function here: https://github.com/geosolutions-it/evo-odas/blob/master/airflow/plugins/geoserver_plugin.py#L261
Duplicated PR #270
This PR includes: