/waterfall/config does not accept integers when float is expected. |
||||
Issue descriptionThe issue happens with "swarming_task_cushion" and perhaps other values. When the value is set to 2.0 the validation succeeds, but once stored, the value shows in the page as 2 (with the .0 part removed) and trying to save again fails the validation (expected float, got int) The handler should not require the .0 trailing for floats.
,
Nov 9 2017
,
Dec 6 2017
,
Dec 7 2017
The following revision refers to this bug: https://chromium.googlesource.com/infra/infra/+/97562102965c985d908c5bc775004219cb56182e commit 97562102965c985d908c5bc775004219cb56182e Author: Roberto Carrillo <robertocn@google.com> Date: Thu Dec 07 07:26:22 2017 [Findit] Refactor config validation. This new approach rather than return a boolean, returns a list of errors that can hopefully be more helpful for determining why a given config is rejected by the handler. R=stgao,lijeffrey,wylieb BUG= 773539 Change-Id: I9d4e2276a3a7f4fc31820cadb8483973de8d8b7e Reviewed-on: https://chromium-review.googlesource.com/809719 Commit-Queue: Roberto Carrillo <robertocn@chromium.org> Reviewed-by: Jeffrey Li <lijeffrey@chromium.org> Reviewed-by: Brandon Wylie <wylieb@chromium.org> [modify] https://crrev.com/97562102965c985d908c5bc775004219cb56182e/appengine/findit/handlers/test/config_test.py [modify] https://crrev.com/97562102965c985d908c5bc775004219cb56182e/appengine/findit/handlers/config.py
,
Jan 5 2018
|
||||
►
Sign in to add a comment |
||||
Comment 1 by bugdroid1@chromium.org
, Oct 11 2017