Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[API] Add support to get bundle report for a given commit #1027

Closed
Tracked by #741
JerrySentry opened this issue Jan 8, 2024 · 0 comments
Closed
Tracked by #741

[API] Add support to get bundle report for a given commit #1027

JerrySentry opened this issue Jan 8, 2024 · 0 comments
Assignees

Comments

@JerrySentry
Copy link

JerrySentry commented Jan 8, 2024

GQL: Add a resolver in Commit type, that gets the bundle report of the commit, that displays the total size of all the bundles and size of each individual bundle

Commit.bundleAnalysisReport: BundleAnalysisReportResult

union BundleAnalysisReportResult =
    BundleAnalysisReport
  | MissingHeadReport

type BundleAnalysisReport {
  sizeTotal: Int!
  loadTimeTotal: Float!
  bundles: [BundleReport]!
}

type BundleReport {
  name: String!
  sizeTotal: Int!
  loadTimeTotal: Float!
}
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

No branches or pull requests

1 participant