Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Api: Airtable Integration #1583

Open
daleighan opened this issue Mar 17, 2020 · 2 comments
Open

Api: Airtable Integration #1583

daleighan opened this issue Mar 17, 2020 · 2 comments

Comments

@daleighan
Copy link
Contributor

Goals:

  • Make it so that lb.waivecar.com shows info from airtable. The info fetched may be stored as text on - the car object or some other way of storing the information may be used. Later, when this is confirmed to work, the info will be saved to the cars model and will not be editable on lb
  • Add the ability to add airtable tickets on lb.waivecar.com
  • Separate cars from telematics by using a new telematics table. This should allow switching of telematics units: id | car_id | telem_id | first_seen | last_seen
  • Change where cars are added. Where cars are currently added, add new telem to the telematics table instead
  • Cars should now be added in cars-sync loop, but only once their telematics id is added to airtable. This is so that cars can be added to airtable before they have a telematics unit installed.
  • Make sure the telematics can be reassigned from airtable
  • Add a route showing unassigned telems (doesn’t really need to have a front end, can just return json)

(Airtable API docs here: https://airtable.com/appPTFWqjSvOrKcfu/api/docs#curl/table:screens:fields)

@daleighan daleighan self-assigned this Mar 17, 2020
@daleighan
Copy link
Contributor Author

daleighan commented Mar 19, 2020

create table telematics (
  id int(11) not null auto_increment,
  telem_id  varchar(28) not null,
  car_id varchar(28) default null,
  created_at datetime not null,
  updated_at datetime not null,
  deleted_at datetime default null,
  last_seen_at datetime default null,
  PRIMARY KEY(`id`)
);
alter table cars add column airtable_data text default null after comments;

@daleighan
Copy link
Contributor Author

There is now a route for listing unassigned telematics: api.waivecar.com/unassignedTelematics

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant