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

sourced init without the org parameter (or making it optional) #235

Closed
rpau opened this issue Sep 6, 2019 · 4 comments
Closed

sourced init without the org parameter (or making it optional) #235

rpau opened this issue Sep 6, 2019 · 4 comments
Labels
triage/needs-product-input This needs input from product

Comments

@rpau
Copy link

rpau commented Sep 6, 2019

Related with: #61

Using the GH token is enough to discover the user orgs/repos of a user. In GHE, I have seen in big companies (e.g. > 1000 developers) to have an org per team to find easily the repos and administrate permissions in an isolated way.

So, as a user/developer/manager, when I run it for first time, it was weird to me to filter an specific org.

@carlosms carlosms added the triage/needs-product-input This needs input from product label Sep 10, 2019
@smola
Copy link

smola commented Sep 10, 2019

Note that users may be members of many organizations but could be interested only in some of them. In my case, I'm member of 10 organizations but use source{d} with only 2 of them. I see some possible behaviors here:

  • If no explicit org is given, import all of them.
  • If no explicit org is given, and the user only has access to one org, import that org. If there is more than one org, fail and ask the user to add organizations explicitly.
  • None of the above, add an --all (or similar) option to fetch all organizations based on membership data.
  • Status quo.

Note that a token can also be used to import organizations that you are not member of. I have no idea how common would that be for end users, it definitely is common for us while experimenting, but we can just be explicit with organizations in that case.

@smacker
Copy link
Contributor

smacker commented Sep 10, 2019

I really like how it's done in bb server. It figures what can be fetched with your token and asks what you want:
Screenshot 2019-08-27 at 13 04 01

In "owner" on the top I have other orgs too.

@rpau
Copy link
Author

rpau commented Sep 20, 2019

+1 with @smacker

Like BB, using the token you can ask for the orgs where the user belongs to, and then, he should be able select from the UI which orgs/repos wants to analyse.

Also, Wwen you setup travis, you enable the orgs and repos to process.

@se7entyse7en
Copy link
Contributor

@rpau I think we can close this in favor of this.

@rpau rpau closed this as completed Oct 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triage/needs-product-input This needs input from product
Projects
None yet
Development

No branches or pull requests

5 participants