-
Notifications
You must be signed in to change notification settings - Fork 22
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
Read meta data from environment #70
Conversation
I would like to avoid the system call inside that class. I'd suggest creating a class to represent the student data and pass it to the Context. Check the AndyOnWebLab class, that's the main method that Weblab calls! |
@@ -98,7 +98,8 @@ private void writeAnalyticsFile(Context ctx, Result result) { | |||
return; | |||
|
|||
Submission submission = new Submission( | |||
new SubmissionMetaData(System.getenv("WL_COURSE"), System.getenv("WL_STUDENT"), System.getenv("WL_ASSIGNMENT_TITLE"), ctx.getAction()), | |||
ctx.getAction(), | |||
ctx.getMetaData(), |
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'd just rename the method to getSubmissionMetaData
to make it more explicit!
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.
One small comment only, but LGTM! You can merge after the suggestion!
d937115
to
b5fa833
Compare
Read meta data from environment according to this.
I do not know how to run Andy in WebLab so I would like someone else to check that the output has correct meta data.