Problem/Motivation
Drupal\Core\Config\UnmetDependenciesException: Configuration objects provided by <em [error]
class="placeholder">commerce_pos</em> have unmet dependencies: <em
class="placeholder">field.field.commerce_order.pos.order_items
(field.storage.commerce_order.order_items)</em> in
I checked on my install of commerce 2.x (Dec 31, 2019) and there is no field.storage.commerce_order.order_items.yml file in that config
Proposed resolution
Commerce has moved
- order_items on the commerce order entity to a base field
- stores on the commerce product entity to a base field
Therefore we no longer need to provide configuration for these.
This makes the latest version of this module dependent on commerce 2.16
Remaining tasks
User interface changes
None
API changes
None
Data model changes
Less configuration.
Release notes snippet
The latest version of this module is dependent on commerce 2.16
Comments
Comment #2
derekcresswell commentedThe issue of
field.storage.commerce_order.order_items.ymlbeing an unmet dependency is being addressed in a different issue here #3032258.Thank you.
Comment #3
derekcresswell commentedComment #4
derekcresswell commentedThis should remove the unmet dependencies warnings.
And as I thought, the next main issue here is that the pos index is in the optional config. Personally unsure how drupalci sets up all that stuff but will look into. Help appreciated.
Comment #5
derekcresswell commentedThis does not fix everything but I would like to leave it here as it does help some.
The
UPCTestin the kernel tests of POS was out of date. See this commerce issueComment #6
derekcresswell commentedJust trying something more so. The indexItems on null should be solved by the changes to server config.
The Ajax change will likely be done to all in the future.
Comment #7
derekcresswell commentedComment #8
socialnicheguru commentedComment #9
derekcresswell commentedATM I am not aware how to fix the config problems with order_types I'll get that next time.
Comment #11
alexpottFixing the last test. We need to declare a dependency on commerce_order 2.16 because that moves order_items to a base field which has big changes on this module's configuration.
Comment #12
alexpottComment #13
alexpottAll green - let's unblock all the other issues as tests on HEAD are broken.
Comment #14
alexpottComment #16
alexpottI've opened #3111635: Duplicate dependencies for the funky search api config.
Comment #19
alexpottHad to remove the drupal constraint because there are so many times when Drupal has no idea of the module version - for example when DrupalCI gets commerce using composer with --prefer-source