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
Right now the GUI treats the context file as a source-of-truth for things like:
What variables exist
What their titles (and other attributes) are
This has some unfortunate behaviour, such as:
Variables that are in the database but not in the context file will only be displayed with their variable name as title (all other information is lost)
If the context file is invalid for some reason then the GUI will crash when it tries to open it
If a variable title is changed, the new title will only be displayed after the database is reopened
In general I think the solution is to store all variable information in the database, so that the database becomes the source-of-truth for the GUI. But then the question is, how do we get new information from the context file into the database? Right now we would have to do something like reprocess a run so that the new variable settings get saved, but that feels quite hacky.
Another option is to allow the user to click a button to refresh the metadata in the database from the context file, such that the context file would be loaded into a ContextFile object with all the metadata and then saved.
The text was updated successfully, but these errors were encountered:
Right now the GUI treats the context file as a source-of-truth for things like:
This has some unfortunate behaviour, such as:
In general I think the solution is to store all variable information in the database, so that the database becomes the source-of-truth for the GUI. But then the question is, how do we get new information from the context file into the database? Right now we would have to do something like reprocess a run so that the new variable settings get saved, but that feels quite hacky.
Another option is to allow the user to click a button to refresh the metadata in the database from the context file, such that the context file would be loaded into a
ContextFile
object with all the metadata and then saved.The text was updated successfully, but these errors were encountered: