When setting a PIT date, set the validity end date of the actual content constraint of the current LIVE data to that date
When a PIT date for a PIT release is set, then the actual content constraint “live” doesn’t have yet a “validTo” property set to the PIT date, while the actual content constraint "pit" has already a "validFrom" property with this date. This means that after the release date both content constraints are valid, which is not conforming with SDMX.
This task is to set the “validTo” property of the actual content constraint “live” to the PIT date, when a PIT date is set by the user through a data upload action.
When the release happens, both actual content constraints ("Live" and "Pit") remain available until the submission of a next PIT release. When this occurs then the current "Pit" version becomes the "Live" one and its "validTo" property is filled with the new PIT release date.
Example
Let's assume that the PIT release datetime is 30/01/2020 12:00:00. With the following settings, the validity time span is valid before and also after the PIT release date, thus the constraints do not need to be modified when a PIT release happens.
ACC version | validFrom | validTo | validity time span |
---|---|---|---|
Live | unlimited | 30/01/2020 12:00:00 | all past times --> 30/01/2020 12:00:00 --------------------- |
Pit | 30/01/2020 12:00:00 | unlimited | ------------------- 30/01/2020 12:00:00 --> all future times |
Actual content constraints and their validity dates would need to be changed only when the next PIT release is prepared.
ACC = Actual Content Constraint