-
Notifications
You must be signed in to change notification settings - Fork 747
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
Opengrok projects indentation with subfolder and history links are missing #2925
Comments
Any recommendations? |
Hi Community members and contributors, |
The indentation/subdirectory listing only happens if project has any sub-repositories (also notice that sub-repository handling changed in 1.3.3 that just came out). You can check repositories of a project by querying the RESTful API API like so: $ curl --silent http://localhost:8080/source/api/v1/projects/testrepo/repositories | jq
[
"/testrepo",
"/testrepo/subdir/subrepo"
] I think #2884 is what you are after. Alternatively, you can play around with decreasing |
As for the history links, this sounds like a distinct problem. Which links do you mean specifically ? |
The sub-repository xref link is a bug, will be fixed via #2952. |
Thanks a lot for the making the fix available. I am going to try it today. I will be posting the outcome soon. |
Hello Sir, Fixed: Still need to address: . (Attaching screenshots for Expectations and results. Thanks! |
In this case this is History link in directory listing so it does not matter whether history cache is actually generated. The History link is displayed only if both are true:
To find the former, use the API again:
This should return To see if a project has a repository, use the API again like above in comment #2925 (comment) and then use the API to get information about the repository, for example:
In your case the global history is enabled (otherwise the web app would not even display the "History" string) it just established that the resource file does not have any history. That means either there is no repository for the project (and that could be result of too stringent opengrok/opengrok-indexer/src/main/java/org/opengrok/indexer/history/HistoryGuru.java Lines 312 to 325 in 81c77aa
Currently there is no way how to get repository info via API, filed #2960. Also, see both indexer and web app log files if there is anything related there. Lastly, the history can be disabled on per project level however I don't think this is relevant in this case. Anyhow, you can determine that using the API, e.g.:
|
Respected OpenGrok Contributors and Community Members,
I am using below version:
GIT:2.19
Opengrok:1.2.23
Expectation:
Error:
ProjA and subfolder1 doesn't have .git but subfolder does have .git
ProjB has .git
ProjC doesn't have .git initialized
1.With below indexing command, I am getting indentation for subfolders which is odd. This issue was fixed in #2672 but it is still there for our instance.
2.The xref description for ProjA/subfolder1/subfolder2 is navigating to ProjA instead of navigating it to subfolder2
3.Proj C has many subfolder. If this is the new way of display then why other folders aren't in the view.
Indexing Command:
With below indexing command we can only get the parent folders but the historycache isn't getting generated:
If I add '-S' option then history cache will be generated but the links won't appear.
Could you please guide us to the right combination of indexing options so that we can only get parent projects on the main page and all the history is available with enabled links?
I'd appreciate you help, Sir.
The text was updated successfully, but these errors were encountered: