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

Timespan and Timestamp should inherit from Scalar, not from Numeric

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 4.8.0
    • Component/s: None
    • Labels:
      None
    • Template:
    • Acceptance Criteria:
      Hide

      That:

      notice(Timespan < Scalar)
      

      notices "true" and:

      notice(Timespan < Numeric)
      

      notices "false".

      Show
      That: notice(Timespan < Scalar) notices "true" and: notice(Timespan < Numeric) notices "false".
    • Team:
      Puppet Developer Experience
    • Story Points:
      1
    • Sprint:
      PDS 2016-09-21, PDS 2016-10-05
    • Release Notes:
      Not Needed

      Description

      Timespan and Timestamp currently inherits from Numeric. This is incorrect since they break the Numeric contract. They should instead inherit directly from Scalar.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                thomas.hallgren Thomas Hallgren
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Zendesk Support