datalab-org / datalab

datalab is a place to store experimental data and the connections between them.
https://docs.datalab-org.io
MIT License
43 stars 17 forks source link

Handle deployment settings in a new collection in the database #704

Open jdbocarsly opened 5 months ago

jdbocarsly commented 5 months ago

We have a number of settings on the frontend and backend that are currently set using environement variables. It would be nice for admins to be able to set many of these settings from the app itself.

To do this, we will need a new database collection called "settings" (or similar), that holds a document with settings for the overall deployment, as well as documents for individual block types. Many of the settings in resources.js could be stored here, as well as things like API keys for llm models, configuration for login types, etc. These settings could be changeable by admins from the new admin panel that is in development.

ml-evs commented 5 months ago

Some stuff needed (in discussion with @BenjaminCharmes):

ml-evs commented 5 months ago

This general approach will be followed by #667 at some point too