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

Pm 11525 estimated tax shown to customers potentially incorrect #11502

Conversation

jonashendrickx
Copy link
Member

@jonashendrickx jonashendrickx commented Oct 11, 2024

🎟️ Tracking

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

📔 Objective

Calculate the sales tax using Stripe as our stored values are potentially incorrect.

📸 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 a review from a team as a code owner October 11, 2024 09:07
takeUntil(this.destroy$),
)
.subscribe();
this.taxFormGroup
Copy link
Member Author

Choose a reason for hiding this comment

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

Otherwise the sales tax may not calculate correctly for the United States. Some other countries also apply a sales tax unique per postal code such as Canary Islands, Ceuta in Spain.

}
this.taxFormGroup.get("postalCode").updateValueAndValidity();
}),
debounceTime(1000),
Copy link
Member Author

Choose a reason for hiding this comment

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

Delay calling out API if until no further input is received within 1 second.

Copy link

codecov bot commented Oct 11, 2024

Codecov Report

Attention: Patch coverage is 12.76596% with 41 lines in your changes missing coverage. Please review.

Project coverage is 33.16%. Comparing base (7c86474) to head (215a32c).
Report is 407 commits behind head on main.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
...s/web/src/app/billing/shared/tax-info.component.ts 17.24% 22 Missing and 2 partials ⚠️
...ax-information/manage-tax-information.component.ts 16.66% 4 Missing and 1 partial ⚠️
libs/common/src/billing/services/tax.service.ts 0.00% 5 Missing ⚠️
libs/angular/src/services/jslib-services.module.ts 0.00% 2 Missing ⚠️
...rc/billing/abstractions/tax.service.abstraction.ts 0.00% 1 Missing ⚠️
...ommon/src/billing/models/domain/taxable-country.ts 0.00% 1 Missing ⚠️
...rc/billing/models/request/calculate-tax.request.ts 0.00% 1 Missing ⚠️
.../billing/models/response/calculate-tax.response.ts 0.00% 1 Missing ⚠️
...common/src/billing/services/billing-api.service.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #11502      +/-   ##
==========================================
- Coverage   33.17%   33.16%   -0.01%     
==========================================
  Files        2779     2784       +5     
  Lines       86223    86234      +11     
  Branches    16420    16419       -1     
==========================================
- Hits        28604    28602       -2     
- Misses      55353    55364      +11     
- Partials     2266     2268       +2     

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


🚨 Try these New Features:

Copy link
Contributor

github-actions bot commented Oct 11, 2024

Logo
Checkmarx One – Scan Summary & Details03a286fb-00fc-4305-8e12-94727e8af154

No New Or Fixed Issues Found

Copy link
Contributor

@amorask-bitwarden amorask-bitwarden left a comment

Choose a reason for hiding this comment

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

This looks great - awesome work.

@jonashendrickx jonashendrickx added the needs-qa Marks a PR as requiring QA approval label Oct 11, 2024
@jonashendrickx jonashendrickx added the hold do not merge, do not approve yet label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hold do not merge, do not approve yet needs-qa Marks a PR as requiring QA approval
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants