-
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
flip default value on upload_token_required_for_public_repos #864
Conversation
This PR includes changes to |
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #864 +/- ##
=======================================
Coverage 98.04% 98.05%
=======================================
Files 444 444
Lines 35412 35437 +25
=======================================
+ Hits 34721 34746 +25
Misses 691 691
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 ✅ ✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #864 +/- ##
=======================================
Coverage 98.04% 98.05%
=======================================
Files 444 444
Lines 35412 35437 +25
=======================================
+ Hits 34721 34746 +25
Misses 691 691
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 ✅
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #864 +/- ##
=======================================
Coverage 98.04% 98.05%
=======================================
Files 444 444
Lines 35412 35437 +25
=======================================
+ Hits 34721 34746 +25
Misses 691 691
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 ✅
✅ All tests successful. No failed tests found. @@ Coverage Diff @@
## main #864 +/- ##
=======================================
Coverage 98.04% 98.05%
=======================================
Files 444 444
Lines 35412 35437 +25
=======================================
+ Hits 34721 34746 +25
Misses 691 691
Flags with carried forward coverage won't be shown. Click here to find out more.
|
database/models/core.py
Outdated
@@ -83,7 +83,7 @@ class Owner(CodecovBaseModel): | |||
stripe_customer_id = Column(types.Text, server_default=FetchedValue()) | |||
stripe_subscription_id = Column(types.Text, server_default=FetchedValue()) | |||
onboarding_completed = Column(types.Boolean, default=False) | |||
upload_token_required_for_public_repos = Column(types.Boolean, default=True) | |||
upload_token_required_for_public_repos = Column(types.Boolean, default=False) |
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 this a DB default or an object default? And could we add a test that confirms this works as expected?
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.
Object default. With django, the default
is managed in code and the db does not have a default
for this field. Since it is non-nullable, worker needs to know what default to provide to the db.
In terms of the test - just a test to show that when creating an Owner
the field is set to the default value?
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.
Yup!
530fb2c
to
21402c6
Compare
This PR includes changes to |
✅ All tests successful. No failed tests were found. 📣 Thoughts on this report? Let Codecov know! | Powered by Codecov |
when true tokenless goes live we will merge this, which will make true tokenless default to "on" for new orgs.
codecov/engineering-team#2623