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

feat: endpoint /api/ora_staff_grader/initialize upgraded #8

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nandodev-net
Copy link

@nandodev-net nandodev-net commented Oct 14, 2023

feat: endpoint /api/ora_staff_grader/initialize upgraded

Peek 2023-10-13 20-47

Implementation Details

Modifications were made in the following directories:

ORA2

  • openassessment/staffgrader/serializers/submission_list.py
  • openassessment/staffgrader/staff_grader_mixin.py
  • openassessment/data.py

edx-platform

  • lms/djangoapps/ora_staff_grader/serializers.py

This upgrade will consist of two PRs: one for ORA and the other for edx-platform. This is because the main serializer of the service resides in the platform. To test it, you'll need to fetch and set up the version of the platform with the serializer modification.

when i have authorization to contritute at Edunext's edx-platform fork, I'll send the platform's PR.

@nandodev-net nandodev-net changed the title feat: endpoint /api/ora_staff_grader/initialize upgraded feat: endpoint /api/ora_staff_grader/initialize upgraded Oct 14, 2023
Copy link

@mariajgrimaldi mariajgrimaldi left a comment

Choose a reason for hiding this comment

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

Before continuing the review, please remove the style changes and open the PRs you need against upstream. Thanks!

@@ -36,7 +37,7 @@ def _usernames_enabled():
Checks if toggle for deanonymized usernames in report enabled.
"""

return settings.FEATURES.get('ENABLE_ORA_USERNAMES_ON_DATA_EXPORT', False)
return settings.FEATURES.get("ENABLE_ORA_USERNAMES_ON_DATA_EXPORT", False)
Copy link

@mariajgrimaldi mariajgrimaldi Oct 16, 2023

Choose a reason for hiding this comment

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

We shouldn't add style changes to things we haven't modified, it generates unnecessary noise for the reviewers.

Comment on lines +150 to +191
"assessment",
"assessment_part",
"assessment_feedback",
"assessment_feedback_option",
"submission",
"score",
]

HEADERS = {
'assessment': [
'id', 'submission_uuid', 'scored_at',
'scorer_id', 'score_type',
'points_possible', 'feedback',
],
'assessment_part': [
'assessment_id', 'points_earned',
'criterion_name', 'criterion_label',
'option_name', 'option_label', 'feedback'
"assessment": [
"id",
"submission_uuid",
"scored_at",
"scorer_id",
"score_type",
"points_possible",
"feedback",
],
'assessment_feedback': [
'submission_uuid', 'feedback_text', 'options'
"assessment_part": [
"assessment_id",
"points_earned",
"criterion_name",
"criterion_label",
"option_name",
"option_label",
"feedback",
],
'assessment_feedback_option': [
'id', 'text'
"assessment_feedback": ["submission_uuid", "feedback_text", "options"],
"assessment_feedback_option": ["id", "text"],
"submission": [
"uuid",
"student_id",
"item_id",
"submitted_at",
"created_at",
"raw_answer",
],
'submission': [
'uuid', 'student_id', 'item_id',
'submitted_at', 'created_at', 'raw_answer'
"score": [
"submission_uuid",
"points_earned",
"points_possible",
"created_at",

Choose a reason for hiding this comment

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

Same comment here ^. Let's not add style changes to the lines we haven't changed

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