Skip to content

Ordering or preference for multiple file references #232

@deboer-tim

Description

@deboer-tim

One nit I noticed while implementing the light/dark file reference tags (#227): let's say you're configuring a contest and you have a light and a dark image, but you want a specific one of them to be used by clients that don't specify a tag. e.g. maybe the light one has a border that works better against random backgrounds. Currently, there's no way to ensure that the light image comes 'first' or is picked up by clients that don't check for tags, even if you try something like providing a third untagged image. The Contest API server could serve them in any order and you don't know how clients will pick them anyway.

Prior to this I've heard of clients that always take the first image regardless of sizes available and ordering of them, so this is somewhat an existing issue.

I don't think we can or should create rules here, but maybe we can list a best practice about how a server should order file references?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions