Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-8291

Data types with min range should prefer shortest min in string form

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • None
    • PUP 5.4.0
    • None
    • None
    • Platform Core
    • Platform Core KANBAN
    • Bug Fix
    • Hide
      Data types that describe a min/max range used {{default}} to indicate a default min/max value when it would be more informative to use an actual value {{0}} or omit the text "default". For example, instead of showing {{String\[1, default]}}, only {{String\[1]}} is displayed.
      Show
      Data types that describe a min/max range used {{default}} to indicate a default min/max value when it would be more informative to use an actual value {{0}} or omit the text "default". For example, instead of showing {{String\[1, default]}}, only {{String\[1]}} is displayed.
    • No Action

    Description

      Data types with a range min/max should prefer the shortest output when dealing with a value that is default. For String, Array and Tuple the default for min is 0 and this should be displayed instead of default. For Integer and Float, the default value is a large value (that users will not recognize as "min-int" and "max-int" for example - and for those default should be used instead of numeric output.

      Note that Tuple already uses 0, while Array and String does not.

      Attachments

        Activity

          People

            Unassigned Unassigned
            henrik.lindberg Henrik Lindberg
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Zendesk Support