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
Export students as CSV #847
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, maybe it would be possible to create a generic "Export CSV" component that would be easier to unit test?
} | ||
for (let i = 1; i <= props.selectedInstance.weekAmount; ++i) { | ||
const points = weekPoints[i] | ||
values.push(points || points === 0 ? points : '-') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think these CSV files are intended to be machine-readable and in that case -
would not be a good value for missing points.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not certain whether this is for being machine-readable or just for importing into a spreadsheet.
Co-Authored-By: Jaakko Malkki <32361480+mjaakko@users.noreply.github.com>
It's unlikely this would be used more than once, so it's better to somehow write tests for the existing code - not sure what the best approach is, though. Mocking downloadFile? |
Mocking |
Short description
#611: Export student table CSV as instructor
DoD
I have: