Student csv import
When I import students via Students, Manage students, Upload CSV, I get no feedback when the upload was successful. Instead, the console displays:
EditPanel.jsx:180 failed to upload student CSV file
Uncaught (in promise) TypeError: e.json is not a function
at EditPanel.jsx:181
Whenever the import is not successful, I do get information that it failed but no information why, even though this information is present in the output from the Zesje API.
Looking at the network tab at the response that is sent, the response indicates (mostly) success:
{
"added": 0,
"updated": 0,
"identical": 532,
"failed": 3,
"errors": [
"The following row has an incorrect format: #<redacted>, #<redacted>@tudelft.nl, <redacted>, <redacted>, <redacted>@tudelft.nl, #",
"The following row has an incorrect format: #<redacted>, #<redacted>@tudelft.nl, <redacted>, <redacted>, <redacted>@tudelft.nl, #",
"The following row has an incorrect format: #<redacted>, #<redacted>@tudelft.nl, <redacted>, <redacted>, <redacted>@tudelft.nl, #"
]
}
In this case, all users are identical due to an earlier upload. Even when removing the failing rows, no success message is shown.
What would I expect?
Summary of upload in some way, but at the very least that upload completed/succeeded is shown and that errors are displayed (at least displayed in the console).
Details
This is on the near-latest commit from master: Version 0.3.0a6.dev29+g3784fef3.dirty (September 22nd)