-
Notifications
You must be signed in to change notification settings - Fork 31
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
Passing a username as "organizations" config value crashes the tap #173
Comments
@laurentS - Just to check here, it is desireable in this case to be able to pull streams for a "personal" org as if it were a "real" org? If yes, and if there is a parent-child relationship, perhaps we could check a property of the org and skip/omit child streams that are non-applicable. That would allow a hybrid of orgs and usernames to be provided in the However, if we'd rather not accept personal usernames as orgs, then (again assuming we have a parent-child relationship) probably a similar check that results in hard failure when iterating on the organizations themselves would do the trick. "Error: Detected that 'laurents' is not a valid organization ID. Personal usernames are not allowed in the organizations list." What do you think? |
My feeling is that github mixes users and orgs in the web app, to the point where behaviour is basically the same when listing an org's repo or a user's repos. Using the api, I get essentially the same results as well, whether I call Taking a step back, the lack of consistency is somewhat annoying here. It is impossible to know if So I'd lean towards making it transparent in the tap as well, so that it is possible to pass What do you think? |
It is indeed quite annoying. As a first approach I think we could try to make it transparent and run successfully for repos. And log a more explicit warning on "Not Found" for the other streams. Eg. |
I wonder if we could preprocess the Then:
|
@laurentS sounds good, let's try something like this. Random thought - we could imagine another type of input called |
The following config:
will crash the tap with the following traceback (trimmed to the useful part):
This is because my username is not an org from github's perspective. Calling the
users/laurents/repos
endpoint works fine on the other hand.I'm not sure what the best solution is:
The text was updated successfully, but these errors were encountered: