I was testing the new code for sub-projects and sub-tasks and came across a weird error everytime I tried to create a new project.
The bug:
With some basic investigation I found out what was happening, once you added the new column ParentProjectId to the code, our SQLite instance had a schema change that wasn't migrated, so my current ~/.local/share/clido/data.db contained the old version of that database.
Solution:
As a solution to this, I have two things in mind.
Create a versioning system to the DB and a migration system, so everytime we update the schema, we include that migration on the commit, and whenever a user executes any command on a new version, the tool runs that migration before executing the command itself, fixing any schema mismatches in the process.
Include a develop branch to place the code we're still testing until we cover some use cases, then we merge to main once we hit a new minor version, (or a patch if it's related to a bug)
Implementation
I think I can hack a simple versioning system to the DB and open a PR still today, see you later.
Hi!
I was testing the new code for sub-projects and sub-tasks and came across a weird error everytime I tried to create a new project.
The bug:
With some basic investigation I found out what was happening, once you added the new column
ParentProjectId
to the code, our SQLite instance had a schema change that wasn't migrated, so my current~/.local/share/clido/data.db
contained the old version of that database.Solution:
As a solution to this, I have two things in mind.
Create a versioning system to the DB and a migration system, so everytime we update the schema, we include that migration on the commit, and whenever a user executes any command on a new version, the tool runs that migration before executing the command itself, fixing any schema mismatches in the process.
Include a
develop
branch to place the code we're still testing until we cover some use cases, then we merge to main once we hit a new minor version, (or a patch if it's related to a bug)Implementation
I think I can hack a simple versioning system to the DB and open a PR still today, see you later.