- Issue created by @wim leers
- Issue was unassigned.
- Status changed to Needs review
over 1 year ago 12:29pm 17 May 2023 - last update
over 1 year ago 29,386 pass, 1 fail - last update
over 1 year ago 29,388 pass - ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
@borisson_ raised a legitimate concern in Drupal Slack:
hm, it's kind of worrying that this has been in core for years and has only surfaced now, would it be an idea to be more defensive in the
create
method so that we alert people who are creating these objects when they are incomplete?Itโs been in core for years but that method is called virtually nowhere. It pretty much only exists in Typed Config tests!
Since CKEditor 5 is in core, 3 calls to it were added to core. Which brings it to a grand total of 12 ๐คฃ
The thing is that the commit that introduced it ( #2869809: Make it easy to get typed config representations of entities โ ) was specifically done as one of the blockers for
POST
andPATCH
support for config entities via the REST module.But of course the validation pieces never materialized โฆ so none of that really happened.
Thatโs why Iโm running into it now: because Iโm working on validation ๐ค
- Status changed to RTBC
over 1 year ago 12:49pm 17 May 2023 - ๐ง๐ชBelgium borisson_ Mechelen, ๐ง๐ช
Discussed with Wim in slack, I now understand why this only breaks in this scenario, patch looks great!
The last submitted patch, 2: 3360991-2-test-only-FAIL.patch, failed testing. View results โ
- ๐ง๐ชBelgium wim leers Ghent ๐ง๐ช๐ช๐บ
Discovered this in โจ Expose validation constraints (and validatability %) in Config Inspector UI Fixed and hence had to work around this.
- Open on Drupal.org โEnvironment: PHP 8.2 & MySQL 8last update
over 1 year ago Waiting for branch to pass 33:27 29:33 Running33:27 31:53 Running-
lauriii โ
committed 96e2fd9d on 11.x
Issue #3360991 by Wim Leers, borisson_: TypedData instances created by...
-
lauriii โ
committed 96e2fd9d on 11.x
-
lauriii โ
committed 9050ec54 on 10.1.x
Issue #3360991 by Wim Leers, borisson_: TypedData instances created by...
-
lauriii โ
committed 9050ec54 on 10.1.x
- Status changed to Fixed
over 1 year ago 4:06pm 25 May 2023 - ๐ซ๐ฎFinland lauriii Finland
Committed 96e2fd9 and pushed to 11.x. Also cherry-picked to 10.1.x. Thanks!
Interestingly, yesterday I was debugging code in ๐ Save FieldStorageConfig at the same time as FieldConfig Fixed where I had done the same mistake ๐ It did take me a while to realize until I found yet another map in
\Drupal\Core\TypedData\TypedDataManager::$prototypes
. Automatically closed - issue fixed for 2 weeks with no activity.