Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set-bonus-points resets overriden points #13

Open
kliberf opened this issue Nov 15, 2022 · 1 comment
Open

set-bonus-points resets overriden points #13

kliberf opened this issue Nov 15, 2022 · 1 comment

Comments

@kliberf
Copy link

kliberf commented Nov 15, 2022

If I override points for a solution and then issue

recodex solutions set-bonus-points SOLUTION_ID 5

The overriden points is reset (i.e. recalculated based on deadline/submission date). I'd expect the API not to touch the value of overriden points unless -o is specified. Also not sure if this is recodex-cli bug, or bug in the API.

@krulis-martin
Copy link
Member

It is true, the semantics is quite confusing based on the operation description. The thing is the CLI mirrors the API, where specified override writes an exact number of points, and the absence of override (in this case option -o) is translated to the erasure of override. I agree this can be done better, but we will need to change it in the API (and in the web app as well), so it will take a while...

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

No branches or pull requests

2 participants