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

Validation APIs: GradingJobConfig and GradingScript #84

Merged
merged 5 commits into from
Aug 28, 2024

Conversation

williams-jack
Copy link
Collaborator

@williams-jack williams-jack commented Aug 28, 2024

Feature/Problem Description

Clients who use Orca should be able to check if a grading job configuration they've generated is valid; this can be accomplished by way of exposing a validation endpoint. This is the same case for the GradingScript component of the job, where custom graders may need to validate that in isolation.

Solution (Changes Made)

  • /api/v1/validate_grading_job endpoint added to check request body against GradingJobConfig validator.
  • /api/v1/validate_grading_script endpoint added to check request body against the new GradingScript validator.

Additional Notes

  • An issue was caught where, because the / route mapper was using Express' use function, it would take any route of the form /.* and any method (e.g., POST, GET, etc) and return the Orca API landing page if a route was given that did not exist. This is fixed by mapping it to get specifically.

@williams-jack williams-jack changed the title Feat/job validation api Validation APIs: GradingJobConfig and GradingScript Aug 28, 2024
@blerner blerner merged commit 18db9ef into main Aug 28, 2024
2 checks passed
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