- It would be better to localize some of the strings like the Gift
- Testing is not quite there. Did not have time to test the repositories
- The Methods for the mapping or Repository objects to Domain objects should be removed from the Tracking service. These should really be in their own mapping class
- The validation annotation used on the RequestDTO does not seem to validate email ok. Coding error or a missunderstanding of how this validator works. Would like to investigate this one more
- Would be nice to validate the customerId as well. I would do this with some regex if I had specification for it.
- EF made the DB part of the work simpler but I am not happy with the sorting code being in the repository. Technically this is business logic. I would like to expplore passing in an expression to the Repo and letting the code the business layer decide on the sorting logic
- There isn't enough resiliance on the calls being made to the Customer details API. With more time, I would add some retry logic
- This data is highly cachable since the expected date is unlikely to be changing frequently. With time, I would cache both the calls to the DB and the API
- Logging is a little sparse. With more time I would make this log more details. My only concern is logging emails might break GDPR. Would be one to check with the DPO
- I have not made considerations for security. Someone could send int a large text for the customerId and rapidly do this to DDoS the service.
- Hardnening - Enforcement of Https. Although depending on the hosting environment this may not need to be done in code
- Hardnening - Removal of any headers that might give away the technology used
- This service is actually best hosted in an azure function. I would write and deploy this there.
-
Notifications
You must be signed in to change notification settings - Fork 0
License
TMUNYU/sql-dotnetcore-test
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published