Skip to content
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

packaging: deletion window machinery #16813

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Commits on Sep 30, 2024

  1. packaging: deletion window machinery

    This adds `in_deletion_window` to the File, Release, and Project
    models. The three models currently compose in deletion semantics
    as follows:
    
    1. A file is deletable iff it was uploaded within the last 7 days
    2. A release is deletable iff all of its files are deletable
    3. A project is deletable iff all of its releases are deletable
    
    This results in no special casing: the deletability of
    releases and projects is entirely "driven" by the deletability
    of files, as files are the primary way in which users drive the
    creation of releases and projects.
    
    This PR does **not** connect the deletion semantics to actual
    UI or view changes; I'll do that in a follow-up, to keep the
    patches small.
    
    Signed-off-by: William Woodruff <william@trailofbits.com>
    woodruffw committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    af0165e View commit details
    Browse the repository at this point in the history

Commits on Oct 31, 2024

  1. Configuration menu
    Copy the full SHA
    ae89c22 View commit details
    Browse the repository at this point in the history
  2. change deletion window to <72 hours since upload

    Signed-off-by: Facundo Tuesca <facundo.tuesca@trailofbits.com>
    facutuesca committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    9d04bd9 View commit details
    Browse the repository at this point in the history
  3. pre-releases should always be deletable

    Signed-off-by: Facundo Tuesca <facundo.tuesca@trailofbits.com>
    facutuesca committed Oct 31, 2024
    Configuration menu
    Copy the full SHA
    4f1d51f View commit details
    Browse the repository at this point in the history