mrpaulmason / meetable-api

Meetable API
1 stars 0 forks source link

New relay upload interface #140

Open mrpaulmason opened 6 years ago

mrpaulmason commented 6 years ago

stemming from a discussion on simplifying how we add new numbers to the relay pool #85, I created this ticket at @darmai request.

My first question is can't the "interface" just be a spreadsheet like the first 30 numbers like in #82 ?

darmai commented 6 years ago

Yes, it can be. I would like to make it even simpler so that the spreadsheet is the upload interface itself. I've done this a couple of times.

Google Docs has a JavaScript derivative (called google apps script, of course) that one can use to do some pretty powerful things. With regard to this project, I can create an endpoint to the API which accepts a POST request containing new relay numbers, adds these relay numbers to the database, and sets them to be active. All that you would need to do is populate the spreadsheet with new relay numbers and push a submit button.

How does that sound?

mrpaulmason commented 6 years ago

Sounds like a good idea, thanks for suggesting. Does it make sense to add a flag/function to deactivate numbers en masse even though i'll mostly use //release from the number? Not if it over complicates things.

darmai commented 6 years ago

It would be easy to provide that functionality as well. It can just be another tab on the same Google Sheet