Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-6031

Add t and i properties to Timestamp class

    • 2
    • Not Needed
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Use Case

      As a MongoDB engineer
      I want accessors for the i and t properties of the Timestamp class
      So that I can fetch those properties in a readable way as opposed to low and high

      User Impact

      • New feature

      Dependencies

      • None

      Unknowns

      • None

      Acceptance Criteria

      Implementation Requirements

      • Add getters for i and t that return the unsigned int form of the increment and timestamp
        • i is low, t is high
        • Unsigned right shift (>>>) can be used to obtain the unsigned representation
      • This will make a Timestamp instance compatible as input to the Timestamp constructor

      Testing Requirements

      • Ensure i and t return the correct values
      • Test timestamp as constructor input

      Documentation Requirements

      • Add TSDoc to the getters describing the segment of the Timestamp they return and the format the number is returned in.

      Follow Up Requirements

      • None

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            neal.beeken@mongodb.com Neal Beeken
            Aditi Khare
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: