-
Notifications
You must be signed in to change notification settings - Fork 10
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
a workflow to remove a repository after ingestion? #15
Comments
The Lines 204 to 233 in 43f3d48
I intended to re-run Line 217 in 43f3d48
Anyway, the bottom line is that manually editing I like the idea of having CLI for common database editing (like removing a repo, or maybe a date range). Let's keep this issue open for |
It has happened to me several times now that I ingest a large set of repositories, I look at the data, and I notice oddities caused by a repository that should not have been there in the first place.
Is there a workflow to remove a repository from the database, and rerun the plotting?
Currently I don't know of such a workflow, so I manually remove the repository, delete the database, and restart ingestion from scratch. This is ok, but it can be annoying when ingestion is slow (several minutes on large repository sets).
I thought about running
sqlite
on the database and doing aDELETE
operation on all raw_commits coming from this directory. However, if I understand correctly, the plotting data comes from theauthors
table that I would need to update with new aggregates, and I don't know how to do it easily.Assuming this does not currently exist, my proposal would be to have a command
fornalder reanalyze foo.db
that would drop the currentauthors
table and recompute it from theraw_commits
table as it currently exists.(Another option of course would be to have a
fornalder repo-remove foo.db repo.git
command that removes a repository from a table, instead of adding it asfornalder ingest foo.db repo.git
does. But that sounds like more work.)The text was updated successfully, but these errors were encountered: