Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add live feedback storage and statistics #7497
base: master
Are you sure you want to change the base?
Add live feedback storage and statistics #7497
Changes from all commits
019dc23
83d1f59
7ede67f
c943385
d89b6b5
6b1e38b
940e65f
00d3ad9
e303b8e
8501a38
ba5e6f7
0509bd2
a6e05d6
4be98c7
6a9f0ea
082bd40
01fee01
01ff5f3
c85a081
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 105 in app/controllers/course/assessment/submission/submissions_controller.rb
Codecov / codecov/patch
app/controllers/course/assessment/submission/submissions_controller.rb#L105
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.
in calling the controller
generate_live_feedback
, when theresponse_status
is 200, you did the calling ofsave_live_feedback
on the Frontend, but also call that functionality here. Why do you need the calling ofsave_live_feedback
twice? Isn't once enough (either call it from frontend, or call it here?)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.
Because when response status is 200, live feedback is immediately available to be saved. FE wont call save_live_feedback. The live feedback is sent directly to FE from BE and frontend does no polling
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.
But when I try to generate the live feedback in the frontend (by clicking Get Help), there will be a network call for
save_live_feedback
.If when the response status is 200 the live feedback is immediately available, I think there should not be another call of save_live_feedback from FE; it should be silently saved in BE.
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.
@syoopie please attend to this review. Btw, just now I tried to comment out that line
save_live_feedback
and the API in generating live feedback still runs as expected (when you try to generate live feedback, that generated feedback will be saved accordingly to our DB and the count is increased by 1)Therefore, please investigate once more if the line 116 is needed here.
Check warning on line 116 in app/controllers/course/assessment/submission/submissions_controller.rb
Codecov / codecov/patch
app/controllers/course/assessment/submission/submissions_controller.rb#L113-L116
Check warning on line 119 in app/controllers/course/assessment/submission/submissions_controller.rb
Codecov / codecov/patch
app/controllers/course/assessment/submission/submissions_controller.rb#L119
Check warning on line 125 in app/controllers/course/assessment/submission/submissions_controller.rb
Codecov / codecov/patch
app/controllers/course/assessment/submission/submissions_controller.rb#L124-L125
Check warning on line 131 in app/controllers/course/assessment/submission/submissions_controller.rb
Codecov / codecov/patch
app/controllers/course/assessment/submission/submissions_controller.rb#L127-L131