Uploaded image for project: 'OpenLMIS General'
  1. OLMIS-5981

Can't remove requisition group from supervisory node

    Details

    • Epic Link:
    • Sprint:
      Team Parrot Sprint 119, Parrot Sprint 120, Team Parrot Sprint 121
    • Story Points:
      3

      Description

      Reproduction steps

      1. retrieve SN that have RG by API GET endpoint and save its body
      2. set null value for the requisitionGroup field
      3. update the given SN by API PUT endpoint
        1. the response should not contain the requisitionGroup field
      4. retrieve SN by API GET endpoint

      Expected

      • Bad request with clear error message should be returned when the user tries to remove requisition group from a supervisory node
      • A user can remove the requisition group from the supervisory node by reassigning that requisition group to another supervisory node

      Actual

      Even if the response from the PUT endpoint tells that the RG has been removed when the SN is retrieved by the GET endpoint the RG is still set to previous value.

        Checklists

          Attachments

            Issue links

              Activity

                People

                • Assignee:
                  kpalkowska Klaudia Pałkowska
                  Reporter:
                  llewczynski Łukasz Lewczyński
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 3 days Original Estimate - 3 days
                    3d
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 3 days, 5 hours
                    3d 5h