Add a "play to time" feature to the HistoricalModel API #240
Labels
client
Issues related to the client
enhancement
New feature or request
proto
server
Issues related to the server
Milestone
Versions
Description
Presently, you can only play to a version in the HistoricalModel class. It would be helpful to be able to play back the model to a certain point in time. However, it is possible that a version does not explicitly correspond to a particular wall time. Assume the following operations timestamps (all on the same day):
Requesting to play to any time before 1pm or after 1:07pm would be an error condition. Users of the model do know time bounds of the model, so we will expect them to use those as proper bounds. Asking to play back to 1:05pm would bring us to the document with operations 1 and 2 applied. If a valid time (within the min / max bounds) is requested, but that does not correspond to an operation timestamp. The model will be played back to the previous operation. For example if 1:02pm was requested, the model would be at the document version that only has Op1 applied.
Here is the proposed API:
The following protocol messages will be added:
The text was updated successfully, but these errors were encountered: