Add negative validation to estimate mutations
Fixed the issue and merge request update mutations to include a validation to ensure time estimates are greater than or equal to zero. Changelog: fixed
显示
- app/graphql/mutations/concerns/mutations/validate_time_estimate.rb 22 个添加, 0 个删除...ql/mutations/concerns/mutations/validate_time_estimate.rb
- app/graphql/mutations/issues/update.rb 2 个添加, 3 个删除app/graphql/mutations/issues/update.rb
- app/graphql/mutations/merge_requests/update.rb 3 个添加, 4 个删除app/graphql/mutations/merge_requests/update.rb
- spec/graphql/mutations/issues/update_spec.rb 12 个添加, 1 个删除spec/graphql/mutations/issues/update_spec.rb
- spec/graphql/mutations/merge_requests/update_spec.rb 13 个添加, 1 个删除spec/graphql/mutations/merge_requests/update_spec.rb
- spec/lib/gitlab/time_tracking_formatter_spec.rb 1 个添加, 1 个删除spec/lib/gitlab/time_tracking_formatter_spec.rb
- spec/requests/api/graphql/mutations/issues/update_spec.rb 5 个添加, 0 个删除spec/requests/api/graphql/mutations/issues/update_spec.rb
- spec/requests/api/graphql/mutations/merge_requests/set_time_estimate_spec.rb 41 个添加, 0 个删除...raphql/mutations/merge_requests/set_time_estimate_spec.rb
- spec/support/shared_examples/graphql/mutations/update_time_estimate_shared_examples.rb 59 个添加, 0 个删除...graphql/mutations/update_time_estimate_shared_examples.rb
加载中
想要评论请 注册 或 登录