I can get history cleanup window configuration via REST

XMLWordPrintable

      When

      • I call "get history cleanup configuration" REST endpoint

      Then

      • I get historyCleanupBatchWindowStartTime and historyCleanupBatchWindowEndTime as datetime with timezone values, which represent current or next batch window

      Example:
      batch window is configured to 23:00 - 01:00
      now 07.09.2017 16:00 -> return 07.09.2017 23:00:00+0200 - 08.09.2017 01:00:00+0200
      now 07.09.2017 23:15 -> return 07.09.2017 23:00:00+0200 - 08.09.2017 01:00:00+0200
      now 08.09.2017 00:05 -> return 08.09.2017 23:00:00+0200 - 09.09.2017 01:00:00+0200
      now 08.09.2017 02:00 -> return 08.09.2017 23:00:00+0200 - 09.09.2017 01:00:00+0200

      Hints:

      • we should create some HistoryCleanupConfigurationDto, as may be in the future more data about history cleanup configuration will be needed in REST API
      • there are some related methods in HistoryCleanupHelper class, probably we can extend it with new methods

            Assignee:
            Svetlana Dorokhova
            Reporter:
            Svetlana Dorokhova
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: