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

Javalab: add route to get reviewable projects for level #41785

Merged
merged 4 commits into from
Jul 29, 2021

Conversation

bencodeorg
Copy link
Contributor

Add route to return list of reviewable projects, such that we can include a dropdown of available projects to review in the review tab in Javalab.

Testing story

Added unit tests.

Follow-up work

Note the rather complicated query required to get the list of students whose projects should be considered for review. I think if we included section_id as a field in ReviewableProject, this could be a lot cleaner. That said, I'm not sure we have a super clean way of associating student progress with a specific section ID, so that part might be tricky.

Also we need to follow up to index this table appropriately to allow us to efficiently query by user/level/script ID -- work item here

@bencodeorg bencodeorg requested a review from a team July 28, 2021 20:09
@molly-moen
Copy link
Contributor

@bencodeorg I think the query is fine, I seem to recall it was hard/impossible to determine section id from a level. Indexes are a good idea!

…m:code-dot-org/code-dot-org into ben/javalab-reviewable-project-list-route
@sanchitmalhotra126 sanchitmalhotra126 merged commit 4b652ab into staging Jul 29, 2021
@sanchitmalhotra126 sanchitmalhotra126 deleted the ben/javalab-reviewable-project-list-route branch July 29, 2021 22:13
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.

None yet

3 participants