- Issue created by @phenaproxima
- Merge request !6927Add constraints to image.settings and mark it fully validatable β (Open) created by phenaproxima
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Drupal\Tests\migrate_drupal_ui\Functional\d7\Upgrade7TestWithContentModeration::testUpgradeAndIncremental
Failed asserting that 29 is identical to 27.I bet that's just two additional migration messages about invalid config.
- πΊπΈUnited States phenaproxima Massachusetts
#3: Yup, confirmed. https://git.drupalcode.org/issue/drupal-3425870/-/jobs/997495#L665
I've updated the test.
- Status changed to Needs review
10 months ago 9:38pm 5 March 2024 - Status changed to Needs work
10 months ago 9:20am 6 March 2024 - Status changed to Needs review
9 months ago 8:45pm 28 March 2024 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
I was wondering if this should have explicit test coverage π€ We are adding a new Symfony validation constraint to Drupal here after all.
image.settings:preview_image
itself is implicitly tested becauseImageStylesPathAndUrlTest
modifies that config object and saves it, which results in this validation logic running. So we know that the default config (preview_image: core/modules/image/sample.png
) works fine for sure.Thoughts, @phenaproxima? π€
- Assigned to wim leers
- πΊπΈUnited States phenaproxima Massachusetts
I think that it absolutely cannot hurt to have explicit test coverage of that. It wasn't hard to write! Back to you.
- Issue was unassigned.
- Status changed to RTBC
9 months ago 1:08pm 2 April 2024 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Explicit test coverage of failing to pass validation in combination with lots of implicit test coverage of passing validation (see #8) seems a reasonable, pragmatic approach. π (Although I'd understand if a core committer would prefer explicit test coverage of passing validation).
- First commit to issue fork.
- π¬π§United Kingdom alexpott πͺπΊπ
I fixed the migrations - having them fail just because we don't want to do a find and replace feels unnecessary.
- Status changed to Fixed
9 months ago 3:13pm 3 April 2024 - π¬π§United Kingdom alexpott πͺπΊπ
Committed and pushed ad80289ed4 to 11.x and ffd6065a7c to 10.3.x. Thanks!
-
alexpott β
committed ffd6065a on 10.3.x
Issue #3425870 by phenaproxima, alexpott, Wim Leers: Add validation...
-
alexpott β
committed ffd6065a on 10.3.x
-
alexpott β
committed ad80289e on 11.x
Issue #3425870 by phenaproxima, alexpott, Wim Leers: Add validation...
-
alexpott β
committed ad80289e on 11.x
- π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Thanks for https://git.drupalcode.org/project/drupal/-/merge_requests/6927/diffs?co..., @alexpott β I prefer that too but wasn't able to convince @phenaproxima π
Automatically closed - issue fixed for 2 weeks with no activity.