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
base: main
Are you sure you want to change the base?
Conversation
Set up Grading history base implementation
Tsenck/UI refactor
Btsima/grading history refactor
Updated testing
There was a problem hiding this 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 |
There was a problem hiding this comment.
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.
app/models/grading_history.rb
Outdated
|
||
# 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 |
There was a problem hiding this comment.
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?
app/models/review_grading_history.rb
Outdated
class ReviewGradingHistory < GradingHistory | ||
attr_protected | ||
belongs_to :graded_member, class_name: 'Participant' | ||
end |
There was a problem hiding this comment.
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.
Refactoring Program 3 Changes
Make grading history table smaller, add tests
Update failing controller specs
Add newlines at end of file
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