kigt-inc / charge-cloud-backend-2023

0 stars 0 forks source link

Add a "Test" Mode to the webhook #52

Open kdiaz489 opened 10 months ago

kdiaz489 commented 10 months ago

The KIGT team needs a way to test the web hook and only connect to ONE charger. At the moment, if we were to test out the webhook, it would connect to all chargers in the field which would not be efficient if we only want to test a specific charger.

Please create a new flag in the backend code for the webhook that lets it know if we are in test mode (boolean) or not. If we are in test mode, the tester needs to specify the charger id they want to connect to and allow incoming requests from that charger.

darshanP-crest commented 9 months ago

@kdiaz489 Currently, we retrieve chargeStation data based on the serial number provided in the webhook's request body. This means that if we use the same serial number, we receive the identical chargeStation data each time.

darshanP-crest commented 9 months ago

@kdiaz489 Any updates on this ticket?

kdiaz489 commented 9 months ago

@darshanP-crest my apologies, i dont understand the question/concern

darshanP-crest commented 9 months ago

@kdiaz489 Currently, we obtain charge station data or establish a connection based on the serial number provided in the webbook's request body. Consequently, if we use the same serial number, we will consistently access the same charge station data. In the context of this ticket, while in test mode, we do not intend to connect to any additional charge stations, is that correct? Is it clearer now?

kdiaz489 commented 9 months ago

setting this task aside for now