Skip to content

Conversation

@mwarman
Copy link
Member

@mwarman mwarman commented Dec 2, 2025

📢 Instructions

  • Begin with a DRAFT pull request.
  • Follow italicized instructions to add detail to assist the reviewers.
  • After completing all checklist items, change the pull request to READY.

🔧 Change Summary

Describe the changes included in this pull request. Link to the associated GitHub or Jira issue(s).

  • see Update endpoint #6
  • Added an API endpoint to update an item, i.e. a Task
  • Updated the infrastructure

📝 Checklist

Pull request authors must complete the following tasks before marking the PR as ready to review.

  • Complete a self-review of changes
  • Unit tests have been created or updated
  • The code is free of [new] lint errors and warnings
  • Update project documentation as needed: README, /docs, JSDoc, etc.

🧪 Steps to Test

Describe the process to test the changes in this pull request.

  1. Deploy to AWS
  2. Test the update endpoint

🔗 Additional Information

Optionally, provide additional details, screenshots, or URLs that may assist the reviewer.

  • [...]

- Add update-task handler to process PUT requests for updating tasks in DynamoDB.
- Introduce UpdateTaskDto schema for validating incoming request bodies.
- Implement unit tests for update-task handler covering various scenarios including validation errors and successful updates.
- Create task-service function to handle the update logic, including dynamic update expressions for optional fields.
- Add logging for tracking request flow and errors.
- Ensure that the task is returned without the primary key in the response.
@mwarman mwarman self-assigned this Dec 2, 2025
@mwarman mwarman linked an issue Dec 2, 2025 that may be closed by this pull request
@mwarman mwarman marked this pull request as ready for review December 2, 2025 15:28
@mwarman mwarman merged commit 54e137f into main Dec 2, 2025
1 check passed
@mwarman mwarman deleted the 6-update-endpoint branch December 2, 2025 15:29
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.

Update endpoint

2 participants