Skip to content

Adding submissions in seperate directories#81

Open
amohamed97 wants to merge 2 commits intostagingfrom
BE_75_adding_submissions_in_seperate_directories
Open

Adding submissions in seperate directories#81
amohamed97 wants to merge 2 commits intostagingfrom
BE_75_adding_submissions_in_seperate_directories

Conversation

@amohamed97
Copy link
Copy Markdown
Contributor

@amohamed97 amohamed97 commented Oct 17, 2020

Closes #75

@amohamed97 amohamed97 changed the title Be 75 adding submissions in seperate directories Adding submissions in seperate directories Oct 17, 2020
@amohamed97 amohamed97 force-pushed the BE_75_adding_submissions_in_seperate_directories branch from de6320f to 991b7fc Compare October 17, 2020 09:45
@amroakmal amroakmal self-requested a review October 17, 2020 23:40
Comment thread graderx/graders/import_submissions.py Outdated
@amohamed97 amohamed97 force-pushed the BE_75_adding_submissions_in_seperate_directories branch from 991b7fc to 13e9375 Compare October 19, 2020 07:07
@amohamed97 amohamed97 requested a review from shakram02 October 19, 2020 07:09
@amohamed97 amohamed97 dismissed shakram02’s stale review October 24, 2020 17:21

addressed the request

Comment thread graderx/graders/import_submissions.py
@@ -286,8 +288,9 @@ def import_submissions(self):

iterCol = iter(submission_list)
Copy link
Copy Markdown
Collaborator

@shakram02 shakram02 Oct 28, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python uses snake_case naming.

URL[0] isn't really helpful 😅 (below this line)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

about URL[0], you mean the naming ( shouldn't be capital letters ) or about the ambiguity of what I'm trying to get from URL

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can use uppercase letters if those are constants, and yes the name is ambiguous

"""
course_grader = select_course_grader(course_name)
course_grader.add_submissions(course_name, lab, submissions_file)
submission_key = course_grader.add_submissions(course_name, lab, submissions_file)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does the add_submissions(course_name, lab, submissions_file) add a single submission file? (so the function should be names add_submission without an s) or the submissions_file variable contains multiple submissions? (so it should be names submission_files)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it adds multiple submissions, but 'submissions_file' is a compressed file containing multiple submissions, is it still more descriptive to make it submission_files?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think submissions_compressed_file can be more descriptive

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, or decompress first then pass the uncompressed files to the course_grader since it's not its responsibility to decompress files.

Comment thread graderx/graders/stdout_graders/c/c_grader.py
Comment thread graderx/graders/stdout_graders/c/c_grader.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adding submission should create a seperated directory with a unique key

4 participants