-
Notifications
You must be signed in to change notification settings - Fork 56
Create endpoint for retrieval of all assessment submissions #1210
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
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ | |
# Cadet.Repo.insert!(%Cadet.Settings.Sublanguage{chapter: 1, variant: "default"}) | ||
|
||
if Cadet.Env.env() == :dev do | ||
number_of_students = 100_000 | ||
number_of_students = 100 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any reason this is reduced again? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it was taking too long to reset the db :( There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oof 😢 ok maybe we will see how then, we can change it back later haha There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Though I think we can put it to 1000 to mimic 1101S? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. yeah, 1000 would be good! doesnt take too long for a one time set up (at most a minute). |
||
number_of_assessments = 5 | ||
number_of_questions = 13 | ||
|
||
|
@@ -84,7 +84,7 @@ | |
# Users | ||
Enum.each(groups_and_courses, fn {group, course} -> | ||
students = | ||
for i <- 1..number_of_students do | ||
student = insert(:user, %{latest_viewed_course: course}) | ||
|
||
student_cr = | ||
|
@@ -118,7 +118,7 @@ | |
}) | ||
end) | ||
|
||
for i <- 1..number_of_assessments do | ||
assessment = | ||
insert(:assessment, %{ | ||
is_published: true, | ||
|
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.
Haha sure, maybe in the future we can filter by assessment name (it's a use case for the PA because we export the grades to Canvas separately).
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.
oh yes, that would be a good future change to generalize the export function!