Comment 3 for bug 1665555

Revision history for this message
Pooja Jadhav (poojajadhav) wrote :

Hi Xing,

When a volume is added in a group, its 'updated_at' field gets updated. So if user tries to add 2 volumes of which one volume is already exist in the group, then it will be skipped and its ‘updated_at’ field will not be updated. As per your suggestion if we return HTTP 202 and later user requests recently updated volumes then this volume might be skipped as its updated time is old which results in providing incorrect information to the user.

So IMO we should raise BadRequest for such situations.
Please let me know your suggestion about the same.