Closed tmfrnz closed 5 years ago
Investigating:
Having had a look at the code, it turns out that
only future due dates are generated for 'repeat indicators' (see L34)
but
past due dates are generated for 'one-off indicators' (see L40)
However when updating an indicator, more specifically its reporting schedule,
only future due dates are deleted and re-generated on update. (see L47)
This is what I suspect must have happened to indicators 235 and 236 where at first only a single date was defined and stored and subsequently they were updated to include multiple dates, generating all future dates but without deleting the original date that is already in the past.
Indicator 237 must have been created with a range of dates from the start.
I understand that this behaviour is unexpected and hard for the user to grasp. Therefore we should either
My recommendation would be to do (1) that would give more flexibility but also responsibility to the user.
What do you think @ashbowe?
For a temporary workaround you can create a past due date by
I understand that this behaviour is unexpected and hard for the user to grasp. Therefore we should either
- allow past due dates also for 'repeat indicators' (as we do for one-offs), or
- validate that due dates have to be in the future and provide the user with a corresponding error message.
My recommendation would be to do (1) that would give more flexibility but also responsibility to the user.
What do you think @ashbowe?
Hi Timo - yes option 1 definitely
For a temporary workaround you can create a past due date by
- disable the repeat option for the indicator and save (to generate the past due date)
- then re-enable the repeat option and save for all future due dates
Sounds good
Fixed BUT new due dates are not shown right away... https://github.com/nmrf/sadata/issues/40
@ashbowe reported (via email)