Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Adjust parameter archive queries so that start and stop parameters are always inclusive. #147

Closed
2 of 5 tasks
akhenry opened this issue Jun 14, 2022 · 2 comments · Fixed by #150
Closed
2 of 5 tasks
Labels

Comments

@akhenry
Copy link
Owner

akhenry commented Jun 14, 2022

This is also tracked as VIPERGDS-917 and has previously been found in Open MCT testing.

Summary

The start and stop query parameters in Yamcs archive requests are variously inclusive and exclusive depending on sort order. Specifically:

  • Ascending: [start, stop) - ie. inclusive start, exclusive stop
  • Descending: [stop, start) - ie. inclusive stop, exclusive start

Open MCT's model is for all time conductor queries to be inclusive. In order to adapt to Yamcs' model we could just adjust the start or stop parameters of the query (depending on the sort order) by 1ms to render them inclusive.

Expected vs Current Behavior

Historical queries should always treat the start and end bounds of the time conductor as inclusive.

Impact Check List

  • Data loss or misrepresented data?
  • Regression? Did this used to work or has it always been broken?
  • Is there a workaround available?
  • Does this impact a critical component?
  • Is this just a visual bug with no functional impact?

Environment

  • Open MCT Version: 2.0.5
@akhenry akhenry added type:bug Something isn't working severity:blocker labels Jun 14, 2022
@akhenry akhenry changed the title Adjust time-base queries to render start and end dates always inclusive. Adjust parameter archive queries so that start and stop parameters are always inclusive. Jun 14, 2022
@jvigliotta
Copy link
Collaborator

jvigliotta commented Jun 16, 2022

Testing

  • view a telemetry table in fixed mode with one object and with a short timespan (enough for 5 or so rows to show up)
  • change the 'end' time to the first row's timestamp
  • make sure the first row doesn't disappear
  • view a LAD table in fixed time mode with one object
  • change the start time to the timestamp of the row's timestamp
  • make sure the row had data

@ozyx
Copy link
Collaborator

ozyx commented Jul 8, 2022

Verified Testathon 7/8/22

Row does not disappear, datum w/ end timestamp in LAD table has data

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants