-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Split lfs size from repository size #22900
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
Merged
silverwind
merged 41 commits into
go-gitea:main
from
a1012112796:zzc/dev/split_lfs_size
Jun 28, 2023
Merged
Changes from 32 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
b149388
split lfs size from repository size
a1012112796 63fe364
fix lint
a1012112796 3df76e7
apply suggestions from code review
a1012112796 997ce53
adapt return type in `Add` helper function
a1012112796 292922d
Apply suggestions from code review
a1012112796 1dfd604
Merge branch 'main' into zzc/dev/split_lfs_size
a1012112796 a5fb15e
fix lint
a1012112796 ede9146
Merge branch 'main' into zzc/dev/split_lfs_size
a1012112796 0c047b3
use repo size detail
a1012112796 65b7183
revert changs about add
a1012112796 fb47f0c
rename
a1012112796 3226830
Merge branch 'main' into zzc/dev/split_lfs_size
a1012112796 07c2b97
Merge branch 'main' into zzc/dev/split_lfs_size
a1012112796 d747c1c
change data struct
a1012112796 383ef59
fix nit
a1012112796 84236f2
Merge branch 'main' into zzc/dev/split_lfs_size
a1012112796 8123c6d
Merge branch 'main' into zzc/dev/split_lfs_size
a1012112796 17b30a5
Merge remote-tracking branch 'upstream/main' into zzc/dev/split_lfs_s…
DmitryFrolovTri 0564958
fix ui
a1012112796 291e1cd
Merge branch 'main' into zzc/dev/split_lfs_size
a1012112796 9fd948a
Merge remote-tracking branch 'upstreamlfssize/zzc/dev/split_lfs_size'…
DmitryFrolovTri f1ede76
Moved tool tip to the center of the number in the repo settings screen
DmitryFrolovTri 52f7d08
Added function to return struct of sizes
DmitryFrolovTri 7b46b63
added constants to represent text names
DmitryFrolovTri ad93fee
Merge pull request #8 from DmitryFrolovTri/zzc/dev/split_lfs_size_jun…
a1012112796 c5cf758
split the size in the administrative section repository list
DmitryFrolovTri d9e2d44
Merge pull request #9 from DmitryFrolovTri/zzc/dev/split_lfs_size_jun…
a1012112796 753fd1b
Merge remote-tracking branch 'origin/main' into zzc/dev/split_lfs_size
a1012112796 34bbe1e
fix sort
a1012112796 8e64230
Merge branch 'main' into zzc/dev/split_lfs_size
a1012112796 8266317
rename
a1012112796 8f3be38
Apply suggestions from code review
a1012112796 0366eff
Merge remote-tracking branch 'origin/main' into zzc/dev/split_lfs_size
a1012112796 844af9a
update migration
a1012112796 53c7e2e
Merge branch 'main' into zzc/dev/split_lfs_size
a1012112796 651dbfd
Merge branch 'main' into zzc/dev/split_lfs_size
a1012112796 2cc9bf3
Merge remote-tracking branch 'upstream/main' into zzc/dev/split_lfs_s…
DmitryFrolovTri 1a63a59
Merge pull request #12 from DmitryFrolovTri/zzc/dev/split_lfs_size_ju…
a1012112796 f077e0a
Merge branch 'main' into zzc/dev/split_lfs_size
GiteaBot 8659688
Merge branch 'main' into zzc/dev/split_lfs_size
GiteaBot 4d51de1
Merge branch 'main' into zzc/dev/split_lfs_size
GiteaBot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
// Copyright 2023 The Gitea Authors. All rights reserved. | ||
// SPDX-License-Identifier: MIT | ||
|
||
package v1_21 //nolint | ||
|
||
import ( | ||
"xorm.io/xorm" | ||
) | ||
|
||
// AddGitSizeAndLFSSizeToRepositoryTable: add GitSize and LFSSize columns to Repository | ||
func AddGitSizeAndLFSSizeToRepositoryTable(x *xorm.Engine) error { | ||
type Repository struct { | ||
GitSize int64 `xorm:"NOT NULL DEFAULT 0"` | ||
LFSSize int64 `xorm:"NOT NULL DEFAULT 0"` | ||
} | ||
|
||
return x.Sync2(new(Repository)) | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.