Skip to content

v15 bundle error: "Leaderboards require at least 1 column" #831

Closed

Description

@Didayolo

Here is the leaderboard part of the competition.yaml of a v15 bundle that works on CodaLab:

# Leaderboard
leaderboard:
  leaderboards:
    Score: &id001
        label: Results
        rank: 1
  columns:
    score:
      label: Score
      leaderboard: *id001
      rank: 1
      sort: desc
    training_duration:
      label: Training time
      leaderboard: *id001
      rank: 2
      sort: asc
    duration:
      label: Scoring time
      leaderboard: *id001
      rank: 3
      sort: asc

The bundle unpacking returns the following error:


Creation failed

columns: Leaderboards require at least 1 column

The error is raised here in the code (https://github.com/codalab/codabench/blob/develop/src/apps/api/serializers/leaderboards.py) :

    def validate_columns(self, columns):
        if not columns:
            raise serializers.ValidationError("Leaderboards require at least 1 column")

Activity

  1. Didayolo commented on May 9, 2023

    @Didayolo
    MemberAuthor

    Solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions