-
Notifications
You must be signed in to change notification settings - Fork 4k
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
🐛Source GitHub: added description for no repos case error #26075
🐛Source GitHub: added description for no repos case error #26075
Conversation
Before Merging a Connector Pull RequestWow! What a great pull request you have here! 🎉 To merge this PR, ensure the following has been done/considered for each connector added or updated:
If the checklist is complete, but the CI check is failing,
|
/test connector=connectors/source-github
Build PassedTest summary info:
|
airbyte-integrations/connectors/source-github/source_github/source.py
Outdated
Show resolved
Hide resolved
d79bd76
to
a93239e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Minor changes needed.
@@ -234,7 +234,15 @@ def streams(self, config: Mapping[str, Any]) -> List[Stream]: | |||
raise e | |||
|
|||
if not any((organizations, repositories)): | |||
raise Exception("No streams available. Please check permissions") | |||
user_message = ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need add unit tests for this functionality.
/test connector=connectors/source-github
Build PassedTest summary info:
|
/publish connector=connectors/source-github
if you have connectors that successfully published but failed definition generation, follow step 4 here |
…26075) * added description for no repos case error * added AirbyteTracedException * added changelog * removed handling error in validation * updated github.md * added unit test test_streams_no_streams_available_error * auto-bump connector version --------- Co-authored-by: Octavia Squidington III <octavia-squidington-iii@users.noreply.github.com>
resolved: https://github.com/airbytehq/oncall/issues/1747
Problem:
In case when user provided repository name that do not exist in github, or just wrong name (typo for example), connector says that is repository config is invalid, which is not clear.
Solution:
Added description why config can be invalid to help user fix it.