Dto's for software registry#350
Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces DTO mapping for the Software Registry lambdas so API responses align with the generated SoftwareRegistry model (notably converting timestamp fields), and adjusts the persisted software model timestamp types to match DynamoDB storage.
Changes:
- Added
dtoToEntity/entityToDtomappers forSoftwareRegistry↔SoftwareModel. - Updated create/list/update software handlers to use the new mappers for response/request shaping.
- Changed
SoftwareModel.createdAt/lastUpdatedAttypes fromDatetostring.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
src/functions/software-registry/update-software/handler.ts |
Returns the updated record via entityToDto before serializing. |
src/functions/software-registry/list-software/handler.ts |
Uses entityToDto for list responses instead of inline mapping. |
src/functions/software-registry/create-software/handler.ts |
Converts DTO→entity before create, and entity→DTO on response. |
src/database/models/software.ts |
Aligns timestamp fields with DynamoDB (ISO string) representation. |
src/database/dtos/softwareRegistryDtos.ts |
Adds centralized mapping functions for the software registry types. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
|



No description provided.