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

feat: Remove all but first admin when subscription has reached cancellation date #2965

Merged
merged 10 commits into from
Nov 16, 2023

Conversation

zachaysan
Copy link
Contributor

Thanks for submitting a PR! Please check the boxes below:

  • I have run pre-commit to check linting
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

Added code to existing cancellation workflow to limit the seats to a sole admin once the subscription cancellation date has finally been reached.

How did you test this code?

Two new tests. Once that goes through the web request for cancellations that are immediate, and another for any that have a cancellation date in the future. I also read through a lot of code around subscriptions to see if there were other areas that could benefit from delayed processing of cancelation but I didn't find any sure contenders.

Copy link

vercel bot commented Nov 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 16, 2023 4:33pm
flagsmith-frontend-preview ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 16, 2023 4:33pm
flagsmith-frontend-staging ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 16, 2023 4:33pm

Copy link
Contributor

github-actions bot commented Nov 13, 2023

Uffizzi Preview deployment-40679 was deleted.

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (01d14d2) 95.54% compared to head (9f2b91b) 95.55%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2965   +/-   ##
=======================================
  Coverage   95.54%   95.55%           
=======================================
  Files        1013     1014    +1     
  Lines       29331    29393   +62     
=======================================
+ Hits        28025    28087   +62     
  Misses       1306     1306           

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

Copy link
Contributor

@matthewelwell matthewelwell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved with one minor additional comment (and an update on the blank=False conversation).

Merged via the queue into main with commit 6976f81 Nov 16, 2023
18 of 20 checks passed
@zachaysan zachaysan deleted the feat/remove_all_but_first_admin branch November 16, 2023 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issue related to the REST API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants