- Issue created by @wim leers
- Issue was unassigned.
- Status changed to Needs review
10 months ago 9:24am 21 February 2024 - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
This needed โจ Follow-up for #3324150: allow specifying a prefix for ConfigExistsConstraint, to enable using it for references to config entities Needs review .
But sadly once again, just like both
book.settings
(see #3422862-3: Add validation constraints to book.settings โ ) andfilter.settings
before it (see ๐ Add validation constraints to filter.settings Fixed and #1932544: Remove all traces of fallback format concept from the (admin) UI โ ), this simple config violates the basic rule of simple config: that it cannot depend on other config entities. ๐ฌ Fixing that is out of scope here. - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Ah, interesting โ I worked to convert the weird integration of editing the
contact.settings
simple config from within theContactFormEditForm
config entity form to use#config_target
(see https://www.drupal.org/node/3373502 โ ), but didn't realize that wouldn't work, because#config_target
is only available onConfigFormBase
subclasses. So โฆ there's nothing else to do here!Attached is the patch containing what I did before I realized it cannot work. Only if โจ [PP-2] Introduce ConfigEntityForm to standardize use of validation constraints for config entities Active adds
#config_target
support to config entity forms would this be possible to implement. - Status changed to Needs work
10 months ago 10:34am 21 February 2024 - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Legitimate failures:
MigrateContactSettingsTest
(for both D6 & D7)ContactStorageTest
ContactSitewideTest
This is likely because
default_form
no longer is allowed to be set to''
, only tonull
. That means this needs an update path similar to ๐ [PP-1] Make NodeType config entities fully validatable Needs review . - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Clarifying that this is blocked on โจ Follow-up for #3324150: allow specifying a prefix for ConfigExistsConstraint, to enable using it for references to config entities Needs review .
- Status changed to Needs review
10 months ago 4:07pm 26 February 2024 - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
โจ Follow-up for #3324150: allow specifying a prefix for ConfigExistsConstraint, to enable using it for references to config entities Needs review landed, rebased MR ๐
- Status changed to Needs work
10 months ago 4:23pm 26 February 2024 - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Merged in upstream. I still expect this to fail due to #5.
But โฆ I also expect a nice green new CI job thanks to โจ Add a "Validatable config" tests job to GitLab CI to help core evolve towards 100% validatability Fixed ๐
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Yay:
๐คฉDetails: https://git.drupalcode.org/issue/drupal-3422872/-/jobs/1056803
- ๐ฎ๐ณIndia kunal.sachdev
kunal.sachdev โ made their first commit to this issueโs fork.
- Status changed to Needs review
9 months ago 9:13am 2 April 2024 - Status changed to Needs work
9 months ago 9:47am 2 April 2024 - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Thanks for pushing this further! ๐
The updated migration logic/tests are clearly incorrect though. ๐
- Status changed to Needs review
9 months ago 12:39pm 8 April 2024 - Status changed to Needs work
9 months ago 7:38am 9 April 2024 - Status changed to Needs review
9 months ago 8:58am 9 April 2024 - Status changed to Needs work
9 months ago 4:13pm 9 April 2024 - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
See https://git.drupalcode.org/project/drupal/-/merge_requests/6713#note_294465 โ
\Drupal\contact\Controller\ContactController::contactSitePage()
's logic is the problem. - Status changed to Needs review
9 months ago 7:29am 11 April 2024 - Status changed to Needs work
9 months ago 7:58am 11 April 2024 - Status changed to Needs review
9 months ago 9:29am 11 April 2024 - Status changed to RTBC
8 months ago 1:37pm 11 April 2024 - First commit to issue fork.
-
larowlan โ
committed 55849506 on 10.3.x
Issue #3422872 by kunal.sachdev, Wim Leers: Add validation constraints...
-
larowlan โ
committed 55849506 on 10.3.x
-
larowlan โ
committed c41bea2d on 11.x
Issue #3422872 by kunal.sachdev, Wim Leers: Add validation constraints...
-
larowlan โ
committed c41bea2d on 11.x
- Status changed to Fixed
8 months ago 9:52pm 11 April 2024 - ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
Made a minor comment edit and waited for tests - came back green.
Committed to 11.x and backported to 10.3.x
Thanks
Automatically closed - issue fixed for 2 weeks with no activity.