cms-dev / cms-dev/cms

Do not allow subtasks with 0 testcases

Open
#780 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
1k
Forks
412
Avg merge
6d 10h
Merged PRs (30d)
3

Description

When Group* is used as ScoreType, the parameter string

[[m1, 0], ...]

is accepted. This should not happen: ScoringService fails to score submissions using that configuration (and this makes sense).

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the ScoringService path that handles Group* as a ScoreType and trace where the parameter string is accepted. Confirm how configurations containing a subtask with 0 testcases are represented, then make validation reject them before scoring can fail. Done means the example configuration is no longer accepted.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.