open-api icon indicating copy to clipboard operation
open-api copied to clipboard

[BUG] Duplicate rank in listingFiles

Open yovasx2 opened this issue 2 years ago • 5 comments

Describe the bug Duplicate rank for listing files

To Reproduce Hit addListingFile at the same time

Expected behavior Not to have duplicates in ranks

Screenshots

{
    "count": 2,
    "results": [
        {
            "listing_file_id": 1039322776190,
            "listing_id": 1083050300,
            "rank": 1,
            "filename": "1x1-000000ff.png",
            "filesize": "68 B",
            "size_bytes": 68,
            "filetype": "image/png",
            "create_timestamp": 1637690305
        },
        {
            "listing_file_id": 1061152905371,
            "listing_id": 1083050300,
            "rank": 1,
            "filename": "stars.jpeg",
            "filesize": "16.23 KB",
            "size_bytes": 16619,
            "filetype": "image/jpeg",
            "create_timestamp": 1637352712
        }
    ]
}

Additional context https://developers.etsy.com/documentation/reference/#operation/uploadListingFile

yovasx2 avatar Nov 24 '21 01:11 yovasx2

FYI I am seeing the same issue for images, sometimes rank gets duplicated, probably a race condition related to this: https://github.com/etsy/open-api/issues/298

yovasx2 avatar Dec 02 '21 02:12 yovasx2

Any update on this?

yovasx2 avatar May 12 '22 17:05 yovasx2

Nothing yet @yovasx2. We will get to this as soon as possible.

etsyachristensen avatar May 24 '22 14:05 etsyachristensen

@yovasx2 I'm working on this ticket now. I need to confirm with you the process on this one. Are you uploading more than one image with the same rank? Or not including the rank? What are the steps to reproduce?

etsyachristensen avatar Aug 01 '22 21:08 etsyachristensen

i add files to a listing using rank = 5 always

yovasx2 avatar Aug 05 '22 04:08 yovasx2