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

JOC Cockpit should not throw an error if a substitute is added to a Schedule

    XMLWordPrintable

Details

    • Fix
    • Status: Released (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.13.3
    • 1.13.8
    • None
    • None

    Description

      Current Situation

      • When a user tries to add a substitute from the action menu of a Schedule and if the substitute schedule does not exist then it throws the error:
        JOC-400
        JobSchedulerBadRequestException: SCHEDULER-161 There is no schedule
        
      • With the release older than 1.13.3 if the substitute is added to the schedule and if that schedule does not exist then it creates a new schedule. The API response with the older release is:
        {"jobschedulerId":"js-132","schedule":"/example-new/schedule-new","runTime":"<schedule valid_from='2020-12-09 00:00:00' valid_to='2020-12-23 00:00:00' name='schedule-new' substitute='/examples/20_SchedulingJobChains/WeeklySchedule'/>","calendars":[],"auditLog":{}}
        
      • The API response with the newer version from 1.13.3 which generates the error instead of creating the schedule is:
        {"jobschedulerId":"js137","schedule":"/example-new/schedule-new","runTime":{"configurationDate":"2017-02-02T09:14:57Z","name":"schedule-new","path":"/examples/20_SchedulingJobChains/MonthlySchedule","surveyDate":"2020-12-09T08:59:10.984Z","usedByOrders":[{"jobChain":"/examples/20_SchedulingJobChains/01_JobChainMonthly","orderId":"MonthlyOrder"}],"state":{"_text":"ACTIVE","severity":0},"path1":"/examples/20_SchedulingJobChains","validFrom":"2020-12-09 00:00:00","validTo":"2020-12-23 00:00:00"},"calendars":[],"auditLog":{}}
        

      How to reproduce

      • Click on the action menu of any schedule and select Add Substitute
      • Add a folder name that does not exist
      • Select the dates and click on the submit button
      • The JOC Cockpit throws error JOC -400
        JobSchedulerBadRequestException: SCHEDULER-161 There is no schedule

      Desired Behavior

      • The JOC Cockpit should not throw an error when a substitute is added to the Schedule and the schedule does not exist.

      Attachments

        Activity

          People

            ztsa0019 Sourabh Agrawal
            Kanika-Agrawal Kanika Agrawal
            Kanika Agrawal Kanika Agrawal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: