[PR #2468] [CLOSED] Test repo search implementation #16416

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

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/2468
Author: @Morlinest
Created: 9/5/2017
Status: Closed

Base: masterHead: test-repo-search-implementation


📝 Commits (10+)

  • c7b650a Add more repo search tests
  • f8de1aa Add and fix /api/repo/search integration tests
  • 9605731 Add owner to access table for organization repositories
  • 9961720 Fix repo search tests
  • 10791c3 Always test returned repos length
  • b9d56db Add test with lower pagesize limit (test more pages)
  • 0073bb7 Add and fix /api/repo/search integration tests
  • 2403852 Fix/rewrite searchRepositoryByName function
  • 57c365a Remove authorization decisions making
  • 32a21ac Fix search of starred repositories

📊 Changes

14 files changed (+671 additions, -200 deletions)

View changed files

📝 integrations/api_repo_test.go (+219 -9)
📝 models/fixtures/access.yml (+24 -0)
📝 models/fixtures/org_user.yml (+8 -0)
📝 models/fixtures/repository.yml (+97 -0)
📝 models/fixtures/team.yml (+9 -0)
📝 models/fixtures/team_repo.yml (+12 -0)
📝 models/fixtures/team_user.yml (+6 -0)
📝 models/fixtures/user.yml (+47 -0)
📝 models/org_test.go (+1 -1)
📝 models/repo_list.go (+81 -110)
📝 models/repo_list_test.go (+120 -8)
📝 routers/api/v1/repo/repo.go (+16 -22)
📝 routers/home.go (+21 -40)
📝 routers/user/profile.go (+10 -10)

📄 Description

Not for merge!

Test that new tests in #2453 work with #2371 and vice versa, #2371 fixes issues discovered by #2453.


🔄 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/2468 **Author:** [@Morlinest](https://github.com/Morlinest) **Created:** 9/5/2017 **Status:** ❌ Closed **Base:** `master` ← **Head:** `test-repo-search-implementation` --- ### 📝 Commits (10+) - [`c7b650a`](https://github.com/go-gitea/gitea/commit/c7b650a47d49e280541bbc63a3efe0f6f120b403) Add more repo search tests - [`f8de1aa`](https://github.com/go-gitea/gitea/commit/f8de1aa59a259268bf652e9dded4acf0752c87bb) Add and fix /api/repo/search integration tests - [`9605731`](https://github.com/go-gitea/gitea/commit/9605731c4dc885a794175497b86f41bfd2076dab) Add owner to access table for organization repositories - [`9961720`](https://github.com/go-gitea/gitea/commit/99617206061c5be94f9affdf05d806178254c229) Fix repo search tests - [`10791c3`](https://github.com/go-gitea/gitea/commit/10791c337574bcfc33c5c8b810bd6b12c9113a31) Always test returned repos length - [`b9d56db`](https://github.com/go-gitea/gitea/commit/b9d56dba42a20bfd6b90bb9f06230e266304cf22) Add test with lower pagesize limit (test more pages) - [`0073bb7`](https://github.com/go-gitea/gitea/commit/0073bb7413da05d7d18d8b8af3b9c78aefd81861) Add and fix /api/repo/search integration tests - [`2403852`](https://github.com/go-gitea/gitea/commit/2403852085de5849844a231c51a97e4122d11293) Fix/rewrite searchRepositoryByName function - [`57c365a`](https://github.com/go-gitea/gitea/commit/57c365ac11665b70aba04324afa1f2073c3ea114) Remove authorization decisions making - [`32a21ac`](https://github.com/go-gitea/gitea/commit/32a21ac2a2f812d8974cab180cbf604a0e3b02f2) Fix search of starred repositories ### 📊 Changes **14 files changed** (+671 additions, -200 deletions) <details> <summary>View changed files</summary> 📝 `integrations/api_repo_test.go` (+219 -9) 📝 `models/fixtures/access.yml` (+24 -0) 📝 `models/fixtures/org_user.yml` (+8 -0) 📝 `models/fixtures/repository.yml` (+97 -0) 📝 `models/fixtures/team.yml` (+9 -0) 📝 `models/fixtures/team_repo.yml` (+12 -0) 📝 `models/fixtures/team_user.yml` (+6 -0) 📝 `models/fixtures/user.yml` (+47 -0) 📝 `models/org_test.go` (+1 -1) 📝 `models/repo_list.go` (+81 -110) 📝 `models/repo_list_test.go` (+120 -8) 📝 `routers/api/v1/repo/repo.go` (+16 -22) 📝 `routers/home.go` (+21 -40) 📝 `routers/user/profile.go` (+10 -10) </details> ### 📄 Description Not for merge! Test that new tests in #2453 work with #2371 and vice versa, #2371 fixes issues discovered by #2453. --- <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:10:07 -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#16416