-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[#10936] Show explicit enroll errors #10943
[#10936] Show explicit enroll errors #10943
Conversation
Hi @daongochieu2810, these parts of your pull request do not appear to follow our contributing guidelines:
|
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.
Any reason why the changes were made directly on the StudentsData
response directly?
I'm uncomfortable with the idea because StudentsData
is used by many Actions. It seems weird to add a failToEnrollStudents
field when this would only be used for the EnrollStudentsAction
.
EDIT: You can take a look at the rest of the files in ui/output
. All of them only have one constructor iirc.
An alternative is to create a custom API response for this action, something like EnrollStudentsData
. Do let me know what you think.
Yes I think having a separate response for this action is better |
Okay, on that note since |
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.
Few comments, but nothing major. LGTM, just address the stuff before merging
871513b
to
34bfb94
Compare
One comment here: is it good/possible for the instructor to fold the error messages and have expand all option? In and expanded view, should the # of failed enrolments exceed ~20, it'd be hard for the instructor to view all? |
Can we make it easier for the instructor to trace back the error to the spreadsheet? e.g.,
|
hmm... given that the user is unlikely NOT to want to look at the errors, I think it is fine to show all errors by default. Otherwise it is just one more unnecessary step the user has to perform. |
@daongochieu2810 any response to the comment above? If not something you feel is within the scope of this PR maybe you could help create a feature request issue for it |
@madanalogy the highlighting is done in this PR #10968 |
Fixes #10936
EnrollError
class to be displayed by frontend.