Can't remove requisition group from supervisory node

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.

Environment

None

Assignee

Klaudia Pałkowska

Reporter

Łukasz Lewczyński

Story Points

3

Time tracking

24h

Epic Link

Components

Sprint

None

Fix versions

Priority

Critical
Configure