Repository navigation
Refactor/sensor routes backend - #47
Closed
henrybednarz wants to merge 13 commits into
Closed
henrybednarz wants to merge 13 commits into
henrybednarz wants to merge 13 commits into
Conversation
…GenerateNU/orion into refactor/backend-pipeline-split
Update from UUID -> String since since penelope stores their UUIDs are strings so it can cause issues if they are not properly handled on their end. Created script for populating sensor mapping data in orionDB
Implemented clean step for new pipeline.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Added CSR for sensor service. Created two new endpoints for fetching dataType information from penleope table
Added second endpoint for pulling information from Penelope raw data passing runID, time bounds, and sensor names to pull
How Has This Been Tested?
Describe your steps for testing this work. Include screenshots or unit test files.
(base) henry@Henrys-MacBook-Pro ~ % curl -X 'GET' \ 'http://127.0.0.1:8100/api/v1/runs/3adaad41-0f1a-42e3-b6d7-02db50a6644a/sensors/data?sensors=TPU%2FGPS%2FLocation&start=2026-08-15%2019%3A59%3A04.730892&end=2026-08-15%2019%3A59%3A14.730892' \ -H 'accept: */*' {"run_id":"3adaad41-0f1a-42e3-b6d7-02db50a6644a","start":"2026-08-15T19:59:04.730892","end":"2026-08-15T19:59:14.730892","series":{"TPU/GPS/Location":{"time":["2026-08-15T19:59:04.848442Z","2026-08-15T19:59:04.981796Z","2026-08-15T19:59:05.115106Z","2026-08-15T19:59:05.492379Z","2026-08-15T19:59:05.601196Z","2026-08-15T19:59:05.727341Z","2026-08-15T19:59:05.871329Z","2026-08-15T19:59:05.889378Z","2026-08-15T19:59:06.268602Z","2026-08-15T19:59:06.972480Z","2026-08-15T19:59:07.080333Z","2026-08-15T19:59:07.188707Z","2026-08-15T19:59:07.297288Z","2026-08-15T19:59:07.423232Z","2026-08-15T19:59:07.531459Z","2026-08-15T19:59:07.639833Z","2026-08-15T19:59:07.712554Z","2026-08-15T19:59:07.838329Z","2026-08-15T19:59:08.271618Z","2026-08-15T19:59:08.506860Z","2026-08-15T19:59:08.614212Z","2026-08-15T19:59:08.722468Z","2026-08-15T19:59:08.830880Z","2026-08-15T19:59:08.957401Z","2026-08-15T19:59:09.384192Z","2026-08-15T19:59:09.857446Z","2026-08-15T19:59:10.133477Z","2026-08-15T19:59:10.516520Z","2026-08-15T19:59:10.881178Z","2026-08-15T19:59:11.262458Z","2026-08-15T19:59:11.628870Z","2026-08-15T19:59:11.949545Z","2026-08-15T19:59:12.041347Z","2026-08-15T19:59:12.132542Z","2026-08-15T19:59:12.239820Z","2026-08-15T19:59:12.331540Z","2026-08-15T19:59:12.422814Z","2026-08-15T19:59:12.514253Z","2026-08-15T19:59:13.568716Z","2026-08-15T19:59:14.133205Z","2026-08-15T19:59:14.423930Z"],"values":[[42.491024,-71.13422],[42.491024,-71.13422],[42.491024,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.491016,-71.13422],[42.491016,-71.13422],[42.491016,-71.13422],[42.491016,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.49102,-71.13422],[42.491024,-71.13421],[42.49104,-71.134186],[42.491055,-71.13415],[42.491055,-71.13415]]}}}% (base) henry@Henrys-MacBook-Pro ~ % curl -X 'GET' \ 'http://127.0.0.1:8100/api/v1/runs/3adaad41-0f1a-42e3-b6d7-02db50a6644a/sensors/data?sensors=TPU%2FGPS%2FLocation&start=2026-08-15%2019%3A59%3A04.730892&end=2026-08-15%2019%3A59%3A04.750892' \ -H 'accept: */*' {"run_id":"3adaad41-0f1a-42e3-b6d7-02db50a6644a","start":"2026-08-15T19:59:04.730892","end":"2026-08-15T19:59:04.750892","series":{"TPU/GPS/Location":{"time":[],"values":[]}}}% (base) henry@Henrys-MacBook-Pro ~ % curl -X 'GET' \ 'http://127.0.0.1:8100/api/v1/runs/3adaad41-0f1a-42e3-b6d7-02db50a6644a/sensors/data?sensors=TPU%2FGPS%2FLocation&start=2026-08-15%2019%3A59%3A04.730892&end=2026-08-15%2019%3A59%3A04.850892' \ -H 'accept: */*' {"run_id":"3adaad41-0f1a-42e3-b6d7-02db50a6644a","start":"2026-08-15T19:59:04.730892","end":"2026-08-15T19:59:04.850892","series":{"TPU/GPS/Location":{"time":["2026-08-15T19:59:04.848442Z"],"values":[[42.491024,-71.13422]]}}}% (base) henry@Henrys-MacBook-Pro ~ % curl -X 'GET' \ 'http://127.0.0.1:8100/api/v1/runs/3adaad41-0f1a-42e3-b6d7-02db50a6644a/sensors/data?sensors=TPU%2FGPS%2FLocation&start=2026-08-15%2019%3A59%3A04.730892&end=2026-08-15%2019%3A59%3A04.950892' \ -H 'accept: */*' {"run_id":"3adaad41-0f1a-42e3-b6d7-02db50a6644a","start":"2026-08-15T19:59:04.730892","end":"2026-08-15T19:59:04.950892","series":{"TPU/GPS/Location":{"time":["2026-08-15T19:59:04.848442Z"],"values":[[42.491024,-71.13422]]}}}% (base) henry@Henrys-MacBook-Pro ~ % curl -X 'GET' \ 'http://127.0.0.1:8100/api/v1/runs/3adaad41-0f1a-42e3-b6d7-02db50a6644a/sensors/data?sensors=TPU%2FGPS%2FLocation&start=2026-08-15%2019%3A59%3A04.730892&end=2026-08-15%2019%3A59%3A05.050892' \ -H 'accept: */*' {"run_id":"3adaad41-0f1a-42e3-b6d7-02db50a6644a","start":"2026-08-15T19:59:04.730892","end":"2026-08-15T19:59:05.050892","series":{"TPU/GPS/Location":{"time":["2026-08-15T19:59:04.848442Z","2026-08-15T19:59:04.981796Z"],"values":[[42.491024,-71.13422],[42.491024,-71.13422]]}}}% (base) henry@Henrys-MacBook-Pro ~ %