Designate documents don't have updated_at default date

Bug #1500958 reported by Travis Tripp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Searchlight
Fix Released
Medium
Steve McLellan

Bug Description

See also: https://review.openstack.org/#/c/226524/

OS::Designate::Zone
OS::Designate::Recordset

The above have created_at and updated_at field, but by default the updated_at is only set after it is actually updated. This means there isn't a value on initial creation, making sorting more difficult.

It seems that perhaps we should be setting updated_at to created_at by default if updated_at doesn't have a value.

Changed in searchlight:
milestone: none → liberty-rc1
Steve McLellan (sjmc7)
Changed in searchlight:
assignee: nobody → Steve McLellan (sjmc7)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to searchlight (master)

Fix proposed to branch: master
Review: https://review.openstack.org/229169

Changed in searchlight:
status: New → In Progress
Changed in searchlight:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to searchlight (master)

Reviewed: https://review.openstack.org/229169
Committed: https://git.openstack.org/cgit/openstack/searchlight/commit/?id=ec93305cd347dd2968ccbb1af2bd6d72d1e6164f
Submitter: Jenkins
Branch: master

commit ec93305cd347dd2968ccbb1af2bd6d72d1e6164f
Author: Steve McLellan <email address hidden>
Date: Tue Sep 29 17:25:02 2015 -0500

    Default designate updated_at to created_at

    If 'updated_at' is not set for a designate zone or recordset,
    default it to 'created_at'.

    Change-Id: I900fb6290263dc655783f1be3f3130460154f41e
    Closes-Bug: #1500958

Changed in searchlight:
status: In Progress → Fix Committed
Changed in searchlight:
status: Fix Committed → Fix Released
milestone: liberty-rc1 → 0.1.0.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.