Skip to content

Implement ListDeploymentTrace rpc for Web#5631

Merged
khanhtc1202 merged 2 commits intomasterfrom
implement-trace-list-rpc
Mar 10, 2025
Merged

Implement ListDeploymentTrace rpc for Web#5631
khanhtc1202 merged 2 commits intomasterfrom
implement-trace-list-rpc

Conversation

@khanhtc1202
Copy link
Member

What this PR does:

Implementation for ListDeploymentTrace rpc for web client.

Why we need it:

Which issue(s) this PR fixes:

Part of #5444

Does this PR introduce a user-facing change?:

  • How are users affected by this change:
  • Is this breaking change:
  • How to migrate (if breaking change):

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
string commit_url = 5 [(validate.rules).string.min_len = 1];
int64 commit_timestamp = 6 [(validate.rules).int64.gte = 0];
string author = 7;
string project_id = 2 [(validate.rules).string.min_len = 1];
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need this due to deployment trace model is under project scope

Signed-off-by: khanhtc1202 <khanhtc1202@gmail.com>
@codecov
Copy link

codecov bot commented Mar 6, 2025

Codecov Report

Attention: Patch coverage is 0% with 63 lines in your changes missing coverage. Please review.

Project coverage is 26.62%. Comparing base (424894c) to head (b2f4645).
Report is 7 commits behind head on master.

Files with missing lines Patch % Lines
pkg/app/server/grpcapi/web_api.go 0.00% 39 Missing ⚠️
pkg/datastore/deploymenttracestore.go 0.00% 23 Missing ⚠️
pkg/app/server/grpcapi/api.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5631      +/-   ##
==========================================
+ Coverage   26.58%   26.62%   +0.04%     
==========================================
  Files         477      478       +1     
  Lines       50657    50802     +145     
==========================================
+ Hits        13465    13526      +61     
- Misses      36134    36209      +75     
- Partials     1058     1067       +9     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@t-kikuc t-kikuc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Let's try!

},
Cursor: "cursor",
}
deployments, _, err := a.deploymentStore.List(ctx, opts)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand that this is like an N+1 query, but pageSize will reduce the problem.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, it is. I thought of making list deployment based on deployment trace commit hash rpc independently but maybe it's just over killed. So let's make this for now, if we need that when we faced a performance issue or such, we will implement that later 👍

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

100% agree 👍

@khanhtc1202 khanhtc1202 enabled auto-merge (squash) March 10, 2025 05:21
Copy link
Member

@ffjlabo ffjlabo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@khanhtc1202 khanhtc1202 merged commit b8fd4f1 into master Mar 10, 2025
17 of 18 checks passed
@khanhtc1202 khanhtc1202 deleted the implement-trace-list-rpc branch March 10, 2025 05:24
@github-actions github-actions bot mentioned this pull request Mar 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants