Skip to content

Add totalIssueWeight BigInt GraphQL field to BoardListType

Michael Trainor requested to merge tmike-graphql-bigint-totalweight into master

What does this MR do and why?

The totalIssueWeight BigInt field is to replace the totalWeight int field. The total weight of issues can exceed the Int data type's max value, which causes GraphQL queries that use the field to receive a 500 error. totalWeight will be deprecated.

Deprecation issue: #416219

Integer out of bounds issue: #416218 (closed)

This change is required to allow any future front-end changes to address the 500 error received when using the totalWeight field.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Under limit Over limit
Screenshot_2023-06-26_at_10.33.25_am Screenshot_2023-06-26_at_10.33.09_am

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Create a group and project in that group
  2. In the project, create an issue with a weight of 2147483647
  3. In the project, create another issue with a weight of 1
  4. Navigate to Plan > Issue boards

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Michael Trainor

Merge request reports