Skip to content

Conversation

@soupette
Copy link
Contributor

@soupette soupette commented Mar 3, 2021

Signed-off-by: soupette cyril.lpz@gmail.com

What does it do?

This PR fixes #9554

Signed-off-by: soupette <cyril.lpz@gmail.com>
@soupette soupette added source: core:admin Source is core/admin package issue: bug Issue reporting a bug labels Mar 3, 2021
@soupette soupette requested a review from alexandrebodin March 3, 2021 10:36
@codecov
Copy link

codecov bot commented Mar 3, 2021

Codecov Report

Merging #9584 (a3c7ebb) into master (96cf541) will increase coverage by 0.00%.
The diff coverage is 33.33%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #9584   +/-   ##
=======================================
  Coverage   35.95%   35.95%           
=======================================
  Files        1335     1335           
  Lines       14726    14731    +5     
  Branches     1468     1468           
=======================================
+ Hits         5295     5297    +2     
- Misses       8514     8517    +3     
  Partials      917      917           
Flag Coverage Δ
front 27.38% <50.00%> (+<0.01%) ⬆️
unit 55.52% <0.00%> (-0.02%) ⬇️

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

Impacted Files Coverage Δ
...trapi-admin/admin/src/containers/AuthPage/index.js 0.00% <ø> (ø)
...c/containers/NewNotification/Notification/index.js 0.00% <ø> (ø)
...ger/admin/src/components/AddDropdown/components.js 0.00% <ø> (ø)
...anager/admin/src/components/SelectWrapper/index.js 0.00% <ø> (ø)
...anager/admin/src/components/WysiwygEditor/index.js 0.00% <ø> (ø)
.../containers/EditViewDataManagerProvider/reducer.js 0.00% <ø> (ø)
...in/src/containers/ListSettingsView/MenuDropdown.js 0.00% <ø> (ø)
...rapi-plugin-upload/admin/src/translations/index.js 0.00% <0.00%> (ø)
packages/strapi/lib/utils/ee.js 23.33% <0.00%> (-0.40%) ⬇️
...trapi-admin/admin/src/validations/users/profile.js 66.66% <50.00%> (-8.34%) ⬇️
... and 1 more

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 ebcfa07...0412569. Read the comment docs.

let parseDomainResult = parseDomain(value);
return parseDomainResult.type === ParseResultType.Listed;
.test('topLevelDomainValidation', 'Settings.users.validations.email-domain', function(value) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I made the fix but I believe that this is not a wanted logic we want in the admin panel. IMO, this is something that the users should add in their app if they want such validation.

WDYT @alexandrebodin ?

Copy link
Member

Choose a reason for hiding this comment

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

Not sure what was the wanted behaviour. We can revert it as this is still doable in a lifecycle hook

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it would be better to revert it yes

Copy link
Member

Choose a reason for hiding this comment

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

you can go ahead

@soupette
Copy link
Contributor Author

soupette commented Mar 3, 2021

I am closing this PR.

#9588

@soupette soupette closed this Mar 3, 2021
@soupette soupette deleted the fix/update-user branch March 3, 2021 14:04
@derrickmehaffy
Copy link
Member

This pull request has been mentioned on Strapi Community Forum. There might be relevant details there:

https://forum.strapi.io/t/cannot-update-admin-email-on-admin-panel/3285/2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

issue: bug Issue reporting a bug source: core:admin Source is core/admin package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update user email validation

4 participants