Skip to content
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

Allow admin to extend team trial #4052

Merged
merged 2 commits into from
Jun 20, 2024
Merged

Allow admin to extend team trial #4052

merged 2 commits into from
Jun 20, 2024

Conversation

knolleary
Copy link
Member

Closes #4031

Adds an 'Extend Trial' option under the Admin Tools section of Team Settings:

image

Dialog lets you pick a new end date

image

The API prevents setting a date more than 1 year in the future. It can be set to a date in the past, in which case the next time the TrialTask runs (every 30mins) the trial will be ended.

Option only shows for a team in trial (or an expired trial). If they have setup stripe, the option is no longer available.

@knolleary knolleary requested a review from cstns June 19, 2024 18:05
Copy link

codecov bot commented Jun 19, 2024

Codecov Report

Attention: Patch coverage is 86.20690% with 4 lines in your changes missing coverage. Please review.

Project coverage is 78.71%. Comparing base (a04496a) to head (5cb84d8).
Report is 1 commits behind head on main.

Files Patch % Lines
forge/ee/lib/billing/index.js 84.21% 3 Missing ⚠️
forge/ee/routes/billing/index.js 90.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4052      +/-   ##
==========================================
+ Coverage   78.58%   78.71%   +0.13%     
==========================================
  Files         284      284              
  Lines       12979    13008      +29     
  Branches     2890     2897       +7     
==========================================
+ Hits        10199    10239      +40     
+ Misses       2780     2769      -11     
Flag Coverage Δ
backend 78.71% <86.20%> (+0.13%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@knolleary knolleary merged commit 60e704a into main Jun 20, 2024
10 checks passed
@knolleary knolleary deleted the 4031-extend-trial branch June 20, 2024 08:33
@knolleary knolleary mentioned this pull request Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow admin to extend user trial
2 participants