Skip to content

[frontend] Moving the concept of store_submission into the Task Dispenser#851

Merged
anthonygego merged 8 commits into
INGInious:masterfrom
maleclercq:copie_master
Jul 27, 2022
Merged

[frontend] Moving the concept of store_submission into the Task Dispenser#851
anthonygego merged 8 commits into
INGInious:masterfrom
maleclercq:copie_master

Conversation

@maleclercq

Copy link
Copy Markdown
Contributor

No description provided.

pass

@abstractmethod
def get_stored_submissions(self, taskid):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

As it is being modified, I think it would be more intuitive and readable for newcomers to rename stored_submissions to no_stored_submissions (no = number abbreviation).

return submissionid, to_remove

def _delete_exceeding_submissions(self, username, task, max_submissions_bound=-1):
def _delete_exceeding_submissions(self, username, task, task_dispenser, max_submissions_bound=-1):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Either there is a call to this function that has not been updated, either the max_submissions_bound argument is never used and removed from the signature.

""" Returns the localized task dispenser name """
return _("Table of contents")

def get_course_grade(self, username):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Is this a duplicated piece of code ?

else:
raise InvalidTocException( ("The weight value must be a numeric >= 0 for the task: " + str(taskid)) )

self._store_submission = {}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I guess this piece of code was taken from the edit task page code, but I don't see it removed from anywhere in the code in this PR.

</div>
</div>
<div class="form-group row">
<label for="groups" class="col-sm-2 control-label">{{_("Submission mode")}}</label>

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Not sure this should be removed from this PR.

@anthonygego

Copy link
Copy Markdown
Member

LGTM

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