Skip to content

PM-16517: Create personal use plan for additional storage #5205

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

jonashendrickx
Copy link
Contributor

@jonashendrickx jonashendrickx commented Jan 1, 2025

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-16517

📔 Objective

Separate price & product for personal use Password Manager plans when additional storage is purchased.

To validate still internally whether we update existing subscriptions when listening to webhooks or we update them all at once in bulk.

📸 Screenshots

After the migration script has been executed separately, we will issue the correct invoice during the next cycle.

Screen.Recording.2025-01-29.at.13.16.15.mov

⏰ Reminders before review

  • Contributor guidelines followed
  • All formatters and local linters executed and passed
  • Written new unit and / or integration tests where applicable
  • Protected functional changes with optionality (feature flags)
  • Used internationalization (i18n) for all UI strings
  • CI builds passed
  • Communicated to DevOps any deployment requirements
  • Updated any necessary documentation (Confluence, contributing docs) or informed the documentation team

🦮 Reviewer guidelines

  • 👍 (:+1:) or similar for great changes
  • 📝 (:memo:) or ℹ️ (:information_source:) for notes or general info
  • ❓ (:question:) for questions
  • 🤔 (:thinking:) or 💭 (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion
  • 🎨 (:art:) for suggestions / improvements
  • ❌ (:x:) or ⚠️ (:warning:) for more significant problems or concerns needing attention
  • 🌱 (:seedling:) or ♻️ (:recycle:) for future improvements or indications of technical debt
  • ⛏ (:pick:) for minor or nitpick changes

@jonashendrickx jonashendrickx requested a review from a team as a code owner January 1, 2025 11:32
Copy link
Contributor

@cyprain-okeke cyprain-okeke left a comment

Choose a reason for hiding this comment

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

Looks Good

@@ -38,7 +38,7 @@ public Families2019PasswordManagerFeatures()
HasPremiumAccessOption = true;

StripePlanId = "personal-org-annually";
StripeStoragePlanId = "storage-gb-annually";
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you changing the existing storage name , what of the users that has subscribed to it. I am not sure you are able to change a product name when it has subscribers in stripe

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@cyprain-okeke We will execute a migration script separately. So there's no need to migrate to an entire new plan.

Copy link
Contributor

github-actions bot commented Jan 1, 2025

Logo
Checkmarx One – Scan Summary & Detailsc8c6046a-246d-4ba5-b23a-7d98c4133298

New Issues (1)

Checkmarx found the following issues in this Pull Request

Severity Issue Source File / Package Checkmarx Insight
MEDIUM CSRF /src/Api/NotificationCenter/Controllers/NotificationsController.cs: 61
detailsMethod MarkAsDeletedAsync at line 61 of /src/Api/NotificationCenter/Controllers/NotificationsController.cs gets a parameter from a user request fro...
ID: oQCJb2oSjecaFszPNnPkNHy4760%3D
Attack Vector

Copy link

codecov bot commented Jan 2, 2025

Codecov Report

Attention: Patch coverage is 40.00000% with 3 lines in your changes missing coverage. Please review.

Project coverage is 45.80%. Comparing base (0b50a18) to head (86d4545).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/Core/Services/Implementations/UserService.cs 0.00% 2 Missing ⚠️
...vices/Implementations/PremiumUserBillingService.cs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5205   +/-   ##
=======================================
  Coverage   45.80%   45.80%           
=======================================
  Files        1609     1609           
  Lines       73170    73170           
  Branches     6556     6556           
=======================================
  Hits        33516    33516           
  Misses      38226    38226           
  Partials     1428     1428           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@cturnbull-bitwarden cturnbull-bitwarden left a comment

Choose a reason for hiding this comment

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

Looks good! We might want to also consider bringing back the "business use" checkbox when creating a new org in another PR. That checkbox should still be there, I think, but just hidden on the client side.

…rate-product-personal-use' into PM-16517-Additional-storage-separate-product-personal-use
@jonashendrickx jonashendrickx added the hold Hold this PR or item until later; DO NOT MERGE label Jan 7, 2025
@jonashendrickx jonashendrickx removed the hold Hold this PR or item until later; DO NOT MERGE label Jan 29, 2025
…rate-product-personal-use' into PM-16517-Additional-storage-separate-product-personal-use
Copy link

sonarqubecloud bot commented Mar 5, 2025

…-personal-use

# Conflicts:
#	src/Core/Services/Implementations/StripePaymentService.cs
@jonashendrickx
Copy link
Contributor Author

Fixed merge conflict @bitwarden/team-billing-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants