Uploaded image for project: 'Hybrid Cloud Console'
  1. Hybrid Cloud Console
  2. RHCLOUD-43105

Fix bug with created_at resetting when updating a resource

XMLWordPrintable

      created_at on the resource table is set to beginning of time when updating an existing resource. The resource row should maintain the created_at value.

      This is likely due to gorm.Save usage (requires full row data) and not returning created_at from FindResourceByKeys. Switching to gorm.Update or returning the values from FindResourceByKeys may fix this issue.

              rh-ee-aobrien Adam OBrien
              sgunta@redhat.com Sneha Gunta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: