NickPriv / FryRankBackend

A back-end Java application allowing users to create and view reviews for french fries at restaurants
https://fryrank.oxyserver.com
0 stars 0 forks source link

[Backend] Input validation: Verify required fields and check for duplicates #25

Closed NickPriv closed 9 months ago

NickPriv commented 1 year ago

There should be null checks on all required fields for Create Review requests. It should also check for duplicates, e.g. duplicate author.

NickPriv commented 9 months ago

Currently implementing the null checks on required fields. However, not going to check for duplicate author at this point in time. This is because, it the user wants to create a duplicate review, all they have to do is change the author name. Additionally, searching the database for reviews with a certain author name could make the create request take significantly longer once there is a large set of reviews in our database.

NickPriv commented 9 months ago

Was not able to reproduce the issue. Working as intended.