Skip to content

Allow more input options when creating stage items #612

@evroon

Description

@evroon

ref #611

Right now, you can only select the winners up to the 4th position for a subsequent stage item. Number 5 and up cannot be selected. We should allow that.

- 1st Group A vs 2nd Group B
- 2nd Group A vs 1st Group B
- 3rd Group A vs 4th Group B
- 4th Group A vs 3rd Group B
- 5th Group A vs 6th Group B
- 6th Group A vs 5th Group B

The last two options here aren't available.

We can either add all possible options to the dropdown, or set the max as a config value instead of hardcoded, or allow the user to set the max in the frontend.

The limit of four is hardcoded here:

for winner_position in range(1, 5):
results_tentative.append(
StageItemInputOptionTentative(
winner_from_stage_item_id=stage_item.id, winner_position=winner_position
)
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions