cloud_controller_ng icon indicating copy to clipboard operation
cloud_controller_ng copied to clipboard

Should `updated_at` for service instances be updated when the last operation changes?

Open johha opened this issue 1 year ago • 1 comments

Example service instance:

{
  "guid": "3a2f5713-c979-45cc-9524-f513f9ad1238",
  "created_at": "2024-10-17T15:57:46Z",
  "updated_at": "2024-10-17T15:57:46Z",
  "name": "my-service-instance",
  "tags": [],
  "last_operation": {
    "type": "update",
    "state": "succeeded",
    "description": "",
    "updated_at": "2024-10-28T08:39:15Z",
    "created_at": "2024-10-28T08:39:15Z"
}

Should the updated_at field of the service instance be updated when the last_operation changes?

johha avatar Nov 13 '24 10:11 johha

Given the operation is acting on the service and this structure is really more a reflection of how we represent the data internally (two separate tables). I would vote to have the updated_at field update when last_operation changes.

Also note that this is probably also the case for async service bindings.

Samze avatar Nov 13 '24 17:11 Samze