Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Finished the unallocated item partner mutation #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shaply
Copy link
Collaborator

@shaply shaply commented Feb 12, 2025

Description

Create a POST route handler at /api/unallocatedItems that accepts form data and creates an UnallocatedItemRequest record using the form data. The form data will include the following fields: unallocatedItemId, priority, quantity, and comment.

Success Criteria

  • 401 if no session
  • 403 if user is not a PARTNER
  • 404 if the unallocated item does not exist
  • The form data is validated using a zod schema
  • An UnallocatedItemRequest record is created
  • The route handler is documented with a description of its function, parameters, and responses
  • There is a test file that covers the success criteria

Checklist

  • The ticket is mentioned above
  • The changes fulfill the success criteria of the ticket
  • The changes were self-reviewed
  • A review was requested

Copy link

netlify bot commented Feb 12, 2025

Deploy Preview for hope-for-haiti ready!

Name Link
🔨 Latest commit f5e600b
🔍 Latest deploy log https://app.netlify.com/sites/hope-for-haiti/deploys/67ac0609a556f80008c97a16
😎 Deploy Preview https://deploy-preview-38--hope-for-haiti.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant