[PR #4886] [MERGED] Make gitea serv use api/internal #17535

Closed
opened 2025-11-02 13:55:21 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4886
Author: @sapk
Created: 9/6/2018
Status: Merged
Merged: 10/30/2018
Merged by: @lunny

Base: masterHead: serv-use-internals


📝 Commits (10+)

  • 7e019b1 Start to move to internal/private
  • fe79ba3 Add GetPublicKeyByID
  • 806eb9c Add HasDeployKey
  • 0fda010 Add private.UpdateDeployKeyUpdated
  • 363d806 Add private.GetUserByKeyID
  • f7093b4 Add private.AccessLevel
  • 0249192 Add private.CheckUnitUser
  • 4c81d3e Fix mistakes I made
  • 899499c Some cleaning + moving code to separate files
  • f8f07de Fix error handling

📊 Changes

6 files changed (+331 additions, -51 deletions)

View changed files

📝 cmd/serv.go (+21 -34)
📝 modules/private/branch.go (+1 -1)
📝 modules/private/internal.go (+56 -11)
modules/private/key.go (+116 -0)
📝 routers/private/internal.go (+53 -5)
routers/private/key.go (+84 -0)

📄 Description

In order to limit concurrent access to database (mostly for SQLite)

Related: #4848 #2040


🔄 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/4886 **Author:** [@sapk](https://github.com/sapk) **Created:** 9/6/2018 **Status:** ✅ Merged **Merged:** 10/30/2018 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `serv-use-internals` --- ### 📝 Commits (10+) - [`7e019b1`](https://github.com/go-gitea/gitea/commit/7e019b1705132e7e2c1947d7489c7a5279c6bb2c) Start to move to internal/private - [`fe79ba3`](https://github.com/go-gitea/gitea/commit/fe79ba339ca26d429890970f982a921b05f4b96f) Add GetPublicKeyByID - [`806eb9c`](https://github.com/go-gitea/gitea/commit/806eb9c39c10408d52c0f20be9a007ba833400a7) Add HasDeployKey - [`0fda010`](https://github.com/go-gitea/gitea/commit/0fda01019d63f40a61949cb4d605491645c48283) Add private.UpdateDeployKeyUpdated - [`363d806`](https://github.com/go-gitea/gitea/commit/363d806ebae69c0068748da280bc8f4c0007a97a) Add private.GetUserByKeyID - [`f7093b4`](https://github.com/go-gitea/gitea/commit/f7093b4e24e9b471566c6a690c61d06998200fcf) Add private.AccessLevel - [`0249192`](https://github.com/go-gitea/gitea/commit/0249192131f2422603a98ea9a11cfa6ad868934f) Add private.CheckUnitUser - [`4c81d3e`](https://github.com/go-gitea/gitea/commit/4c81d3ed36846cccfa86b671bdbcda56d58ee3ed) Fix mistakes I made - [`899499c`](https://github.com/go-gitea/gitea/commit/899499cb59e6b9f01e1a6807f1c08eedce8ef6a7) Some cleaning + moving code to separate files - [`f8f07de`](https://github.com/go-gitea/gitea/commit/f8f07de88009632135cf08d4b044208b69797600) Fix error handling ### 📊 Changes **6 files changed** (+331 additions, -51 deletions) <details> <summary>View changed files</summary> 📝 `cmd/serv.go` (+21 -34) 📝 `modules/private/branch.go` (+1 -1) 📝 `modules/private/internal.go` (+56 -11) ➕ `modules/private/key.go` (+116 -0) 📝 `routers/private/internal.go` (+53 -5) ➕ `routers/private/key.go` (+84 -0) </details> ### 📄 Description In order to limit concurrent access to database (mostly for SQLite) Related: #4848 #2040 --- <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 13:55:21 -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#17535