Surface invalid duration error for environment:auto_stop_in CI config in UI
This is an enhancement tracker issue for the feature supporting variable expansion of environment:auto_stop_in
tracked in #365140 (closed)
As a result of current implementation, we loose the auto_stop_in
validation to String type from the earlier duration parser's validation, for better user experience we should surface the error in the UI.
In the current implementation these parser errors are captured in Sentry/Log.
Eg. 'abcde'
, ''
and other duration parser related error should be surfaced on the UI.
Additionally also make the auto_stop_in=
assignment code more readable/maintainable during this feature enhancement as discussed in !97425 (comment 1093982094)(Addressed in #373229 (closed))
Edited by Bala Kumar