maudev-bignited / huge-person-database

0 stars 0 forks source link

Generate report of birthdays only filters using month #15

Open olijsca opened 3 weeks ago

olijsca commented 3 weeks ago

When generating a report of birthdays the only input that seems to filter all the birthdays of all persons is the month. The year is not taken into account.

/api/person/report/birthdays steps: 1: Fill the month parameter of the /api/person/report/birthdays GET request with a the number of a month where a person has been born from the database. 2: fill the year parameter of the /api/person/report/birthdays GET request with a random year this doesnt matter for the returned result eg. use a year that doesnt appear in the persons database table. 3: execute the GET request

Wrong outcome: all The people with the inputted month get returned but the return result doesnt take into consideration which year was inputted in the parameter.

Expected result:

Only people with the same year and month that are given in the inputs are returned in the response body.