-
Notifications
You must be signed in to change notification settings - Fork 60
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
Deduplicate email invites (SEC#19) #2543
Conversation
@Steve-Mcl looks like one of your new tests has failed Sorry, the change has broken old tests. |
yeah, trying to understand why - I suppose thats why we do do tests tho right :) |
that took some doing. I inadvertently broke tests in a different area - turns out my deduplication code was not as well behaved or accurate enough. I have added additional test for ensuring deduplication is case insentitive on users too. All tests pass locally. 🤞 |
@Steve-Mcl still failing |
yup - grrr. my test foo is broken - easer one this time |
Codecov Report
@@ Coverage Diff @@
## main #2543 +/- ##
=======================================
Coverage 74.63% 74.63%
=======================================
Files 228 228
Lines 9129 9164 +35
Branches 1879 1891 +12
=======================================
+ Hits 6813 6840 +27
- Misses 2316 2324 +8
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@hardillb third time is the charm |
Description
Deduplicate the list of external invites in the API call.
To achieve this, we need a canonical form of the Email addresses and for Gmail, we need to remove the "dot trick" aliases.
add getCanonicalEmail function to db/utils
deduplicate invitees
unit tests for getCanonicalEmail function
add test for deduplication of invitees on the api
Tests:
Related Issue(s)
https://github.com/flowforge/security/issues/19
Checklist
flowforge.yml
?flowforge/helm
to update ConfigMap Templateflowforge/CloudProject
to update values for Staging/ProductionLabels
backport
labelarea:migration
label