[feat][backend] support trajectory openapi #552
Merged
Merged
Conversation
Add a new public OpenAPI endpoint to retrieve trajectory data by trace IDs. - Define ListTrajectoryOApiRequest/Response/Data in thrift IDL - Add ListTrajectoryOApi method to OpenAPIService (POST /v1/loop/traces/trajectory) - Implement application layer with validation, auth, rate limiting, and time range handling - Update handler to use standard invokeAndRender pattern - Route registered at /v1/loop/traces/trajectory
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## main #552 +/- ##
==========================================
+ Coverage 77.61% 77.66% +0.05%
==========================================
Files 670 670
Lines 76017 76101 +84
==========================================
+ Hits 58997 59102 +105
+ Misses 13567 13543 -24
- Partials 3453 3456 +3
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 5 files with indirect coverage changes Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
kidkidkid
previously approved these changes
Jun 17, 2026
Cover all branches: - success with start_time provided - success with start_time nil (uses benefit service) - success with nil service response - invalid request (nil, zero workspace_id, empty trace_ids, empty trace_id) - permission error - rate limited - user missing when start_time nil - service error
1dce75e to
80cb627
Compare
kidkidkid
approved these changes
Jun 17, 2026
cuichen01
approved these changes
Jun 17, 2026
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.
Add a new public OpenAPI endpoint to retrieve trajectory data by trace IDs.
What type of PR is this?
Check the PR title
(Optional) Translate the PR title into Chinese
(Optional) More detailed description for this PR(en: English/zh: Chinese)
en:
zh(optional):
(Optional) Which issue(s) this PR fixes