davideuler / gitblit

Automatically exported from code.google.com/p/gitblit
Apache License 2.0
0 stars 0 forks source link

Listing other personal repositories - Related to Issue #419 #513

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Login as admin and try to see repositories list for other people.
2. Your own repositories are listed properly under 
http://{host/blit}/user/{myusername}
3. But.. if I try other username.. via http://host/blit/user/{otheruser} I see 
empty repo list.

What is the expected output? What do you see instead?
As a admin, I would like to quickly navigate to other user's repositories to 
troubleshoot their issues.

What version of the product are you using? On what operating system?
1.6.0 (Servlet container version on tomcat)

Please provide any additional information below.
I think this new behavior was imparted as fix for #419. But search-ability for 
admins was quite usable earlier.. Is there any other workaround to search?

Original issue reported on code.google.com by dhara...@gmail.com on 8 Oct 2014 at 9:44

GoogleCodeExporter commented 9 years ago
I can not reproduce the behavior you describe.  When I login as an admin I can 
browse to each user's profile page and see all their personal repositories.

Original comment by James.Mo...@gmail.com on 10 Oct 2014 at 12:59

GoogleCodeExporter commented 9 years ago
Hmm.. may be this all is related to that Tomcat bug which you have fixed as 
part of 1.6.1

I will try to deploy 1.6.0 version on some non-tomcat and check this. 

Any idea when you will be releasing 1.6.1?

Original comment by dhara...@gmail.com on 10 Oct 2014 at 5:43

GoogleCodeExporter commented 9 years ago
How about firing up Gitblit GO and pointing it at your baseFolder?

1.6.1 is waiting for the JGit team to release a bugfix for the current release. 
Should be next week.

Original comment by James.Mo...@gmail.com on 10 Oct 2014 at 6:12

GoogleCodeExporter commented 9 years ago
Hi James - I think this is a non-issue.

I was not finding any way to see the repositories of the user.. (from users 
page). So I constructed the URL myself and hit the url directly.

http://punitp121866d.ad.infosys.com/blit/user/<userid>

This does not get the repositories listed. But if I hit the user name on 
repositories page.. it shows the same url as above but shows repositories.. Not 
sure what is a difference in these two operations..

Original comment by dhara...@gmail.com on 16 Oct 2014 at 10:41

GoogleCodeExporter commented 9 years ago
Admins can browse other users' repos but only by manually modifying the URL. 
Currently the easiest way is to go to my own profile page and then change the 
username in the URL bar to the appropriate user.

I see 2 ways to improve this. The first one is simpler but limited, too. When 
the admin goes to the /users page it lists all the users. Now the problem is 
that user name, display name, email address and edit all redirect to the edit 
page so there's no way to open the user page. A quickfix is to make the 3 
attributes open the user page and leave edit as the only one to actually edit 
the user. This is a decent solution but it only helps the admins.

A more complicated (=more work involved) but better approach imho is that if 
web.includePersonalRepositories == false, have 2 pages on the /repositories 
page. This can be achieved either by making the "repositories" button a 
dropdown like "filters" or by having 2 tabs right under the main menu after 
rendering the repos page. The 1st (default) option is "Main Repositories" and 
the other one is "User Repositories". Or something like that. Come to think of 
it, the "web.includePersonalRepositories" setting might as well be eliminated 
once this gets implemented. Or transformed into 
"web.separatePersonalRepositoriesPage" for the option-freaks: show 2 
pages/tabs/whatever if true, show a single page with all repos at once if false.

Watcha think?

Original comment by sundayfu...@outlook.com on 24 Oct 2014 at 2:22

GoogleCodeExporter commented 9 years ago
Actually, I have an alternate suggestion.

1. Change the Users page links as you recommend
2. Allow non-admins access to the Users page but without admin links - this 
would be similar to how the repositories page worked a few iterations ago.

That solves the immediate problem of user profile navigation.  The first half 
of your second suggestion is interesting and a possibility too.  But if you 
want personal repos on the repos page then enable the setting.

Original comment by James.Mo...@gmail.com on 24 Oct 2014 at 11:58

GoogleCodeExporter commented 9 years ago

Original comment by James.Mo...@gmail.com on 24 Oct 2014 at 12:04

GoogleCodeExporter commented 9 years ago
I agree, that's a clever and quick way to do it, thanks :)

Original comment by sundayfu...@outlook.com on 24 Oct 2014 at 12:34