[PR #3734] [MERGED] Add Size column to attachment #17063

Closed
opened 2025-11-02 12:25:26 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/3734
Author: @jonasfranz
Created: 3/28/2018
Status: Merged
Merged: 3/31/2018
Merged by: @appleboy

Base: masterHead: size-column


📝 Commits (7)

  • 7e5289b Add size column to attachment
  • 4477414 Calculate attachment size on creation
  • ed07c77 Merge branch 'master' into size-column
  • 8ff6dd1 Merge branch 'master' into size-column
  • db5a514 Merge branch 'master' into size-column
  • 01c23bf Log error instead of returning error
  • 5230a4b Merge branch 'master' into size-column

📊 Changes

4 files changed (+57 additions, -23 deletions)

View changed files

📝 models/attachment.go (+9 -22)
📝 models/migrations/migrations.go (+2 -0)
models/migrations/v61.go (+45 -0)
📝 templates/repo/release/list.tmpl (+1 -1)

📄 Description

This PR adds a size column to attachments to decrease the amount of unnecessary disk usage.
The migration calculates the file size of each existing attachment.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/3734 **Author:** [@jonasfranz](https://github.com/jonasfranz) **Created:** 3/28/2018 **Status:** ✅ Merged **Merged:** 3/31/2018 **Merged by:** [@appleboy](https://github.com/appleboy) **Base:** `master` ← **Head:** `size-column` --- ### 📝 Commits (7) - [`7e5289b`](https://github.com/go-gitea/gitea/commit/7e5289b55b122ad92b040c0b20fd853ac55321d4) Add size column to attachment - [`4477414`](https://github.com/go-gitea/gitea/commit/4477414daee40fa5f40f1419e3b4b7621788b3b4) Calculate attachment size on creation - [`ed07c77`](https://github.com/go-gitea/gitea/commit/ed07c776bf2b387cb699df3e204a3593699f494c) Merge branch 'master' into size-column - [`8ff6dd1`](https://github.com/go-gitea/gitea/commit/8ff6dd1cf8088f43073353836bc647b070973c2f) Merge branch 'master' into size-column - [`db5a514`](https://github.com/go-gitea/gitea/commit/db5a51409d9cb0379f81a1a09b305681935c74d6) Merge branch 'master' into size-column - [`01c23bf`](https://github.com/go-gitea/gitea/commit/01c23bf92cc54fe915186b5bdbb9bf6e0e710822) Log error instead of returning error - [`5230a4b`](https://github.com/go-gitea/gitea/commit/5230a4bff99a7bc5f508c2eff3927f4e533a97a7) Merge branch 'master' into size-column ### 📊 Changes **4 files changed** (+57 additions, -23 deletions) <details> <summary>View changed files</summary> 📝 `models/attachment.go` (+9 -22) 📝 `models/migrations/migrations.go` (+2 -0) ➕ `models/migrations/v61.go` (+45 -0) 📝 `templates/repo/release/list.tmpl` (+1 -1) </details> ### 📄 Description This PR adds a size column to attachments to decrease the amount of unnecessary disk usage. The migration calculates the file size of each existing attachment. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 12:25:26 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17063