-
Notifications
You must be signed in to change notification settings - Fork 78
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(past-answers): merged existing past answers submission/statistics views #7763
base: master
Are you sure you want to change the base?
Conversation
adi-herwana-nus
commented
Jan 21, 2025
- implemented combined view, can toggle between "timeline" (old statistics) and "sequence" (old submission) view
- moved / reworked existing view files into submission directory
- re-implemented answer history state reducers in typescript
- migrated old statistics answer types to submission AnswerData types
- tweaked /statistsics/answer/show API to maintain parity with other data type
- tweaked submissions API to new history format, return questionNumber as number
4832dc7
to
9e7efc2
Compare
|
||
describe '#show' do | ||
render_views | ||
subject { get :show, format: :json, params: { course_id: course, assessment_id: assessment, submission_id: submission, id: answer.id } } |
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.
[Correctable] Layout/LineLength: Line is too long. [144/120]
@@ -21,7 +21,7 @@ | |||
subject do | |||
get :all_answers, | |||
format: :json, | |||
params: { course_id: course, submission_id: answer.submission_id, question_id: answer.question_id } | |||
params: { course_id: course, id: assessment, submission_id: answer.submission_id, question_id: answer.question_id } |
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.
[Correctable] Layout/LineLength: Line is too long. [127/120]
…s views - implemented combined view, can toggle between "timeline" (old statistics) and "sequence" (old submission) view - moved / reworked existing view files into submission directory - re-implemented answer history state reducers in typescript - migrated old statistics answer types to submission AnswerData types - tweaked /statistsics/answer/show API to maintain parity with other data type - tweaked submissions API to new history format, return questionNumber as number
93d8bd4
to
ff8ffdf
Compare
@@ -290,9 +290,9 @@ | |||
end | |||
end | |||
|
|||
get 'submissions/:submission_id/questions/:question_id/all_answers', on: :member, to: 'submission_question/submission_questions#all_answers', as: 'submission_question_custom' |
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.
[Correctable] Layout/LineLength: Line is too long. [184/120]