Only one receiver displayed when investigation with multiple parts from different BPNs was created #827
Labels
bug
Something isn't working
external
Issues with external requestors
quality_notification_improvement
Links
Description
An Investigation which was started for multiple parts from different suppliers only shows one receiver in the UI and the API response payload.
Current behaviour
Only one receiver is named under "Send To BPN" in the UI. (See red mark on screenshot)
In database there are one entry for a new investigation and two entries for investigation_notifications created for this case. From database perspective the logic works fine. However the filter API for investigation returns an InvestigationResponse object which has a "sendTo" field with type String. The value for this field is mapped in the InvestegationResponseMapper class by taking the first notification and taking its "sendTo" value:
Expected behavior
A list of string is returned for the sendTo field is returned from the API and visualized in the UI because an Investigation can have multiple receivers.
Steps to reproduce the Bug
The text was updated successfully, but these errors were encountered: