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(past-answers): merged existing past answers submission/statistics views #7763

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

adi-herwana-nus
Copy link

  • 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

@adi-herwana-nus adi-herwana-nus force-pushed the adi/past-answers-unification branch from 4832dc7 to 9e7efc2 Compare January 21, 2025 06:33

describe '#show' do
render_views
subject { get :show, format: :json, params: { course_id: course, assessment_id: assessment, submission_id: submission, id: answer.id } }
Copy link

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 }
Copy link

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]

adi-herwana-nus added 2 commits January 22, 2025 19:33
…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
@adi-herwana-nus adi-herwana-nus force-pushed the adi/past-answers-unification branch from 93d8bd4 to ff8ffdf Compare January 22, 2025 11:33
@@ -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'
Copy link

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]

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.

1 participant