Uploaded image for project: 'mod-orders'
  1. mod-orders
  2. MODORDERS-222

Order Line has inactive Access Provider

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 5.0.0
    • None
    • ACQ Sprint 62
    • 2
    • Thunderjet

    Description

      Overview:
      UIOR-137 Scenario 3 requires PO Line numbers to be displayed in the error modal if associated access provider is inactive/not found. In scope of MODORDERS-170 the logic has been updated and corresponding error codes are returned with vendor id as parameter e.g.

      {
        "errors": [
          {
            "message": "Order cannot be open as the associated access provider not found",
            "code": "accessProviderNotFound",
            "parameters": [
              {
                "key": "id",
                "value": "160501b3-52dd-31ec-a0ce-17762e6a9b47"
              }
            ]
          },
          {
            "message": "Order cannot be open as the associated access provider is inactive",
            "code": "accessProviderIsInactive",
            "parameters": [
              {
                "key": "id",
                "value": "f64bbcae-e5ea-42b6-8236-55fefed0fb8f"
              }
            ]
          }
        ],
        "total_records": 2
      }

      Approach:
      Update validation logic to return poLineNumber parameter as part of the error if it is available. Something like

      error.getParameters().add(new Parameter().withKey(PO_LINE_NUMBER).withValue(poLine.getPoLineNumber()));

      Note: Basically PO Line number can be provided only on PO update i.e. transition to Open. In case the new order is going to be placed with one or more PO Lines, the PO Line number will be empty or invalid, if specified...

      Acceptance Criteria:

      • Business logic is updated
      • Unit and API tests have been updated.

      TestRail: Results

        Attachments

          1. api_tests.png
            api_tests.png
            69 kB
          2. MODORDERS-222.docx
            394 kB
          3. screenshot-1.png
            screenshot-1.png
            84 kB

          Issue Links

            Activity

              People

                aliaksandr_pautau Aliaksandr Pautau
                piotr_kalashuk Piotr Kalashuk
                Aliaksandr Pautau Aliaksandr Pautau
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases