-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
conditions that code cannot be searched #26723
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Fix #26723 Add `ChangeDefaultBranch` to the `notifier` interface and implement it in `indexerNotifier`. So when changing the default branch, `indexerNotifier` sends a message to the `indexer queue` to update the index. --------- Co-authored-by: techknowlogick <[email protected]>
There are 3 conditions that code cannot be searched.
From the title of that pr, I guess pull/27018 only fix the third.
There are still two conditions that code cannot be searched.
|
Currently, we can't search on the non-default branch. |
We close issues that need feedback from the author if there were no new comments for a month. 🍵 |
Description
BUG
cannot search code
or when code is within non-newest commit
or when code is within non-default branch
or when code is within non-default branch X, but now X is default branch
reproduce
copy paste indexer config from docs
echo '"HELLO"' > reproduce.js
, commitecho '"WORLD"' > reproduce.js
, commitpush to non-default branch
test
stop gitea, rm
indexers/repos.bleve
, start giteaensure default branch is
main
search
HELLO
, got nothing, which is unexpectedlysearch
WORLD
, got nothing, which is unexpectedlyupdate default branch from
main
totest
search
HELLO
, got nothing, which is unexpectedlysearch
WORLD
, got nothing, which is unexpectedlystop gitea, rm
indexers/repos.bleve
, start giteasearch
HELLO
, got nothing, which is unexpectedlysearch
WORLD
, got matchupdate default branch from
test
tomain
stop gitea, rm
indexers/repos.bleve
, start giteaGitea Version
1.20.3
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
docker image
docker.io/gitea/gitea:1.20.3
Database
None
The text was updated successfully, but these errors were encountered: