cms-dev / cms-dev/cms

cmsImportUser overwrites .itime_contest

Open
#1,566 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

we have a script that basically runs cmsImportUser to grab all new users from contest.yaml, and then runs cmsImportContest to update the contest/tasks. however, because of the way .itime_contest is used, cmsImportUser actually also touches .itime_contest, despite not importing the contest parameters. this means that the cmsImportContest actually never updates the contest parameters.

i guess we should move the itime_contest writing operation to a different place?

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

Trace how cmsImportUser and cmsImportContest handle .itime_contest, starting with the import flow described in the issue and contest.yaml. Reproduce the sequence of importing users and then contest data, and verify that contest parameters are updated after the user import; done means cmsImportUser no longer prevents cmsImportContest from applying them.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.