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

When an Ad Hoc order is modified, the API returns the new Order ID

    XMLWordPrintable

Details

    Description

      Current situation

      When an Ad Hoc order is modified (Modify Start-Time or Modify Variable operation) the Order ID is changed.  For example:

      • A user adds an Ad Hoc order to be scheduled later in the day. From the action menu of the order the user selects the Modify Start-Time or Modify Variable operation. In this situation, once the /daily_plan/modify API is called the new Order ID is generated.
      • The new Order ID is not returned by the API call. This has no effect on the JOC Cockpit GUI, however, when accessing the API users would want to continue to work with the same Order even in case that the Order ID changes.

      Desired Behavior

      When an Ad Hoc order is modified then the API returns the Order ID.

      Workaround

      When adding an order then an Order Name can be specified. The Order Name is not changed if the Order ID is changed. Users can check to create a unique Order Name as the API allows to retrieve orders by their Order Name.

      Maintainer Note

      The api ./daily_plan/orders/modify returns a map in the form

      "orderIds": {
          "oldOrderId1": "newOrderId1",
          "oldOrderId2": "newOrderId2"
      }
      

       

       

      Attachments

        Issue Links

          Activity

            People

              oh Oliver Haufe
              Kanika-Agrawal Kanika Agrawal
              Kanika Agrawal Kanika Agrawal
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: