-
Notifications
You must be signed in to change notification settings - Fork 429
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
fix(sales-dashboard): prevent 500 error when user doesn't exist on sales dashboard search #4757
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 3 Skipped Deployments
|
Docker builds report
|
Uffizzi Ephemeral Environment Deploying☁️ https://app.uffizzi.com/github.com/Flagsmith/flagsmith/pull/4757 ⚙️ Updating now by workflow run 11518746962. What is Uffizzi? Learn more! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4757 +/- ##
=======================================
Coverage 97.21% 97.22%
=======================================
Files 1172 1172
Lines 40535 40560 +25
=======================================
+ Hits 39408 39434 +26
+ Misses 1127 1126 -1 ☔ View full report in Codecov by Sentry. |
This behaviour is super useful, but I don't like it as a fallback, especially for public domains such as Instead, we could make this explicit when searching for a domain, like |
Yeah, I tend to agree. I was just being lazy. I'll update. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a minor suggestion, either way it's an improvement and happy to ship it as-is 👍
Changes
Prevents a 500 error when searching the sales dashboard for a user email address that doesn't exist.
Also adds functionality to search by a domain, which will now search across all users with that domain and return any organisations that belong to users with that domain.
Note that the reason this can't be simplified to e.g.
users__email__endswith
is because of this PR: #4377.How did you test this code?
Added a new unit test.