Closed (fixed)
Project:
Dynamic Entity Reference
Version:
3.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
28 May 2019 at 10:33 UTC
Updated:
25 Jan 2024 at 04:44 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
hchonovComment #3
hchonovComment #4
kfritscheThe method was renamed in https://www.drupal.org/project/drupal/issues/3057545#comment-13187968
Updated the patch for this change.
Comment #5
larowlanGiven this is a static method, we should be able to test this with a unit test
Code looks good
Comment #6
kim.pepperComment #7
jurgenhaas@kfritsche I have applied the latest patch to a Drupal 9.1.10 installation but I'm still getting lots of warnings like these when flushing cache:
inventoryis a base field we created in a module for various entity types, e.g. nodes, and we refer to many different other entity types and bundles from it. This is working fine in the UI and storage, but since we enabled jsonapi as well, we're getting these warnings. From the issue above I was hoping this should be fixed by the patch, but it isn't. Any hint what else could be causing this?Comment #8
bradjones1Comment #9
acbramley commentedThe blocker for this has had some movement, would be great to get some reviews on the new test coverage :)
Comment #10
bbrala#3057545: ResourceTypeRepository wrongly assumes that all entity reference fields have the setting "target_type" has been committed.
Comment #11
wim leers🥳
Comment #12
jibran#5 is still pending.
Comment #13
jibranComment #14
jibranRe-roll #4.
RE #5: the core issue also didn't not add tests for
::getReferenceableBundles()in #3057545: ResourceTypeRepository wrongly assumes that all entity reference fields have the setting "target_type". All the test added in that issue is for deprecation. Also unit test is going to only check that for a given mock object we have some array structure that is already being tested in DER Kernel tests so what exactly trying to test then? I'd say we should add functional tests that can help close #3027430: Dynamic Entity Reference normalization support.HEAD is failing on 11.x atm after field UI changes. I'm working on fixing it. So ignore the test fails for now but it needs functional test and mentioned above.
Comment #15
larowlanThis looks good to go to me
Comment #16
heddnUpgraded to 10.2.0 today and got bit by this. Can we land this and tag a new release?
Comment #17
jibranThere are some other fails as well. Please see https://github.com/jibran/dynamic_entity_reference/pull/9. Feel free to make it green. I'm trying to find some time but no luck.
Comment #18
jibranI think we can fix this and create a follow-up to fix the field settings form for DER.
Comment #19
heddnI had some time to work on this today. I didn't solve it, but I did figure out where the fault lies. If you manually install DER module on 10.2 and install the
inline_form_errorsmodule, you'll see that the issue is with the new field wizard process added in 10.2.DynamicEntityReferenceItem::storageSettingsFormValidateis triggered and we can't save the field form.Comment #20
heddnLet's see how much this fixes. I hope I got all the fixes pulled in from the referenced PR.
Comment #21
heddnHmm, can we enable gitlab integration? It looks like we are being gently nudged to move that direction as I can't run the test bot w/ 10.2 any more.
Comment #22
bradjones1@heddn it's enabled by default now... You may need to include a .gitlab-ci.yml file, but there are instructions on doing so.
It does not however work with patches so you will need to re-roll this into an MR.
Comment #23
jibranThere is already a PR for it. https://git.drupalcode.org/project/dynamic_entity_reference/-/merge_requ.... It is not merged as it is not passing yet.
Comment #24
acbramley commented@jibran that MR has a lot of changes that are out of scope for getting tests passing, and seem to overlap with #3350347: Declaration of DynamicEntityReferenceItemNormalizer::normalize() must be compatible and/or #3354499: DynamicEntityReferenceItemNormalizer broken on D10 as well.
It would be great to know the list of priorities to getting DER 10.1 compatible and perhaps constrain the gitlab CI MR to just adding the pipeline and getting tests green?
NW because #20 isn't applying
Comment #25
jibranI'm happy to commit #14 as is and fix the remaining fails in follow-up issue(s).
Comment #26
jibranHere is the roadmap to fix 10.2 integration.
Comment #29
jibranCommitted and pushed #14. Thanks!