Skip to content

Conversation

@manojVivek
Copy link
Contributor

This decouples the need for ProfileTypes endpoint to check if there is profile data available.

@manojVivek manojVivek requested review from a team as code owners October 21, 2025 10:07
}

func (q *ColumnQueryAPI) HasProfileData(ctx context.Context, req *pb.HasProfileDataRequest) (*pb.HasProfileDataResponse, error) {
res, err := q.ProfileTypes(ctx, &pb.ProfileTypesRequest{})
Copy link
Member

Choose a reason for hiding this comment

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

I think this should call q.querier.HasProfileData which is defined differently for querier.go and querier_sql.go. Basically ProfileTypes for querier.go but the SELECT 1 FROM v1.stacktraces LIMIT 1 query in querier_sql.go that we were talking about

Copy link
Member

Choose a reason for hiding this comment

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

was just about to comment the exact same thing

Copy link
Member

@asubiotto asubiotto Oct 21, 2025

Choose a reason for hiding this comment

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

Concretely for parca I think this means we should make HasProfileData part of the Querier interface too and this should call q.querier.HasProfileData

@alwaysmeticulous
Copy link

alwaysmeticulous bot commented Oct 21, 2025

🔴 Meticulous spotted visual differences in 460 of 493 screens tested: view and approve differences detected.

Meticulous evaluated ~5 hours of user flows against your PR.

Last updated for commit 7e6b665. This comment will update as new commits are pushed.

@manojVivek manojVivek merged commit 0b36abe into main Oct 21, 2025
37 of 38 checks passed
@manojVivek manojVivek deleted the has-profile-data-endpoint branch October 21, 2025 11:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants