Skip to content

Validate Project exists before creating Tasks #9

@scionwest

Description

@scionwest

The Task API currently does not validate that a ProjectId given to it in a POST request is valid and exists.

To address this a SNS subscriber needs to be created for listening to project-created events. These events are already being published by the Project API.

The Task API can store the project-created event data in a dedicated ProjectLookup DynamoDB Table. When HTTP POST are made a query against the table can be made to validate the ProjectId delivered is real and can be used.

The project-deleted SNS event handler will need to be updated to delete the Project from the new ProjectLookup table when it is triggered to delete Project Tasks.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions