Skip to content

Could not find columns declared on the competition leaderboard #932

Description

@Didayolo

The following error can happen when uploading a v1.5 bundle:

Could not find columns declared on the competition leaderboard

Capture d’écran 2023-02-04 à 03 48 32

It can be solved by adding the rank in the competition.yaml when defining the leaderboard's columns.
An example of this fix can be found in this commit: codalab/competition-examples@9a7f25f

Usually it is not a problem because most v1 bundles have these ranks defined. However, we could have a default value or something to make sure all v1 bundles are working fine.

See the following part of the code:

columns = sorted([{'title': k, **v} for k, v in leaderboard['columns'].items()], key=lambda c: c['rank'])

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions