-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat(webserver, db): Implement github provided repositories #1800
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1800 +/- ##
==========================================
+ Coverage 54.48% 55.08% +0.59%
==========================================
Files 121 123 +2
Lines 10753 10999 +246
==========================================
+ Hits 5859 6059 +200
- Misses 4894 4940 +46 ☔ View full report in Codecov by Sentry. |
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.
Please also integrate RepositoryAccess
in this PR for github provided repositories.
fff1fd4
to
9a9b631
Compare
6e33d34
to
bd71d56
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.
Overall LG, please add unit test for coverage
@@ -11,6 +11,8 @@ pub struct GithubRepositoryProvider { | |||
pub id: ID, | |||
pub display_name: String, | |||
pub application_id: String, | |||
#[graphql(skip)] | |||
pub access_token: Option<String>, |
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.
pub access_token: Option<String>, | |
pub access_token: String, |
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.
The access token can be None
(if the user has not gone through the OAuth connect flow yet), and this will only be used internally. I think we should prefer a closer representation of the data, since otherwise I'll be having to check if access_token.is_empty()
instead.
cc @liangfung
Relates to TAB-479