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

API: /evals/batch #9

Open
joeoneil opened this issue Oct 5, 2023 · 1 comment
Open

API: /evals/batch #9

joeoneil opened this issue Oct 5, 2023 · 1 comment
Assignees
Labels
API API Route issue backend Backend specific issue

Comments

@joeoneil
Copy link
Collaborator

joeoneil commented Oct 5, 2023

Batch view / definition routes
7 Routes


POST /evals/batch
accessible to all upperclassmen

Creates a new batch with either specified criteria or specific members
If created by the evals director, should be automatically approved.


GET /evals/batch
accessible to all members

Gets all currently approved batches
If evals, also shows pending batches


PUT /evals/batch/{id}
accessible to evals director

Modifies an existing batch, either approving a member-submitted batch or manually altering an approved batch


POST /evals/batch/pull/{user}
accessible to evals director

Pulls a user from all batches, and marking them as being pulled, so they cannot be placed into any new batches manually or automatically.


POST /evals/batch/pr
accessible to all upperclassmen

Submits a request to pull a user from all batches, must include a reason.


GET /evals/batch/pr
accessible to evals director

Shows all pending and approved pull requests

Discuss: Should members be able to view their own submitted PRs and their status (pending / denied / approved)?


PUT /evals/batch/pr
accessible to evals director

Modifies a pull request, marking as approved / denied.

@joeoneil joeoneil added backend Backend specific issue API API Route issue labels Oct 5, 2023
@joeoneil
Copy link
Collaborator Author

joeoneil commented Oct 8, 2023

image
Schema for batches

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API API Route issue backend Backend specific issue
Projects
None yet
Development

No branches or pull requests

3 participants