grafana / explore-profiles

Explore Profiles is a native Grafana application designed to integrate seamlessly with Pyroscope, the open-source continuous profiling platform, providing a smooth, query-less experience for browsing and analyzing profiling data.
GNU Affero General Public License v3.0
18 stars 1 forks source link

Introduce GetCommits for batch resolving commits #154

Open marcsanmi opened 1 month ago

marcsanmi commented 1 month ago

Context

The current GetCommit API resolves a single commit at a time using the GitHub API. This means that if a profile contains N different versions, the frontend must make N separate requests to retrieve information about each commit. This creates significant network overhead, which could be avoided if the GetCommit API could accept a list of commit references and resolve them all in parallel before responding to the frontend.

The backend has already been updated to support resolving multiple commits at once (see: https://github.com/grafana/pyroscope/pull/3529) by introducing a new GetCommits endpoint.

Action Required

The fronted needs to be updated to leverage this new capability.