Fix GraphQL timelog Int overflow bug
What does this MR do and why?
Related to #406548 (closed)
This MR fixes the GraphQL TimelogConnection.totalSpentTime Int overflow bug by switching to BigInt.
Screenshots or screen recordings
How to set up and validate locally
- Enable feature flag from the rails console:
Feature.enable(:name: global_time_tracking_report)
- Navigate to an issue or merge request
- Log 35791394 minutes of time (use quick action
/spend 35791394 m
) - Navigate to the global time tracking report http://gdk.test:3000/-/timelogs
- Should work fine!
- Log the same amount of time again (can be the same or a different issue/mr)
- Navigate to the global time tracking report http://gdk.test:3000/-/timelogs
- Should error on master
- Should work on this branch
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.