fix: choose the last snapshot when reset to the latest snapshot is requested
Description
Sometimes the --latest
flag isn't giving the latest snapshot (for example, depending on the order of the datasets)
Choose the latest snapshot according to the following properties:
- dataStateAt
- createdAt (if dataStateAt is empty)
Related issue
Examples
Checklist
-
MR description has been reviewed -
MR changes are functionally tested -
MR does NOT have API/CLI changes OR there are API/CLI changes and they have been reviewed & DOCS ARE ADJUSTED (reference doc, etc) -
MR does NOT have UI changes OR there are UI changes and they have been reviewed & UX IS REVIEWED
Edited by Nikolay Samokhvalov