WaiveCar / Waivecar

Waivecar
https://waivecar.com
0 stars 0 forks source link

Api: Updates for WaivePark and additional logging #1511

Open daleighan opened 5 years ago

daleighan commented 5 years ago

There are going to be some updates to the API part of WaivePark so that chargers can be placed at users' houses. Additionally, logging of a number of different WaivePark events will be added along with new Slack notifications.

daleighan commented 5 years ago
ALTER TABLE user_parking 
  ADD COLUMN charger_level INT(11) DEFAULT 0 after notes, 
  ADD COLUMN waive_owned BOOL DEFAULT true after charger_level, 
  ADD COLUMN charger_brand TEXT DEFAULT NULL after waivecar_owned, 
  ADD COLUMN last_working DATETIME DEFAULT NULL after charger_brand, 
  ADD COLUMN broken_at DATETIME DEFAULT NULL after last_working; 
daleighan commented 5 years ago
ALTER TABLE parking_reservations 
  ADD booking_id INT after expired; 
daleighan commented 5 years ago

One thing that will need to be done in web component of this: make sure that users aren't adding numerous spaces when they don't mean to.

daleighan commented 5 years ago

I have added in a few more slack notifications and a lot more logging. There may be more to add, so I am not going to mark as implemented until I've tested things and added more if I need to.

daleighan commented 5 years ago

Additionally, if a space has a charger, I will need to add a way to mark the most recent time that the charger worked when cars are removed from spaces.