Incorrectly calculed reporting period can lead to an empty report

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Critical
    • Component/s: build-metrics-plugin
    • None
    • Environment:
      build-metrics-plugin 1.0

      Currently, calculating the begin date of the reporting period is done using Calendar.roll() which is wrong. As roll() only changes a specific unit and doesn't update larger fields in the calendar object, rolling back 2 week on the first week of a month sets the calendar week to the last week of the month, which is in the future. As the begin date is in the future, the computed is empty.

            Assignee:
            Yoann Dubreuil
            Reporter:
            Yoann Dubreuil
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: