Closed (fixed)
Project:
Lightning API
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
6 Jun 2018 at 14:15 UTC
Updated:
10 Jul 2018 at 18:54 UTC
Jump to comment: Most recent
Comments
Comment #2
balsamaUpdating to 1.19 caused the EntityCrudTest to fail while creating a new term via the api.
Interestingly, I was able to fix this by creating the term in the Tags vocabulary provided by standard instead of one created by the test.
Even more interesting, the test fails again if I add the creation of the test vocab back in even though I'm still creating the term in the preexisting Tags vocab.
Stack trace is the same for both failures:
As well as the exception:
Comment #3
wim leersStack traces are utterly useless in functional PHPUnit tests, because they're the same for all of them: that's a stack trace for the test runner up to the point where it makes a HTTP request. Not where the code is failing.
If you grep the code base for
Relationships to virtual resources are possible, you'll find that this string was added in #2940339: Port reference field support for non-empty entity reference fields not pointing to an entity from #2543726, which indeed shipped with 1.19. I'll work on a regression test in JSON API, which should be able to either reproduce this (and result in an upstream bugfix), or it should result in me finding what was wrong in https://github.com/acquia/lightning-api/commit/f65e8bc0e67b44ad9d00287aa....Comment #4
wim leersThis is most likely because in:
Having multiple vocabularies causes
$relatable_resource_types['parent']to have multiple resource types.FYI: I’ve just managed to reproduce it locally, without using Lightning API’s tests. So I’m on it. Expect a JSON API issue soon.
Comment #5
wim leersRoot cause found: bug in the
Termentity type. Details at #2977879: Regression in #2940339: when multiple vocabularies exist, normalization of Terms fails.Comment #6
wim leersNow there is:
Comment #7
wim leers#2977882: Term entity type's "parent" field does not specify "target_bundles" setting: a term from *any* vocabulary can be chosen landed! So I created #2980593: Follow-up for #2977879: remove work-around for #2977882 to stop applying the work-around on 8.6.
Comment #8
wim leersBTW, https://www.drupal.org/project/jsonapi/releases/8.x-1.20 was released which includes the work-around. So was actually already unblocked for a while :)
Comment #9
balsamaThanks for this. This commit brought in the core patch referenced in #6 (bullet #1). We should remove that and update to 1.20 (which includes #6 (bullet #2).
Comment #11
balsama