Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Some public repos have the owner name in front, others don't

JohnA September 6, 2013

We've noticed something weird at my job. In Stash, when looking at the public repository list, some users appear as:

Jane Doe / super-app

While others appear as just

super-app

Is this controlled by a setting of some kind? It's always the former in the case of a real project.

2 answers

0 votes
JohnA September 6, 2013

cadsagsdgasdgasdg

0 votes
cofarrell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 6, 2013

Hi John,

It should always appear as "Project / Repository" where project may be a user who has forked. From your example above I would guess that "Jane Doe" the user has forked super-app? Is there no project listed for 'super-app' in the second example.

There's certainly no configuration around the displaying of this information.

Cheers,

Charles

JohnA September 6, 2013

Ok, well I feel a little bit better. Yes, right now we have 11 people evaluating git/stash. Of the 11, all of the projects (there's only 2 projects) and 3 of the 11 developers show up like this. All others show up as just the repository name.

We're on Stash 2.6.3 if it helps.

cofarrell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 6, 2013

Hi John,

Looking at the code I don't see how that's possible. Sorry if this is a dumb question - we are just talking about the public repository page right? Certainly if you're looking at repositories in the project page you'll just see the name.

Can you look at the HTML of that page? It's easier if you use Chrome/Firefox, right-click and inspect element. I would except to see something like this for a single row:

<td>
  <span class="project-name">
    <span class="aui-avatar aui-avatar-small aui-avatar-project">
      <span class="aui-avatar-inner">
        <img src="/projects/TEST/avatar.png?s=48" alt="Test">
      </span>
    </span>
    <a href="/projects/TEST" title="Test">Test</a>
  </span>
  <span class="repository-name">
    <a href="/projects/TEST/repos/my-repo/browse">my-repo</a>
  </span>
</td>

What do you see for the row that is missing the project name? Is the project-name span there?

I feel like I'm missing something here. Let me know what you find.

Charles

JohnA September 6, 2013

Sure, I hope you don't mind the names have been changed to protect the innocent. Both of these are forks of the same repository, yet the generated HTML is very different.

One thought I had, we're using Crowd for authentication.

<!-- wrong html -->
<tr><td><span class="repository-name"><span class="aui-icon aui-icon-small aui-iconfont-devtools-repository-forked" title="This repository is a fork of MainProject/super-app">Fork</span><a href="/users/ba.baracus/repos/super-app/browse">super-app</a></span></td></tr>

<!-- right html -->
<tr><td><span class="project-name"><span class="aui-avatar aui-avatar-small"><span class="aui-avatar-inner"><img src="http://www.gravatar.com/avatar/gravatar.jpg?s=48&d=mm" alt="Hannibal Lecter"></span></span><a href="/users/hannibal.lecter" title="Hannibal Lecter">Hannibal Lecter</a></span><span class="repository-name"><a href="/users/hannibal.lecter/repos/super-app/browse">super-app</a></span></td></tr>

cofarrell
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 6, 2013

Hi John,

So you've found a bug I'm afraid (and it looks like I broke it fixing something else). :(

It looks like any repositories that are lazily loaded (ie after the 25th one) will be missing the project.

https://jira.atlassian.com/browse/STASH-3838

I've already fixed the issue, but I couldn't say whether it will be available in a bugfix release for 2.7 or 2.8. Please watch that issue for more updates.

Apologoes for any inconvenience.

Charles

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events