Deleted artifact are shown in list output

Bug #1620086 reported by Mike Fedosin
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glare
Fix Released
High
Mike Fedosin

Bug Description

Current list output shows all artifacts, including deleted:

GET /artifacts/images

Expected output:
{
    "images": [],
    "schema": "/schemas/images",
    "first": "/artifacts/images"
}

Actual output:
{
    "images": [
        {
            "container_format": null,
            "min_ram": null,
            "updated_at": "2016-09-03T20:32:58Z",
            "owner": "0c86483fe46d4ca3a85b36f5ba9b75bc",
            "provided_by": null,
            "id": "2e68de20-ae55-4251-a3a7-b615ebe9ae3b",
            "disk_format": null,
            "version": "1.0.0",
            "cloud_user": null,
            "image": null,
            "metadata": {},
            "status": "deleted",
            "description": "",
            "tags": [],
            "image_indirect_url": null,
            "activated_at": null,
            "visibility": "private",
            "supported_by": null,
            "min_disk": null,
            "icon": null,
            "name": "image",
            "license": null,
            "created_at": "2016-09-03T20:32:22Z",
            "license_url": null,
            "release": []
        }
    ],
    "schema": "/schemas/images",
    "first": "/artifacts/images"
}

Mike Fedosin (mfedosin)
Changed in glare:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Mike Fedosin (mfedosin)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glare (master)

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

Changed in glare:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glare (master)

Reviewed: https://review.openstack.org/365363
Committed: https://git.openstack.org/cgit/openstack/glare/commit/?id=dd9047ce14ff0a0436280e6319d7634063999f49
Submitter: Jenkins
Branch: master

commit dd9047ce14ff0a0436280e6319d7634063999f49
Author: Mike Fedosin <email address hidden>
Date: Sun Sep 4 21:01:48 2016 +0300

    Fix that deleted artifacts were shown in list output

    Change-Id: Ifd2e1397b895d6fc0a8a0013fc08fc229f59b2e7
    Closes-Bug: #1620086

Changed in glare:
status: In Progress → Fix Released
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.