- Issue created by @nickdickinsonwilde
- Status changed to Needs review
over 1 year ago 6:41pm 7 June 2023 - last update
over 1 year ago Build Successful - 🇧🇷Brazil carolpettirossi Campinas - SP
Nick,
Sorry, it's not clear to me why you are removing the Email constraint definition from the core/lib/Drupal/Core/Validation/ConstraintManager.php.
Also, can you please provide steps or scenarios for the validation process?
Thanks,
Carol - 🇨🇦Canada nickdickinsonwilde Victoria, BC (T'So-uke lands)
It is 100% a duplication of data - I strongly feel a plugin definition should only exist in one spot *either*the PHP standalone file (necessary in this case, since it is setting default options for the Symfony Validator) or the ConstraintManager itself.
Scenario is any config which needs to be an email. Ex:spambot.settings: type: config_object label: Settings mapping: spambot_whitelist_email_list: label: 'Allow list of emails' type: sequence orderby: value sequence: type: email constraints: NotBlank: {} Email: {} [snip]
- Status changed to Needs work
over 1 year ago 9:47pm 7 June 2023 - Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
over 1 year ago Waiting for branch to pass - 🇨🇦Canada nickdickinsonwilde Victoria, BC (T'So-uke lands)
Looks like it doesn't like single quotes there... confirming.
- Status changed to Needs review
over 1 year ago 4:20pm 8 June 2023 - last update
over 1 year ago 29,436 pass - 🇨🇦Canada nickdickinsonwilde Victoria, BC (T'So-uke lands)
wrong file and didn't mark it needs review
- Status changed to RTBC
over 1 year ago 5:09pm 8 June 2023 - last update
over 1 year ago 29,437 pass - last update
over 1 year ago 29,442 pass - last update
over 1 year ago 29,448 pass - last update
over 1 year ago 29,486 pass - last update
over 1 year ago 29,499 pass - last update
over 1 year ago 29,505 pass - last update
over 1 year ago 29,531 pass - last update
over 1 year ago 29,553 pass - last update
over 1 year ago 29,559 pass - last update
over 1 year ago 29,563 pass 29:37 27:22 Running- last update
over 1 year ago 29,571 pass - last update
over 1 year ago 29,801 pass - last update
over 1 year ago 29,802 pass - last update
over 1 year ago 29,802 pass - last update
over 1 year ago 29,806 pass - last update
over 1 year ago 29,811 pass - last update
over 1 year ago 29,815 pass - last update
over 1 year ago 29,815 pass - last update
over 1 year ago 29,822 pass - last update
over 1 year ago 29,830 pass, 1 fail The last submitted patch, 7: 3365449-email-constaint-cleanup-7.patch, failed testing. View results →
- last update
over 1 year ago 29,834 pass, 1 fail The last submitted patch, 7: 3365449-email-constaint-cleanup-7.patch, failed testing. View results →
- Open on Drupal.org →Environment: PHP 8.2 & MySQL 8last update
over 1 year ago Waiting for branch to pass - 🇧🇪Belgium borisson_ Mechelen, 🇧🇪
Back to rtbc, the same random fail that was not introduced in this issue.
- last update
over 1 year ago 29,873 pass - Status changed to Needs work
over 1 year ago 10:05am 22 July 2023 - 🇫🇮Finland lauriii Finland
--- a/core/lib/Drupal/Core/Validation/ConstraintManager.php +++ b/core/lib/Drupal/Core/Validation/ConstraintManager.php @@ -105,11 +104,6 @@ public function registerDefinitions() { - 'type' => ['string'], @@ -5,13 +5,14 @@ + * type = { "email" }
I'm wondering if this could break some existing code if someone is applying the constraint on a string type. It might be easier if we open a follow-up for this change, and scope this issue for removing the duplicate definition.
- Status changed to Needs review
about 1 year ago 11:07am 16 August 2023 - last update
about 1 year ago 29,961 pass - Status changed to RTBC
about 1 year ago 4:02pm 21 August 2023 - Status changed to Needs review
about 1 year ago 4:05pm 21 August 2023 - 🇫🇮Finland lauriii Finland
+++ b/core/lib/Drupal/Core/Validation/ConstraintManager.php @@ -105,11 +104,6 @@ public function registerDefinitions() { - 'type' => ['string'],
Couldn't we keep the type: string still in the definition?
- 🇺🇸United States smustgrave
@lauriii not sure would that require label and class?
- Status changed to Needs work
about 1 year ago 2:06pm 1 September 2023 - last update
about 1 year ago 30,392 pass - Status changed to Needs review
about 1 year ago 7:46am 11 October 2023 - last update
about 1 year ago 30,392 pass - 🇮🇳India atul4drupal
Have reverted changes in "core/lib/Drupal/Core/Validation/ConstraintManager.php" file to restore 'type' key per #18 📌 Clean up email validation constraint definition Needs work .
Of the 3 keys to set constraint definition label seemed optional, but left it as is for consistency and ease of understanding.Kindly review and suggest.
- Status changed to Needs work
about 1 year ago 7:01pm 13 October 2023 - 🇺🇸United States smustgrave
Think the issue summary needs to be updated and agreed upon.
#15 talks about a follow up.
Then to remove the duplicate definition.
Then added backSo now all we are doing is updating the comment? Is that desired?
- Status changed to Needs review
11 months ago 1:57pm 31 December 2023 - last update
11 months ago 25,941 pass, 1,819 fail - Status changed to Needs work
11 months ago 2:32pm 2 January 2024 - 🇺🇸United States smustgrave
Triggered drupalci for you, only moving to NW about the issue summary update.