Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces a new feature for handling snapshots of custom projects in the API. It includes changes to the controller, service, DTOs, and integration tests to support this functionality. The most important changes are summarized below:
New Snapshot Feature:
Controller Updates:
snapshot
to theCustomProjectsController
to handle snapshot creation requests. (api/src/modules/custom-projects/custom-projects.controller.ts
: api/src/modules/custom-projects/custom-projects.controller.tsR68-R84)CustomProjectSnapshotDto
in the controller. (api/src/modules/custom-projects/custom-projects.controller.ts
: api/src/modules/custom-projects/custom-projects.controller.tsR8)Service Updates:
saveCustomProject
to theCustomProjectsService
to save the custom project snapshots. (api/src/modules/custom-projects/custom-projects.service.ts
: api/src/modules/custom-projects/custom-projects.service.tsR65-R68)CustomProjectSnapshotDto
in the service. (api/src/modules/custom-projects/custom-projects.service.ts
: api/src/modules/custom-projects/custom-projects.service.tsR14)DTOs and Entity Updates:
CustomProjectSnapshotDto
and its related classes for handling snapshot data. (api/src/modules/custom-projects/dto/custom-project-snapshot.dto.ts
: api/src/modules/custom-projects/dto/custom-project-snapshot.dto.tsR1-R174)CustomProject
entity to include fields for input and output snapshots and a static method to create an entity from the DTO. (shared/entities/custom-project.entity.ts
: shared/entities/custom-project.entity.tsL12-R53)Integration Tests:
api/test/integration/custom-projects/custom-projects-snapshot.spec.ts
: api/test/integration/custom-projects/custom-projects-snapshot.spec.tsR1-R122)Contract Updates:
customProjectContract
to include a new route for snapshot creation. (shared/contracts/custom-projects.contract.ts
: shared/contracts/custom-projects.contract.tsR48-R55)These changes collectively introduce the capability to create, save, and test snapshots of custom projects, enhancing the functionality and robustness of the custom projects module.