-
Notifications
You must be signed in to change notification settings - Fork 10
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: GithubAppInstallation model #236
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅ @@ Coverage Diff @@
## main #236 +/- ##
=======================================
Coverage 98.13% 98.14%
=======================================
Files 375 375
Lines 30667 30721 +54
=======================================
+ Hits 30096 30150 +54
Misses 571 571
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #236 +/- ##
=======================================
Coverage 98.13% 98.14%
=======================================
Files 375 375
Lines 30667 30721 +54
=======================================
+ Hits 30096 30150 +54
Misses 571 571
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov Report
@@ Coverage Diff @@
## main #236 +/- ##
=======================================
Coverage 98.13% 98.14%
=======================================
Files 375 375
Lines 30667 30721 +54
=======================================
+ Hits 30096 30150 +54
Misses 571 571
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #236 +/- ##
=======================================
Coverage 98.11% 98.11%
=======================================
Files 406 406
Lines 31368 31422 +54
=======================================
+ Hits 30776 30830 +54
Misses 592 592
Flags with carried forward coverage won't be shown. Click here to find out more.
This change has been scanned for critical changes. Learn more |
depends on: #236 context: codecov/engineering-team#970 usage of the `GithubAppInstallation` model through the worker. It still respects and doesn't affect deprecated usages of `owner.integration_id` and `repo.using_integration`, but if a ghapp exists for the owner it takes precedence over the legacy fields.
e15d378
to
8030169
Compare
depends on: #236 context: codecov/engineering-team#970 usage of the `GithubAppInstallation` model through the worker. It still respects and doesn't affect deprecated usages of `owner.integration_id` and `repo.using_integration`, but if a ghapp exists for the owner it takes precedence over the legacy fields.
These changes port codecov/codecov-api#346 to the worker so we can use them here as well. context: codecov/engineering-team#970
8030169
to
a062340
Compare
depends on: #236 context: codecov/engineering-team#970 usage of the `GithubAppInstallation` model through the worker. It still respects and doesn't affect deprecated usages of `owner.integration_id` and `repo.using_integration`, but if a ghapp exists for the owner it takes precedence over the legacy fields.
GITHUB_APP_INSTALLATION_DEFAULT_NAME = "codecov_app_installation" | ||
|
||
|
||
class GithubAppInstallation(CodecovBaseModel, MixinBaseClass): |
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.
Is there an easy way to test this E2E to prevent something like what happened in API?
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.
Unsure. I don't think we have the infra in place...
I tested locally, if that's worth anything (upload, PR comment, statuses and exploring files in the UI), but it's very much a "trust me" scenario and we know it's easy to make mistakes.
depends on: #236 context: codecov/engineering-team#970 usage of the `GithubAppInstallation` model through the worker. It still respects and doesn't affect deprecated usages of `owner.integration_id` and `repo.using_integration`, but if a ghapp exists for the owner it takes precedence over the legacy fields.
depends on: #236 context: codecov/engineering-team#970 usage of the `GithubAppInstallation` model through the worker. It still respects and doesn't affect deprecated usages of `owner.integration_id` and `repo.using_integration`, but if a ghapp exists for the owner it takes precedence over the legacy fields.
These changes port codecov/codecov-api#346 to the worker so we can use them here as well.
context: codecov/engineering-team#970