Closed taldcroft closed 2 years ago
Commands and states
Commands
Figure out the earliest time where all state items are populated and publish that in the docs, right at the top, in place of "2002".
You can mention that some state items might be populated prior to that time.
I doubt it will change.
And also put it in the error messages.
The earliest possible date a user can specify, where all states have been populated, ought to be listed in the documentation.
The problem is that "all states" is not well-defined. Since states are dynamically computed and there are many of them (including more obscure or user-defined ones that are not in the legacy standard list), there is no single answer if you want to push the boundaries.
I could conservatively say that a query starting in 2003:001 will always succeed and declare that as the beginning.
Description
This improves the exception message to provide better feedback to the user in the case when an early
start
time makes it not possible to establish continuity.The suggestion in #239 was to make it that the returned states start when available data allow, similar to how
cheta
functions when fetching telemetry. This is a good idea, but due to the way dynamic command states are built up on the fly from continuity, implementing this would not be straightforward. The effective start time depends on when all of the required commands to define a particular state or states have been issued.Instead, this just gets the user on the right track more quickly by highlighting the problem and a workaround.
Fixes #239
Interface impacts
Testing
Unit tests
Independent check of unit tests by [REVIEWER NAME]
Functional tests