Northeastern-Electric-Racing / Argos

Our full-stack data visualization tool
GNU Affero General Public License v3.0
1 stars 0 forks source link

Migrate ServerData Protobuf to v2, switch internal struct to chrono + f32, update time sourcing logic #216

Closed jr1221 closed 1 month ago

jr1221 commented 1 month ago

Changes

See title. Was just going to just migrate serverdata and update time sourcing logic, but ran into a ton of bugs with ClientData using millisecond timestamps that would require refactoring every instantiation of the struct. So I said fug it and switched the struct to store a DateTime so any caller can pass in precise time. This DateTime is also how the prisma layer understands time. All times utc!!

Also switched the internal data representation to f32 from string because it was really annoying me all of the mapping and parsing back and forth we do. This can be reverted no biggie.

Test Cases

Checklist

It can be helpful to check the Checks and Files changed tabs. Please review the contributor guide and reach out to your Tech Lead if anything is unclear. Please request reviewers and ping on slack only after you've gone through this whole checklist.