Skip to content

Conversation

@artonge
Copy link
Contributor

@artonge artonge commented May 5, 2022

When comparing email to check if it is present in the invitees list, we do not normalize the value.
This leads to inconsistencies:

  1. the user will see two options when searching for [email protected] if the stored email is [email protected]
  2. the user will see one option when searching for [email protected] if the stored email is [email protected]
1 2
Screenshot from 2022-05-05 16-19-37 Screenshot from 2022-05-05 16-20-40

This PR transform the values to lower cases to consolidate the number of options offered to the user.

When comparing email to check if it is present in the invitees list, we do not normalize the value.
This leads to inconsistancies:
- the user will see two options when searching for [email protected] if the stored email is [email protected]
- the user will see one option when searching for [email protected] if the stored email is [email protected]

This PR transform the values to lower cases to consolidate the number of options offered to the user.

Signed-off-by: Louis Chemineau <[email protected]>
@artonge artonge added 3. to review Waiting for reviews enhancement New feature request Feature: Sharing javascript Pull requests that update Javascript code labels May 5, 2022
@artonge artonge self-assigned this May 5, 2022
@codecov
Copy link

codecov bot commented May 5, 2022

Codecov Report

Merging #4198 (a4fbe2e) into main (9f3157f) will not change coverage.
The diff coverage is 0.00%.

@@            Coverage Diff            @@
##               main    #4198   +/-   ##
=========================================
  Coverage     29.72%   29.72%           
  Complexity      330      330           
=========================================
  Files           220      220           
  Lines          7611     7611           
  Branches       1004     1004           
=========================================
  Hits           2262     2262           
  Misses         5349     5349           
Flag Coverage Δ
javascript 20.78% <0.00%> (ø)
php 68.75% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
.../components/Editor/Invitees/InviteesListSearch.vue 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9f3157f...a4fbe2e. Read the comment docs.

@artonge artonge requested a review from a team May 9, 2022 12:24
@artonge artonge added this to the v3.4.0 milestone May 9, 2022
@tcitworld tcitworld requested review from a team, ChristophWurst and st3iny and removed request for a team May 9, 2022 12:34
@ChristophWurst ChristophWurst merged commit 0db092f into main May 9, 2022
@ChristophWurst ChristophWurst deleted the feature/prevent_almost_duplicate_email branch May 9, 2022 13:07
@ChristophWurst
Copy link
Member

Is this a feature or a fix? Backport to the v3.3 line?

@artonge
Copy link
Contributor Author

artonge commented May 9, 2022

Fix, yes backport could be nice.

@artonge
Copy link
Contributor Author

artonge commented May 9, 2022

/backport to stable3.3

@backportbot-nextcloud backportbot-nextcloud bot added the backport-request A backport was requested for this pull request label May 9, 2022
@backportbot-nextcloud backportbot-nextcloud bot removed the backport-request A backport was requested for this pull request label May 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement New feature request Feature: Sharing javascript Pull requests that update Javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants