[PR #570] [CLOSED] Improve the performance of tree listing #15460

Closed
opened 2025-11-02 11:47:01 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/570
Author: @typeless
Created: 1/3/2017
Status: Closed

Base: masterHead: limit-commit-log


📝 Commits (8)

  • 79cfbe8 Preliminary implementation
  • 0088b59 Do not redundantly sort the tree entries
  • 791d3e4 Use ctx.QueryInt("start") and ctx.QueryInt("count")
  • 1fe0d48 Check invalid query values
  • 702565e Should check if the values are not provided (start=0 count=0)
  • 0c6d9ce Revert the change of removing entries sorting
  • f155fc1 Remove redundant empty lines
  • 7594d24 Reduce the condition formula of input validation

📊 Changes

1 file changed (+13 additions, -2 deletions)

View changed files

📝 routers/repo/view.go (+13 -2)

📄 Description

Add two query strings start and count for the home page of repository. If the values are omitted or invalid they are set to 0 and the total number of rows respectively.

For #502


🔄 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/570 **Author:** [@typeless](https://github.com/typeless) **Created:** 1/3/2017 **Status:** ❌ Closed **Base:** `master` ← **Head:** `limit-commit-log` --- ### 📝 Commits (8) - [`79cfbe8`](https://github.com/go-gitea/gitea/commit/79cfbe832062d1584a6e6283bd90be7ffb8da8b5) Preliminary implementation - [`0088b59`](https://github.com/go-gitea/gitea/commit/0088b5965d31be6ffe2d4506a59065230ef71553) Do not redundantly sort the tree entries - [`791d3e4`](https://github.com/go-gitea/gitea/commit/791d3e43bf2b8957e2e08e6d920f531d7cb86bf8) Use ctx.QueryInt("start") and ctx.QueryInt("count") - [`1fe0d48`](https://github.com/go-gitea/gitea/commit/1fe0d48ca2547249f4cc96835f5b97d4e7671abd) Check invalid query values - [`702565e`](https://github.com/go-gitea/gitea/commit/702565ebddd71a95fcc8289c2805d2d322c598dc) Should check if the values are not provided (start=0 count=0) - [`0c6d9ce`](https://github.com/go-gitea/gitea/commit/0c6d9ce39252c8ccde542a430ccf0f53be917c38) Revert the change of removing entries sorting - [`f155fc1`](https://github.com/go-gitea/gitea/commit/f155fc1eef075824e3b9efe37c1316f9d005f8d9) Remove redundant empty lines - [`7594d24`](https://github.com/go-gitea/gitea/commit/7594d2436f516a1b1f2a3b6ad3ace741fa38966d) Reduce the condition formula of input validation ### 📊 Changes **1 file changed** (+13 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `routers/repo/view.go` (+13 -2) </details> ### 📄 Description Add two query strings `start` and `count` for the home page of repository. If the values are omitted or invalid they are set to 0 and the total number of rows respectively. For #502 --- <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 11:47:01 -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#15460