-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
External versions: keep build log #7674
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
Comments
I think we want a DB record for all I don't think we want to keep |
What about the docs from external versions? Should we keep those around as well? |
Edit: Misunderstood I think we want to keep the docs around, but perhaps for some limited time? Eventually this will start costing us real money, so probably after 3-6 months we delete it? Maybe we keep Versions & Docs around for 3 months, and then delete them together. |
👍
👍 --maybe we want to make this configurable by project? like 0, 1, 3, 6 or 12 months? or even keep it for X months but allow the user to "force delete a particular external version"? If we delete the docs, all the GH status links will point to 404 pages. We will probably need to update those states to point back to the build when deleting the docs, I think. I think we should consider this from the UI as well. Currently, trying to find "the latest/stable version build" is not trivial if you have many open PRs. So, we will need a way to filter by (non-)external versions, cc @agjohnson |
We already hide PR builds in the UI, but I think we should expose them. Having filters should be enough to solve most of the issues here. I originally had a different build listings for PR's, but I think filters are more useful. |
Currently we are deleting external versions when they are closed, but their docs remain in storage. With this change we mark them as inactive instead. Later a task will delete all external versions that are inactive and their last activity was from 3 months ago. Before being deleted the status is updated to link to the build page instead (the build will be deleted currently, but I'm changing that in another PR). Ref #7674
Currently we are deleting external versions when they are closed, but their docs remain in storage. With this change we mark them as inactive instead. Later a task will delete all external versions that are inactive and their last activity was from 3 months ago. Before being deleted the status is updated to link to the build page instead (the build will be deleted currently, but I'm changing that in another PR). Ref #7674
We lose information when a version is deleted. Setting the version to null allow us to keep the builds around. But now we need to save more data to be able to reproduce some links. A data migration is needed to update old builds, but isn't required, as we fallback to the value from the version. Close #7674
Currently we are deleting external versions when they are closed, but their docs remain in storage. With this change we mark them as inactive instead. Later a task will delete all external versions that are inactive and their last activity was from 3 months ago. Before being deleted the status is updated to link to the build page instead (the build will be deleted currently, but I'm changing that in another PR). Ref #7674
Yeah, filters are already a part of the new theme on the build list page and version list page. I'd also like to make a special filter eventually which is latest/stable at the top of the queryset filter. I'll note to add a filter for pull request builds if there isn't already a filter on version/builds |
We lose information when a version is deleted. Setting the version to null allow us to keep the builds around. But now we need to save more data to be able to reproduce some links. A data migration is needed to update old builds, but isn't required, as we fallback to the value from the version. Close #7674
Currently, when a PR is closed/merged, we delete the version, and it deletes the build objects with it, but we do keep the files in storage. The problem with this is that it feels weird lo lose the information from the build after the PR is closed.
version_slug
andversion_name
(version.verbose_name). This is to allow us to link back to the PR (the view docs button wouldn't be available here, or we can save that as well).With the last sentence there is the additional question... Do we want to delete the docs too? Currently, we don't delete the docs, they are kept forever. Should we delete them after x days? This probably something we want to do in .com, as we shouldn't keep private docs around forever.
Some ideas:
The text was updated successfully, but these errors were encountered: