Skip to content

Doing groups for attempt-based rounds - #133

Merged
jonatanklosko merged 2 commits into
jonatanklosko:masterfrom
aasalobrena:attempt-based
Oct 12, 2026
Merged

jonatanklosko merged 2 commits into
jonatanklosko:masterfrom
aasalobrena:attempt-based

Conversation

@aasalobrena

Copy link
Copy Markdown
Contributor

Second part of #131.

A straightforward change:

  • Only modifies group creation, competitor assignment creation, and the clear function for attempt-based rounds.
  • Only one group per attempt activity, not configurable.
  • No UI changes.
  • Removed obsolete test.

@aasalobrena aasalobrena changed the title group 1 for distributted attempts Doing groups for attempt-based rounds Oct 8, 2026
Comment thread src/logic/groups.js
Comment on lines +130 to +134
/* Older versions assigned competitors to attempt activities directly.
Now we assign them to a group activity inside each attempt activity.
Competitions assigned the old way still have those assignments,
so we remove them here to avoid assigning everyone twice. */
wcif = removeAttemptAssignments(wcif, round.id);

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Competitions with existing attempt assignments are now going to show that groups and assignments are missing for mbld/fm. That's not a big issue, since we show a clear indicator and the user will just hit the button to create and assign again. However, the competitors would still have the old assignments, so they would be assigned to both 333fm-r1-a1 and 333fm-r1-a1-g1.

I added this code such that we remove the attempt assignments, before we create the new ones, and we avoid the duplicate assignments.

@jonatanklosko
jonatanklosko merged commit e44cb09 into jonatanklosko:master Oct 12, 2026
5 checks passed
@aasalobrena
aasalobrena deleted the attempt-based branch October 13, 2026 06:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants