Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-2654

BreachWatcher job fails with tickets at risk found after upgrade

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Support
    • Tags:
    • Sprint:
      nxsupport 10.10.2
    • Story Points:
      1

      Description

      Previously the remaining time was a a single integer field:

      "ongoingCycle" : {
                  "paused" : false,
                  "breachedDate" : 1533569571911,
                  "goalId" : 128,
                  "elapsedTime" : 13298933402,
                  "remainingTime" : -13297133402,
                  "startDate" : 1533567771911,
                  "breached" : true
      }
      

      After the upgrade it has children properties:

      "ongoingCycle" : {
                  "breached" : false,
                  "breachTime" : {
                     "friendly" : "In 3 days 11:33",
                     "jira" : "2019-01-07T11:33:12.718+0000",
                     "epochMillis" : 1546860792718,
                     "iso8601" : "2019-01-07T11:33:12+0000"
                  },
                  "goalDuration" : {
                     "friendly" : "4h",
                     "millis" : 14400000
                  },
                  "remainingTime" : {
                     "friendly" : "3h 34m",
                     "millis" : 12859396
                  },
                  "withinCalendarHours" : true,
                  "startTime" : {
                     "iso8601" : "2019-01-04T16:33:12+0000",
                     "epochMillis" : 1546619592718,
                     "jira" : "2019-01-04T16:33:12.718+0000",
                     "friendly" : "25 minutes ago"
                  },
                  "elapsedTime" : {
                     "millis" : 1540604,
                     "friendly" : "25m"
                  },
                  "paused" : false
               }
      

      So, instead of checking remainingTime, one should check remainingTime.millis.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h