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
every month we move some of the draft documents or agenda and replace them with finalized documents.
This leaves garbage with documents left in the repo with nothing pointing to them. we need garbage collection!
In a perfect world, we would do it at time of modification (if document removed and nothing else references it, remove it from git). BUT having looked at the logic and flow, this is probably better served by having a cron job that runs monthly which:
scans all the meetings/*.json
create a list of all referenced files
scan docs/**
git rm any docs which aren't referenced and then git commit -m 'removing unreferenced docs
and if we want to get super fancy, we may need/want to --prune the git repo. Honestly, that is dangerous to code... if we need to --prune we should move at least documents to git lfs
The text was updated successfully, but these errors were encountered:
this is v3; so lets punt... its more just something to think about. THOUGH after chatting with some folks, I may want to keep the agenda up as well as the final meeting minutes as they aren't always the same.
did a manual 'eyeball' scan after a year of running. There are just a handful (3-6) that are orphaned. I would say this should be done BUT it can wait. removing from milestone v3
every month we move some of the draft documents or agenda and replace them with finalized documents.
This leaves garbage with documents left in the repo with nothing pointing to them. we need garbage collection!
In a perfect world, we would do it at time of modification (if document removed and nothing else references it, remove it from git). BUT having looked at the logic and flow, this is probably better served by having a cron job that runs monthly which:
meetings/*.json
docs/**
git rm
any docs which aren't referenced and thengit commit -m 'removing unreferenced docs
and if we want to get super fancy, we may need/want to
--prune
the git repo. Honestly, that is dangerous to code... if we need to--prune
we should move at least documents togit lfs
The text was updated successfully, but these errors were encountered: