Skip to content

Add endpoint to evaluate a section's students on every level in a unit #66642

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

Open
wants to merge 6 commits into
base: staging
Choose a base branch
from

Conversation

lfryemason
Copy link
Contributor

Adds an endpoint that takes a section and a unit and creates UserLevelEvaluations, UserLevelSkillEvaluations and StudentWorkEvaluationSummaries (only for skills). This will be used in the skills 'dashboard' work.

Note that all three rails models types were created and the output of the evaluate_section method below is nil:
image

Links

@lfryemason lfryemason marked this pull request as ready for review June 23, 2025 16:23
@lfryemason lfryemason requested a review from Erin007 June 23, 2025 16:23
def self.evaluate_code_level(user_level, unit)
# Why isn't this retrieving the student code?
helper = ApplicationController.helpers
student_code = helper.get_student_code(user_level.user.id, user_level.level, unit.id)
Copy link
Contributor

Choose a reason for hiding this comment

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

Can just call it as get_student_code. I don't think you need the ApplicationController.helpers bit... but the only other places we call this are in controllers not helpers so I could be wrong.

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.

2 participants