Skip to content

Show both owner login and repo name in list - #5160

Closed
RaeesBhatti wants to merge 3 commits into
desktop:masterfrom
RaeesBhatti:raees/ownerLoginAndRepoName
Closed

RaeesBhatti wants to merge 3 commits into
desktop:masterfrom
RaeesBhatti:raees/ownerLoginAndRepoName

Conversation

@RaeesBhatti

@RaeesBhatti RaeesBhatti commented Jul 14, 2018 •

Copy link
Copy Markdown

Related issue: #1533

@shiftkey shiftkey added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Jul 16, 2018
let prefix: string | null = null
if (this.props.needsDisambiguation && gitHubRepo) {
if (gitHubRepo) {
prefix = `${gitHubRepo.owner.login}/`

This comment was marked as spam.

This comment was marked as spam.

@shiftkey

Copy link
Copy Markdown
Member

@RaeesBhatti thanks for opening up this PR. This is something I was thinking about recently as a way to add more context, but I'm going to let this sit for a bit and gather feedback.

Some additional context/history:

  • the goal for using disambiguation here was that we believed we should only show as much as necessary, to avoid cluttering the repository list. For users who mostly work in the same organization, we felt that always showing that organization name felt like redundant information.
  • this disambiguation doesn't help when you have multiple copies of the same GitHub repository and want to differentiate between then. This change to always show the owner doesn't really address that either, and that's okay. The best issue tracking that is probably Unable to change Label of Local Repo #1929.
  • we might have to suck it up and investigate more complex groupings (remote -> organization) and how filtering affects this.

@shiftkey shiftkey self-assigned this Jul 16, 2018
@shiftkey shiftkey removed the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Jul 16, 2018
@shiftkey shiftkey removed their assignment Jul 16, 2018
@billygriffin

Copy link
Copy Markdown
Contributor

Hi @RaeesBhatti! Thanks for the PR! Would you mind articulating what problem this is solving for specifically? As @shiftkey mentioned, there are a lot of different problems that are somewhat similar in this space, and we'd like to get clearer on what problems we're solving. It's ok for a solution not to cover the entire surface area of problem areas, but we do want to have a clearly framed problem that we're solving for, and potential tradeoffs we're accepting, before implementing or merging solutions.

@RaeesBhatti

Copy link
Copy Markdown
Author

@billygriffin My apologies for a late reply. The main reason for implementing this change was to "disambiguate" ownership of repos named like "examples", "sdk", "backend", "site". My work (like many others) spans across repos from multiple orgs, and different workstations have different locally cloned repos; having a repo named "backend" is not very intuitive atm. The existing logic for disambiguation requires two repos with same name to trigger which means that previously mentioned repo names would still not be clear.
The change does not affect any styling or positioning.

@shiftkey

Copy link
Copy Markdown
Member

@RaeesBhatti thanks for the feedback. For the moment I'm going to close this out as we've not really dug into the underlying issue, and I'd love to explore the problem space better. So please follow along with #1533 in the meantime.

@shiftkey shiftkey closed this Aug 24, 2018
@RaeesBhatti
RaeesBhatti deleted the raees/ownerLoginAndRepoName branch August 24, 2018 14:07
@RaeesBhatti
RaeesBhatti restored the raees/ownerLoginAndRepoName branch August 24, 2018 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants