Skip to content

[PM-19888] Automatic Tax flag not properly updated after deleting tax id #5607

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

Closed
wants to merge 17 commits into from

Conversation

jonashendrickx
Copy link
Contributor

🎟️ Tracking

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

📔 Objective

  1. Create Non US business org with VAT value applied
  2. change payment method
  3. remove VAT on new payment method
  4. Can use the same zip code or change it (doesn’t matter)
  5. Automatic tax remains enabled - this should be disabled upon removal

📸 Screenshots

⏰ 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 review from a team as code owners April 4, 2025 15:03
@jonashendrickx jonashendrickx requested a review from r-tome April 4, 2025 15:03
Copy link

codecov bot commented Apr 4, 2025

Codecov Report

Attention: Patch coverage is 44.61078% with 185 lines in your changes missing coverage. Please review.

Project coverage is 44.90%. Comparing base (0ca1b31) to head (310770f).
Report is 22 commits behind head on main.

Files with missing lines Patch % Lines
...e/Services/Implementations/StripePaymentService.cs 0.00% 58 Missing ⚠️
...ling/Services/Implementations/SubscriberService.cs 24.19% 42 Missing and 5 partials ⚠️
...ns/AutomaticTax/PersonalUseAutomaticTaxStrategy.cs 52.50% 19 Missing ⚠️
...ns/AutomaticTax/BusinessUseAutomaticTaxStrategy.cs 76.27% 14 Missing ⚠️
...Services/Implementations/UpcomingInvoiceHandler.cs 0.00% 13 Missing ⚠️
...ices/Implementations/OrganizationBillingService.cs 21.42% 11 Missing ⚠️
...vices/Implementations/PremiumUserBillingService.cs 23.07% 10 Missing ⚠️
...Providers/RemoveOrganizationFromProviderCommand.cs 75.00% 3 Missing and 1 partial ⚠️
.../Commercial.Core/Billing/ProviderBillingService.cs 66.66% 3 Missing and 1 partial ⚠️
...ervices/Contracts/AutomaticTaxFactoryParameters.cs 75.00% 4 Missing ⚠️
... and 1 more
Additional details and impacted files
@@           Coverage Diff            @@
##             main    #5607    +/-   ##
========================================
  Coverage   44.90%   44.90%            
========================================
  Files        1559     1562     +3     
  Lines       71146    71381   +235     
  Branches     6355     6387    +32     
========================================
+ Hits        31945    32052   +107     
- Misses      37850    37969   +119     
- Partials     1351     1360     +9     

☔ 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

sonarqubecloud bot commented Apr 4, 2025

Copy link
Contributor

github-actions bot commented Apr 4, 2025

Logo
Checkmarx One – Scan Summary & Detailsbb77bcf6-93ba-4bb5-a3c4-7f9e9a3305ac

New Issues (3)

Checkmarx found the following issues in this Pull Request

Severity Issue Source File / Package Checkmarx Insight
MEDIUM CSRF /src/Billing/Controllers/PayPalController.cs: 70
detailsMethod PostIpn at line 70 of /src/Billing/Controllers/PayPalController.cs gets a parameter from a user request from Body. This parameter value flow...
Attack Vector
MEDIUM SSL_Verification_Bypass /src/Core/Services/Implementations/MailKitSmtpMailDeliveryService.cs: 73
details/src/Core/Services/Implementations/MailKitSmtpMailDeliveryService.cs relies HTTPS requests, in SendEmailAsync. The ServerCertificateValidationCallb...
Attack Vector
LOW Missing_CSP_Header /src/Core/MailTemplates/Handlebars/SecurityTasksNotification.html.hbs: 20
detailsA Content Security Policy is not explicitly defined within the web-application.
Attack Vector
Fixed Issues (10)

Great job! The following issues were fixed in this Pull Request

Severity Issue Source File / Package
MEDIUM CSRF /src/Api/KeyManagement/Controllers/AccountsKeyManagementController.cs: 81
MEDIUM CSRF /src/Api/AdminConsole/Controllers/GroupsController.cs: 164
MEDIUM CSRF /src/Api/AdminConsole/Controllers/GroupsController.cs: 164
MEDIUM CSRF /bitwarden_license/src/Scim/Controllers/v2/GroupsController.cs: 86
MEDIUM CSRF /src/Api/AdminConsole/Public/Controllers/GroupsController.cs: 133
MEDIUM CSRF /bitwarden_license/src/Scim/Controllers/v2/GroupsController.cs: 96
MEDIUM CSRF /src/Api/Billing/Controllers/OrganizationSponsorshipsController.cs: 185
MEDIUM CSRF /src/Api/Billing/Controllers/OrganizationSponsorshipsController.cs: 76
MEDIUM CSRF /bitwarden_license/src/Scim/Controllers/v2/GroupsController.cs: 77
MEDIUM SSL_Verification_Bypass /src/Core/Services/Implementations/MailKitSmtpMailDeliveryService.cs: 76

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.

1 participant