-
Notifications
You must be signed in to change notification settings - Fork 67
feat(ui): teacher tab: Display last synced student's draft (≠ graded code) #548
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
Conversation
Apply a tab order by decreasing importance: list (exos) → stats → report → editor (graded code) → draft (saved code) → text (subject) Note: It would suffice to reorder the buttons in student-view.html, but for consistency the other "sequences" are also reordered.
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.
@Plictox I just reviewed your PR.
To sum up, the code looks OK at first sight and the "Draft retrieval" feature works.
However, I found the following bug during acceptance testing:
- If there are ≥2 open exercises,
- If the student graded only the 1st exercise or saved one Draft for the 1st exercise, not for the 2nd one,
- If the teacher first clicks on the 1st exercise for this student, then the Draft code appears,
- But if the teacher then clicks on the 2nd exercise, then the Draft code of the 1st exercise unexpectedly remains visible.
Can you investigate and fix this?
Also @Plictox, ideally the feature offered by this PR #548 should be complemented with another commit adding this:
|
I found the problem and fixed it. |
@Plictox OK ! regarding the issue you raised
just to be sure (that the draft code is indeed available on the backend side, and not in the teacher dashboard) :
|
|
…t_tab * 'draft_tab' of github.com:pfitaxel/learn-ocaml: refactor: move draft tab
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.
A small remark
Co-authored-by: Erik Martin-Dorel <[email protected]>
Co-authored-by: Erik Martin-Dorel <[email protected]>
Dear all, Good news: this PR that implements a simple but (AFAICT) very useful feature for teachers in the learn-ocaml dashboard, is now ready! Below are two screenshots when: the student managed to Grade one's code, and Synced a different code afterwardsthe student did not try or manage to Grade one's code, and Synced once meanwhile |
Finally, note that this PR should only be squashed-merged (because there are many fixup commits, including a merge from master, but which does not cause any harm given the future squash-merge). |
I have made a pass on the code and I will try to test ASAP. |
Thanks; I addressed your remarks/questions
👍 |
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.
This is pretty nice, thanks!
(NOTE: I reviewed the code but haven't tested)
Apply code review suggestion Co-authored-by: Louis Gesbert <[email protected]>
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.
Just approving, formally (as I'm very happy with this PR which wasn't opened by me)
FYI @yurug @AltGr while we are on it and the PR is not yet merged, I pushed a commit to revert all seemingly-unwanted newlines that were in Still, it appears some of these unwanted newlines were already committed in master before this PR. Anyway, now it should be more "standard". |
I have tested it on my machine. Nothing to report. LGTM. |
@yurug thanks for the squash-merge 👍 |
Close #527
Description
Checklist
Note to maintainers
Close #…
if a related issue exists.