KitaPlatzZentrale / kpz

1 stars 0 forks source link

CheckKitaAvailabilityService #111

Closed Darjusch closed 4 months ago

Darjusch commented 4 months ago

Checks KitaAvailability of Kitas that users subscribed to. When they are available a email is send.

To test:

  1. Go on https://dev.kitaplatz-zentrale.de/finder and subscribe to some Kitas with your email.
  2. Go on: https://eu-central-1.console.aws.amazon.com/lambda/home?region=eu-central-1#/functions/DEV_SendKitaAvailabilityNotification?code&tab=code

and press test.

You should now get a Email telling you about Kitas that are available. -> If the kita list in your Email is empty that is because they are not available yet ( since you subscribed to unavailable kitas ) -> Change a date in the database to test with the kita list



Currently we check if the Kita is available from the point of selection onwards: Lets say you selected Mai 2024 as start date it will see everything later as Mai 2024 as availability. Which means some of the Kitas are "technically" available when you subscribe since the subscription is only checking the current month.


Once reviewed i will create a CronJob that will call this periodically!