OpenFn / lightning

OpenFn/Lightning ⚡️ is the newest version of the OpenFn DPG and provides a web UI to visually manage complex workflow automation projects.
https://openfn.github.io/lightning/
GNU Lesser General Public License v3.0
115 stars 31 forks source link

Work out a better way to populate the adaptor list #2209

Open josephjclark opened 1 week ago

josephjclark commented 1 week ago

The Workblow builder has a drop-down that lets you pick an adaptor version

At the moment, as I understand it, the list of available adaptors is only update when the server first starts.

It is a pain when releasing a new adaptor version requires a manual Lightning restart. This problem will only get worse with the pre-release stuff.

We need a faster and easier means of updating the list so that it stays more relevant.

Brainstorming some ideas:

josephjclark commented 1 day ago

My preferred approach would be to:

This does require a rich custom picklist component

josephjclark commented 1 day ago

A really easy brute force approach would be to simply popuate the list when the page first loads. Load it in the background and by the time the users clicks the drop-down, it'll be ready for them. It's not THAT much work computationally, and we could consider a server-side cache of the raw data with a short lease (like 5 minutes)