-
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: Activate user who fired trial on trial expiration #101
Conversation
Codecov Report
@@ Coverage Diff @@
## main #101 +/- ##
=======================================
Coverage 98.47% 98.47%
=======================================
Files 364 364
Lines 26837 26850 +13
=======================================
+ Hits 26427 26440 +13
Misses 410 410
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov Report
@@ Coverage Diff @@
## main #101 +/- ##
=======================================
Coverage 98.43% 98.43%
=======================================
Files 343 343
Lines 26665 26678 +13
=======================================
+ Hits 26248 26261 +13
Misses 417 417
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov Report
@@ Coverage Diff @@
## main #101 +/- ##
=======================================
Coverage 98.43% 98.43%
=======================================
Files 343 343
Lines 26665 26678 +13
=======================================
+ Hits 26248 26261 +13
Misses 417 417
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@@ -73,6 +73,7 @@ class Owner(CodecovBaseModel): | |||
trial_start_date = Column(types.DateTime, server_default=FetchedValue()) | |||
trial_end_date = Column(types.DateTime, server_default=FetchedValue()) | |||
trial_status = Column(types.Text, server_default=FetchedValue()) | |||
trial_fired_by = Column(types.Integer, server_default=FetchedValue()) |
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 column already in the database?
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.
I guess this value is set from the API side when the trial is activated?
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.
yes yes
On free plans, we offer 1 seat and we'd want to keep user who fired the trial activated post the trial.
codecov/engineering-team#406
Legal Boilerplate
Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.