Data is published when it has been marked as recorded ("verzeichnet"). Currently the only indicator for data being published are the reports, which will return proper content then.
The second important factor of publishing data is the binding_date ("Bestandskraftdatum").
Fix
Add a is_published() method to the data models, which holds all relevant checks for determining a data being published now or not. This function can then be used handy at any place in the code for a quick lookup.
# Status quo
Data is published when it has been marked as `recorded` ("verzeichnet"). Currently the only indicator for data being published are the reports, which will return proper content then.
The second important factor of publishing data is the `binding_date` ("Bestandskraftdatum").
# Fix
Add a `is_published()` method to the data models, which holds all relevant checks for determining a data being published now or not. This function can then be used handy at any place in the code for a quick lookup.
Status quo
Data is published when it has been marked as
recorded
("verzeichnet"). Currently the only indicator for data being published are the reports, which will return proper content then.The second important factor of publishing data is the
binding_date
("Bestandskraftdatum").Fix
Add a
is_published()
method to the data models, which holds all relevant checks for determining a data being published now or not. This function can then be used handy at any place in the code for a quick lookup.Merged in #84