-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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-17132] Fix rate limiter error message when upgrading organization #13157
Conversation
Great job, no security vulnerabilities found in this Pull Request |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #13157 +/- ##
==========================================
- Coverage 35.49% 35.48% -0.01%
==========================================
Files 3007 3007
Lines 90868 90870 +2
Branches 16904 16905 +1
==========================================
- Hits 32254 32247 -7
- Misses 56112 56121 +9
Partials 2502 2502 ☔ View full report in Codecov by Sentry. |
It feels off to me that we're raising Toast errors about rate limiting just from a user clicking on Plan cards. I.e if I was the end user, I'd still probably think this was a bug. Presumably, we only want to even attempt to preview the invoice to calculate the tax if the user's filled out, at least, the country and the postal code, right? Preventing those unnecessary calls here, while not perfect, would resolve this if we expect the user to settle on a specific plan before filling in the final tax information and purchasing. |
It only attempts to calculate the sales tax when both postal code and country are entered. I also added a delay when typing so it doesn't unnecessarily try to recalculate the sales tax when modifying the country or postal code. I think the scenario above rarely happens. But we should probably always get a translation key back from the backend instead of text. |
My mistake I missed that you had those fields entered in your video. So this was basically someone having entered all their information and then going and toggling the plans quickly. Yeah, I mean it's definitely an edge-case, but something I suggest we look into potential caching mechanisms for in the near future. This looks good tho. |
🎟️ Tracking
https://bitwarden.atlassian.net/browse/PM-17132
📔 Objective
When rate limiter is triggered when previewing an organization, an empty error message is being shown. This is due to the fact no translation exists for the rate limiter error message.
📸 Screenshots
Screen.Recording.2025-01-30.at.14.25.48.mov
⏰ Reminders before review
🦮 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