Uploaded image for project: 'JOC - JobScheduler Operations Center'
  1. JOC - JobScheduler Operations Center
  2. JOC-642

Wrong preview in Set Run-time operation

    XMLWordPrintable

Details

    Description

      Current Situation

      When specifying a run time

      <run_time>
        <monthdays>
          <day day="3 18 25">
            <period single_start="00:00"/>
          </day>
        </monthdays>
      </run_time>
      

      The Show Preview shows wrong days. Not only the specified days are calculated but also the days for all given digits. In this example the days

      1,2,3,5,8,18,25 are calculated

      Desired Behavior

      Only the specified days should be calculated for the preview.

      Webservice calls

      joc/api/plan/from_run_time

      Post Body

      {"jobschedulerId":"scheduler_joc_cockpit","runTime":"<run_time>\n  <monthdays>\n    <day day=\"3 18 25\">\n      <period single_start=\"00:00\"/>\n    </day>\n  </monthdays>\n</run_time>","dateFrom":"2019-01-01","dateTo":"2019-01-31"}
      

      Response

      {"deliveryDate":"2018-12-12T10:09:31.862Z","periods":[{"singleStart":"2018-12-31T23:00:00Z"},{"singleStart":"2019-01-01T23:00:00Z"},{"singleStart":"2019-01-02T23:00:00Z"},{"singleStart":"2019-01-04T23:00:00Z"},{"singleStart":"2019-01-07T23:00:00Z"},{"singleStart":"2019-01-17T23:00:00Z"},{"singleStart":"2019-01-24T23:00:00Z"}],"timeZone":"Europe/Berlin"}
      

      Attachments

        Activity

          People

            oh Oliver Haufe
            ur Uwe Risse
            Uwe Risse Uwe Risse
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: