-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update data models #127
Comments
Current structure:
No current foreign key relationships exist. We will at least need a |
A couple questions,
so the machine property exists in sizes.js, backupEvents.js, and system.js. When you say you want a new machine object, are you implying we should create a new machine model and scrap the old ones? It's somewhat confusing because machine is referred to in many different places. On a side note, would creating an ER diagram be helpful for documentation / clarification? |
Here is what we were thinking about so far, do you have any suggestions? `backupEvent: { sizes: { machine : { |
In the research and planning for #111 and #93, we have identified that there is an unnecessary redundancy between the database data models and the memory models used to manage the backup system in
lib/system.js:machines:17
andlib/system.js:prepareMachines():145-164
. The loose typing of JS has caused the problems mentioned above because of inconsistencies in the way thesystem.js
reads and creates this models atinit()
and the way they are created when a backup is completed during active processing by thersync.js
module. They are also lightly documented and hard to determine expectations for the codebase because this documentation is not centralized anywhere.As a solution we will rethink our database and move all of these memory models into the database. This process will require a codebase reorganization but will result in a much cleaner and more maintainable system. Use this issue to describe the plan for this work.
The text was updated successfully, but these errors were encountered: