Skip to content

Simultaneously uploaded files are inconsistently ordered #22

@r1x1

Description

@r1x1

Files displayed on the My Files and Gallery page are sorted in reverse by the TTL of each file in redis.

Because multiple file are uploaded at the same time (and the TTL is the same), but we issue multiple requests to redis to determine the TTL, so the TTL changes as we check each element. This means the order of the files changes each time we request the list.

To avoid this we should sort by a more deterministic attribute.

To Reproduce:

  1. Upload 10 files at once.
  2. Navigate to the "My Files" page
  3. Observe the order of the files that are being displayed on the page
  4. Reload the page and compare the order of the files.
  5. Rinse an repeat 4 as needed to observe inconsistent order of data.

Metadata

Metadata

Assignees

No one assigned

    Labels

    hacktoberfestGood hacktoberfest/first issue

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions