-
Notifications
You must be signed in to change notification settings - Fork 16
Update Saas Configs and Datasets on System Startup #1098
Comments
if a template dataset is changed in the registry, i assume we want to update the datasets in the db that were created from that template. that brings up a question though:
i'm assuming the intention here is that an update to a given saas provider template, whether that's in its config or its dataset or both, is recorded by incrementing the version number stored in the config. the code would then compare that version number with saas config records in the db that have the same for now, turning off auto updates can be accomplished by the user simply changing the @pattisdr @galvana please let me know if any of this seems off-base. happy to discuss more offline too, but wanted to write this down here as a reference. |
noting here that after discussion with @galvana, we agreed that a separate issue should be created to provide some sort of heads-up to the user if a template is changed such that a param is added, since the user will need to update their config to parameterize the new value |
Is your feature request related to a specific problem?
We update the saas config and saas dataset files over time, which can cause them to diverge with saas configs and saas datasets that have been saved in a user's database.
On system startup, if the version in the registry is newer than the SaaS config version in the connection config table, update the saas config and the dataset. We also need to standardize the version number that already exists in the SaaS configs, they are all currently set to version 0.0.1
Describe the solution you'd like
Instead of creating data migrations every time we update a saas config or dataset config template file, add logic to just make the changes automatically on startup.
Steps:
Add ability to turn off auto update
Describe alternatives you've considered, if any
A description of any alternative solutions or features you've considered.
Additional context
Separated from #814 to release that functionality more quickly
The text was updated successfully, but these errors were encountered: