You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The node_config table on the database requires all its values to be not null, and should return an error if trying to insert null values.
When creating a NodePersistentConfig object to insert in the database, an incomplete struct with missing values is still inserted in the database, meaning the values aren't defaulting to nil and it's inserting something we don't know.
✔️ Solution
We need to investigate what are the default values when creating the model, and change them to be nil. It shouldn't work unless we provide every information.
📈 Subtasks
Investigate model default values
Update model creation to require all values
The text was updated successfully, but these errors were encountered:
📚 Context
The
node_config
table on the database requires all its values to be not null, and should return an error if trying to insert null values.When creating a NodePersistentConfig object to insert in the database, an incomplete struct with missing values is still inserted in the database, meaning the values aren't defaulting to nil and it's inserting something we don't know.
✔️ Solution
We need to investigate what are the default values when creating the model, and change them to be nil. It shouldn't work unless we provide every information.
📈 Subtasks
The text was updated successfully, but these errors were encountered: