Import/Exports have no total_count metadata

Bug #1532925 reported by Tim Simmons
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Designate
Fix Released
High
sonu

Bug Description

When listing /v2/zones/tasks/[imports, exports]

{
    "imports": [
        {
            "status": "COMPLETE",
            "zone_id": "ae905d4c-cc09-4db9-9a1f-df057a182df4",
.....
    ],
    "links": {
        "self": "https://designate/v2/zones/tasks/imports"
    },
    "metadata": {}
}

The metadata field is present, but there's nothing in it. There should be a "total_count".

Tim Simmons (timsim)
description: updated
Tim Simmons (timsim)
Changed in designate:
status: New → Triaged
importance: Undecided → High
milestone: none → mitaka-3
sonu (sonu-bhumca11)
Changed in designate:
assignee: nobody → sonu (sonu-bhumca11)
Rahman Syed (rsyed)
Changed in designate:
assignee: sonu (sonu-bhumca11) → Rahman Syed (rahman-syed-w)
Revision history for this message
Rahman Syed (rsyed) wrote :

Sorry Sonu, my browser page wasn't refreshed and I hadn't noticed you'd taken this.

If you'd like to take this back, please do! (I don't have permission to change the assignee back to you)

sonu (sonu-bhumca11)
Changed in designate:
assignee: Rahman Syed (rahman-syed-w) → sonu (sonu-bhumca11)
sonu (sonu-bhumca11)
Changed in designate:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to designate (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/301474

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to designate (master)

Reviewed: https://review.openstack.org/301468
Committed: https://git.openstack.org/cgit/openstack/designate/commit/?id=bdeb08e39f635e28930ce6135dc05995eaaace1f
Submitter: Jenkins
Branch: master

commit bdeb08e39f635e28930ce6135dc05995eaaace1f
Author: sonu.kumar <email address hidden>
Date: Tue Apr 5 15:12:19 2016 +0900

    Resolves metadata field output on rest call to zone import and export

    Earlier on REST API call to zones/tasks/imports or zones/tasks/exports,
    metadata field was displayed with no key/val pair.
    This patch makes {'total_count : #val'} to be be produced as
    output in metadata field on execution of those REST API call.

    Closes-Bug: #1532925

    Change-Id: I566e370edce5f29aafe793d5fdf7fe2fb7b3a856

Changed in designate:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on designate (stable/mitaka)

Change abandoned by Graham Hayes (<email address hidden>) on branch: stable/mitaka
Review: https://review.openstack.org/301474
Reason: We cannot backport an API change unfortunatly

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote : Fix included in openstack/designate 3.0.0.0b1

This issue was fixed in the openstack/designate 3.0.0.0b1 development milestone.

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.