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

E2414 - Grading audit trail #2774

Open
wants to merge 26 commits into
base: main
Choose a base branch
from
Open

E2414 - Grading audit trail #2774

wants to merge 26 commits into from

Conversation

TylerEnck
Copy link

@TylerEnck TylerEnck commented Mar 25, 2024

Implements a feature to maintain a history of all changes made to grades for assignments and reviews. When an instructor enters a grade for an assignment or review, they have the option to view the grading history, which will display a listing of all of the grades and comments previously given.

This feature also implements logging for all grade changes using the ELK logging system (ElasticSearch Logstash Kibana). Log messages are created after a grade is given to any submission or review

This implementation is based on on work from E2383, adding several UI formatting changes, refactoring to improve coding style, and additional controller tests

Copy link
Member

@efg efg left a comment

Choose a reason for hiding this comment

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

Looks good!

if record == nil
@receiver = ""
@assignment = ""
else
Copy link
Member

Choose a reason for hiding this comment

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

This line needs a comment saying what the else condition signifies.


# populate the assignment fields according to type
def self.assignment_for_history(type, graded_member_id, participant_id)
# for a submission, the receiver is an AssignmentTeam
Copy link
Member

Choose a reason for hiding this comment

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

It's a class method, so the receiver is the class, no?

class ReviewGradingHistory < GradingHistory
attr_protected
belongs_to :graded_member, class_name: 'Participant'
end
Copy link
Member

Choose a reason for hiding this comment

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

Please add newlines at the end of files to avoid these annoying markers.

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.

None yet

3 participants