This MR adds a trigger to re-compute the size of a dataset after it was closed.
As per the ADR, the trigger was added to the dataset
PATCH endpoint, in case dataset is being closed with or without an update to its metadata.
Computing the size of the dataset is an operation executed asynchronously in a separate component which will be added as part of a separate MR. The trigger creates a queue message and pushes into onto a Redis queue, where it can be picked up by the separate service.
How to test this MR?
PATCH endpoint and pass the
sbit value of the dataset (returned when dataset is registered) in the
close parameter. The body can be left empty.
queueOperations Redis instance in a client of your choice.