Skip to content
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

Merged
merged 5 commits into from
Nov 23, 2021
Merged

Read meta data from environment #70

merged 5 commits into from
Nov 23, 2021

Conversation

yoonhwanjeong
Copy link
Contributor

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.

@mauricioaniche
Copy link
Contributor

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(),
Copy link
Contributor

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!

Copy link
Contributor

@mauricioaniche mauricioaniche left a 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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants