Skip to content

Only submit progress when it is a valid int

Nicolas Dular requested to merge nd/fix-progress-widget into master

What does this MR do and why?

The progress widget requires an Int! type and therefore does not allow to send null values.

This fixes it by not submitting null when the value of the form field is empty.

Screenshots or screen recordings

Before the issue:

progresss_update_bug

How to set up and validate locally

  1. Enable OKRs Feature.enable(:okrs_mvc)
  2. Go to issue list and create an objective (On the "new issue" button top right, there is a dropdown to create an objective)
  3. Focus on the progress input and tab out again, before this branch, an error would appear

MR acceptance checklist

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

Merge request reports