Frontend was still passing the project's URL to the backend even though
the backend had been refactored to use the project's ID. This is fixed.
Deleting the repo's files should also work now, but I do think I want to
support tracking multiple instances of the same project. This means
we'll need to check for other instances relying on the repo before
deleting it.
We need end-to-end tests 😩😩😩
- Redo schema to improve handling of lightweight tags
- Try to clean up empty directories when untracking a project
To resolve schema conflict, run `sqlite3 willow.sqlite` and paste the
following:
ALTER TABLE releases RENAME TO releases_bak;
CREATE TABLE releases
(
id TEXT NOT NULL PRIMARY KEY,
project_url TEXT NOT NULL,
release_url TEXT NOT NULL,
tag TEXT NOT NULL,
content TEXT NOT NULL,
date TIMESTAMP NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);
If everything works as expected, you can `DROP TABLE releases_bak`.