https://bugzilla.wikimedia.org/show_bug.cgi?id=65251

            Bug ID: 65251
           Summary: Query-continue for imageinfo returns timestamp which
                    is ambiguous if multiple files were uploaded within
                    the same second
           Product: MediaWiki
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: API
          Assignee: wikibugs-l@lists.wikimedia.org
          Reporter: ril...@wikipedia.de
                CC: bjor...@wikimedia.org, bryan.tongm...@gmail.com,
                    roan.katt...@gmail.com, s...@reedyboy.net
       Web browser: ---
   Mobile Platform: ---

Consider the following query:
http://commons.wikimedia.org/w/api.php?action=query&titles=File:Test.svg&prop=imageinfo&iilimit=10&format=jsonfm

... and the result:
    "query-continue": {
        "imageinfo": {
            "iistart": "2014-05-07T18:26:53Z"
        }
    },

... when using that iistart continue param, it's possible to get imageinfo for
the same file revision again if iilimit was one because it's in theory possible
to upload *two file revisions to an image within one second*.

Expected: Either a more precise timestamp for the short term or one has to
consider adding ids to image revisions (which requires DB changes: Add ID
column, [use parent ids for old file names instead of parent timestamps, move a
lot of files,] ..., amendments to the API).

Sooner or later we'll have to fix that anyway.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to