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] GQL Fetch bundle comparison for commit and pull #955

Closed
Tracked by #993 ...
JerrySentry opened this issue Jan 2, 2024 · 0 comments
Closed
Tracked by #993 ...

[API] GQL Fetch bundle comparison for commit and pull #955

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

Comments

@JerrySentry
Copy link

JerrySentry commented Jan 2, 2024

Create a new resolver in Pull and Commit to fetch bundle analysis comparisons

Commit.bundleAnalysisCompareWithParent: BundleAnalysisComparisonResult
Pull.bundleAnalysisCompareWithBase: BundleAnalysisComparisonResult

union BundleAnalysisComparisonResult =
    BundleAnalysisComparison
  | FirstPullRequest
  | MissingBaseCommit
  | MissingHeadCommit
  | MissingHeadReport
  | MissingBaseReport

type BundleAnalysisComparison {
  bundles: [BundleComparison]!
  sizeDelta: Int!
  sizeTotal: Int!
  loadTimeDelta: Float!
  loadTimeTotal: Float!
}

type BundleComparison {
  name: String!
  changeType: String!
  sizeDelta: Int!
  sizeTotal: Int!
  loadTimeDelta: Float!
  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