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

Provide a way to remove old commits #619

Closed
wants to merge 13 commits into from
Closed

Commits on Jul 16, 2021

  1. Provide a way to remove old commits

    Motivation:
    Central Dogma uses jGit to store data. Due to the nature of Git that stores unlimited history,
    Central Dogma will eventually get in trouble managing disk usage.
    We can handle this by maintaing the primary and secondary Git repository internally.
    This works in this way:
    1 Commits are pushed to the primary Git repository.
    2 If the number of commits exceed the threshold (`minRetentionCommits`), then the secondary Git repository is created.
    3 Commits are pushed to the both primary and secondary Git repositories.
    4 If the secondary Git repository has the number of commits more than the threshold;
      - The secondary Git repository is promoted to the primary Git repository.
      - The primary Git repository is removed completely.
      - Another secondary Git repository is created.
    5 Back to 3.
    
    Modifications:
    - TBD
    
    Result:
    - Close 575
    - TBD
    
    Todo:
    - Provide a way to set `minRetentionCommits` and `minRetentionDay` for each repository.
    - Support mirroring from CD to external Git.
    minwoox committed Jul 16, 2021
    Configuration menu
    Copy the full SHA
    b38014d View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2021

  1. WIP

    minwoox committed Sep 10, 2021
    Configuration menu
    Copy the full SHA
    9d5e250 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2021

  1. Add tests

    minwoox committed Sep 13, 2021
    Configuration menu
    Copy the full SHA
    c0bafb3 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2021

  1. Fix test

    minwoox committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    2f8e107 View commit details
    Browse the repository at this point in the history
  2. Close repo in test

    minwoox committed Sep 14, 2021
    Configuration menu
    Copy the full SHA
    96fd44c View commit details
    Browse the repository at this point in the history

Commits on Sep 24, 2021

  1. Address comments by @ikhoon

    minwoox committed Sep 24, 2021
    Configuration menu
    Copy the full SHA
    e0a78f8 View commit details
    Browse the repository at this point in the history

Commits on Dec 23, 2021

  1. Configuration menu
    Copy the full SHA
    d241167 View commit details
    Browse the repository at this point in the history

Commits on Dec 31, 2021

  1. WIP

    minwoox committed Dec 31, 2021
    Configuration menu
    Copy the full SHA
    1c5185a View commit details
    Browse the repository at this point in the history

Commits on Jan 3, 2022

  1. Configuration menu
    Copy the full SHA
    7b21b1a View commit details
    Browse the repository at this point in the history

Commits on Jan 4, 2022

  1. Fix NonNullByDefault

    minwoox committed Jan 4, 2022
    Configuration menu
    Copy the full SHA
    958e7a9 View commit details
    Browse the repository at this point in the history

Commits on Feb 21, 2022

  1. WIP

    minwoox committed Feb 21, 2022
    Configuration menu
    Copy the full SHA
    cd622e4 View commit details
    Browse the repository at this point in the history

Commits on Feb 23, 2022

  1. Configuration menu
    Copy the full SHA
    9fef35d View commit details
    Browse the repository at this point in the history
  2. Remove unused import

    minwoox committed Feb 23, 2022
    Configuration menu
    Copy the full SHA
    a40a22d View commit details
    Browse the repository at this point in the history