Skip to content
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

User that change their login (username) cause undesired side effects #89

Open
rmariuzzo opened this issue Oct 28, 2017 · 2 comments
Open

Comments

@rmariuzzo
Copy link
Member

GitHub allow users to change their login (username). While doing this, GitHub retain repos with the old username, when accessed, GitHub does a 301 redirect.

However, here we need to identify users by their unique id and not their volatile login name.

@Zerquix18
Copy link
Contributor

Was this fixed in #91 ?

@mecm1993
Copy link

A possible solution could be to get the repositories while it searches the users, for example,

{
  search(type: USER, query: $query, first: 100) {
    userCount
    nodes {
      __typename
      ... on User {
        id
        login
        name
        repositories(isFork: false, first: 10) {
          __typename
          nodes {
            ... on Repository {
              id
              name: nameWithOwner
              url
            }
          }
        }
      }
    }
  }
}

In this scenario, we get the information that it is not being updated through the searchRepos query.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants