maykinmedia/sdg-invoervoorziening

Creating a product(version) via the API with a future pubdate does not overwrite the previously saved future published product

joeribekker opened this issue · 0 comments

If there is future publication, publishing a new version should overwrite this future publication. We do not support multiple future publications.

Uit de API docs:

Indien er een versie is met een publicatiedatum in de toekomst, en er wordt een nieuwe versie aangemaakt, dan overschrijft deze versie de toekomstige versie. Er kunnen dus niet meerdere toekomstige versies zijn.

This goes wrong in the current code and even leads to multiple productversions-objects with the same version number.

In real-world scenario's this is not really a problem since the versionnumber is never publicly shown on a website.