1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-30 08:27:32 -04:00
gitea/routers/api/v1/repo
Hugo Hoitink 5579345549
Update object repo with the migrated repository (#18684)
When migrating a repository (from GitHub) using the API (**POST** `repos/migrate`), the Code Indexer is not updated. Searching in the user interface will not return any results.

When migrating the same repository using **+/New Migration** in the web interface, the search index is updated and searching works as expected.

Caused by the fact that object `repo` is never updated with the migrated repo so `setting.Indexer.RepoIndexerEnabled && !repo.IsEmpty` in `modules/notification/indexer/indexer.go:NotifyMigrateRepository` always evaluates to `false`.

Tested with gitea:1.16.1, MariaDB:10, Breve in `Run Mode: Dev`.
2022-02-09 19:20:44 +00:00
..
blob.go Propagate context and ensure git commands run in request context (#17868) 2022-01-19 23:26:57 +00:00
branch.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
collaborators.go Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
commits.go Propagate context and ensure git commands run in request context (#17868) 2022-01-19 23:26:57 +00:00
file.go Propagate context and ensure git commands run in request context (#17868) 2022-01-19 23:26:57 +00:00
fork.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
git_hook.go Move macaron to chi (#14293) 2021-01-26 16:36:53 +01:00
git_ref.go Multiple Escaping Improvements (#17551) 2021-11-16 18:18:25 +00:00
hook_test.go Decouple unit test, remove intermediate unittestbridge package (#17662) 2021-11-16 16:53:21 +08:00
hook.go Move accessmode into models/perm (#17828) 2021-11-28 12:58:28 +01:00
issue_comment.go Fix PR comments UI (#18323) 2022-01-19 01:28:38 +08:00
issue_label.go Calculate label URL on API (#16186) 2021-09-10 18:03:16 +02:00
issue_reaction.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
issue_stopwatch.go Fix close issue but time watcher still running (#17643) 2021-11-21 17:11:48 +08:00
issue_subscription.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
issue_tracked_time.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
issue.go Automatically pause queue if index service is unavailable (#15066) 2022-01-27 10:30:51 +02:00
key.go Move keys to models/asymkey (#17917) 2021-12-10 16:14:24 +08:00
label.go Calculate label URL on API (#16186) 2021-09-10 18:03:16 +02:00
language.go Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
main_test.go Decouple unit test code from business code (#17623) 2021-11-12 22:36:47 +08:00
migrate.go Update object repo with the migrated repository (#18684) 2022-02-09 19:20:44 +00:00
milestone.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
mirror.go Move unit into models/unit/ (#17576) 2021-11-09 20:57:58 +01:00
notes.go Propagate context and ensure git commands run in request context (#17868) 2022-01-19 23:26:57 +00:00
pull_review.go Propagate context and ensure git commands run in request context (#17868) 2022-01-19 23:26:57 +00:00
pull.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
release_attachment.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
release_tags.go Propagate context and ensure git commands run in request context (#17868) 2022-01-19 23:26:57 +00:00
release.go Propagate context and ensure git commands run in request context (#17868) 2022-01-19 23:26:57 +00:00
repo_test.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
repo.go API: Return primary language and repository language stats API URL (#18396) 2022-01-25 08:33:40 +02:00
star.go Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
status.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
subscriber.go Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
tag.go Propagate context and ensure git commands run in request context (#17868) 2022-01-19 23:26:57 +00:00
teams.go Move repository model into models/repo (#17933) 2021-12-10 09:27:50 +08:00
topic.go Some repository refactors (#17950) 2021-12-12 23:48:20 +08:00
transfer.go Add API to manage repo tranfers (#17963) 2021-12-23 23:26:52 -05:00
tree.go Propagate context and ensure git commands run in request context (#17868) 2022-01-19 23:26:57 +00:00
wiki.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00