jillytot / remote-control

Learning how to web dev : ]
17 stars 8 forks source link

Older channels can't update buttons #199

Closed jillytot closed 5 years ago

jillytot commented 5 years ago

New controls are being generated for a channel when there is already an existing control set. Todo: Write a script to kill the dupes. Make a patch to ensure no further dupes will be created.

jillytot commented 5 years ago

More updates: This is turning into a big thing. It's basically an issue with supporting legacy data in the database. I need to write a script that will do the following:

For each channel, find the most recent control interface created for that channel, and set that as the interface. If a channel does not have an assigned interface, then create one. Remove all older duplicates for controls. - This is risky, and may not be needed. Remove "channel" column from controller db object. Ensure that no duplicate interfaces can ever get created again.