ioi-2022 / cms

Contest Management System
http://cms-dev.github.io/
GNU Affero General Public License v3.0
3 stars 2 forks source link

Add flag to specify dataset description when importing task #28

Closed aguss787 closed 2 years ago

aguss787 commented 2 years ago

It has 3 modes:

cmsImportTask -L tps_task "xxx" --update

It will update the task, and overwrite the default dataset

cmsImportTask -L tps_task "xxx" -d --update

It will update the task, and create a new dataset

cmsImportTask -L tps_task "xxx" -d zzz --update

It will update the task, and create (or replace) a new dataset with description zzz

codecov-commenter commented 2 years ago

Codecov Report

Merging #28 (08f080d) into master (43f8a61) will increase coverage by 0.32%. The diff coverage is 63.63%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #28      +/-   ##
==========================================
+ Coverage   63.69%   64.02%   +0.32%     
==========================================
  Files         234      234              
  Lines       17177    17202      +25     
==========================================
+ Hits        10941    11013      +72     
+ Misses       6236     6189      -47     
Flag Coverage Δ
functionaltests 47.93% <0.00%> (+0.26%) :arrow_up:
unittests 44.29% <63.63%> (+0.04%) :arrow_up:

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
cmscontrib/ImportTask.py 78.02% <63.63%> (-1.98%) :arrow_down:
cms/server/contest/handlers/contest.py 89.32% <0.00%> (-1.95%) :arrow_down:
cms/db/submission.py 97.43% <0.00%> (-1.03%) :arrow_down:
cms/grading/Sandbox.py 68.70% <0.00%> (-0.88%) :arrow_down:
cmscontrib/AddStatement.py 78.78% <0.00%> (-0.06%) :arrow_down:
cms/io/service.py 73.33% <0.00%> (+0.60%) :arrow_up:
cms/service/esoperations.py 80.55% <0.00%> (+0.69%) :arrow_up:
cms/service/ResourceService.py 60.00% <0.00%> (+0.88%) :arrow_up:
cms/service/workerpool.py 69.44% <0.00%> (+1.11%) :arrow_up:
cms/server/admin/handlers/base.py 70.62% <0.00%> (+1.65%) :arrow_up:
... and 6 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 43f8a61...08f080d. Read the comment docs.