-
Notifications
You must be signed in to change notification settings - Fork 753
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
Read only config file doesn't dictate projects list in webapp #3414
Comments
By definition every immediate subdirectory under source root is a project. So, you cannot really say Also, it depends on how you run the indexer. If it performs project detection and repository scan it may override the read-only configuration. The cure for that is to use the per project workflow - basically populate the project/repository list initially and then add/remove individual projects. For such use case it might be overkill, though. |
Well, my next task is actually to circumvent project detection and repository scan (the idea is to speed up the indexing so we could switch History back on. It's currently off to aid performance), so, assuming Overkill is my middle name... how do I go about doing populating the project/repository list and then managing it, like you said? |
Building the list of projects is usually fast (assuming you don't have huge list of projects) as it is essentially just a source root directory listing. It is not really possible to turn off the project "scan" because the -P indexer option has 2 meanings:
It should be possible to set the Scanning for the repositories inside projects is not so cheap as it usually involves running bunch of external commands (such as Note that this is not something where the OpenGrok Docker image is no longer helpful. That said, I have a set of changes to convert the mirroring/indexing in the Docker image to use the |
Back to the original problem description: if a set of projects is set (sic!) via the read-only configuration (which has the |
Suppose I create symbolic links to the subfolders in the root folder so that, like you suggested... and then add folder2 to the ignored list? Would the indexer still index the projects represented by the symbolic links, or will it ignore them, too? |
Any symlinks directly under source root will be automatically accepted and followed, even if they point to directories outside of source root. |
Cool. So I don't need the read-only config file for that. I'll do that. Before I close this, though, one last question about project and repo discovery: Like I said, I had the -S switched off to improve performance, because, like you said, it ain't cheap. I tried to circumvent it by specifying
But no matter what I do, I get
And, consequently... I don't have a history for ANYTHING. |
Read the reply in my previous ticket. Thank you and sorry. closing. |
I have two folders currently being shown as projects by the webapp - Folder1 and Folder2.
I want to get to a point where I still have Folder1 as a project, but Folder2 is replaced by Folder2's subfolders, so I would have Folder1, Subfolder1, and Subfolder2 as projects.
I created this read-only config file as a PoC, to see if I could get any of the subfolders to register as a project:
I added the -R flag to the indexer script and triggered it and from the looks of the console output, it used the file, but... when I went to the webapp, after the indexing was done, I still saw Folder1 and Folder2 as the projects, and not what I set up at all.
I'm running docker image 1.3.11
Please advise. Is this a bug or am I really off, here?
The text was updated successfully, but these errors were encountered: