localgovdrupal / localgov_geo

Entity for storing Geographic information, addresses, and areas; extensible types and plugable backends with defaults to start.
2 stars 1 forks source link

Error drush cim when trying to import new config #35

Closed andybroomfield closed 1 year ago

andybroomfield commented 2 years ago

The import failed due to the following reasons:
Unexpected error during import with operation update for core.entity_view_d
isplay.localgov_geo.address.embed: Attempt to save a configuration entity &

039;localgov_geo.address.embed' with UUID '2bd1327d-6d8b-41b0-9a

61-28bfb6a46c35' when this UUID is already used for 'localgov_geo
.address.default'

Steps to replicate Modify the geo address entity display mode embed to remove the address field and save. Try to restore the entity by reimporting configuration

What should happen Embed display mode is reset to default (Map, Address, Accesbility)

What does happen Error will display in drush console and modification will be left.

ekes commented 2 years ago

Can't replicated on a fresh install:-

> drush si localgov
> drush en localgov_geo_address
> drush cex

Then head to /admin/structure/geo_types/manage/address/display/embed Remove the address field. Save.

> drush cim
...
[notice] Synchronized configuration: update core.entity_view_display.localgov_geo.address.embed.

and it's back to exported configuration.

ekes commented 2 years ago

Can't replicate on an upgraded install.

> drush db-import 2021-08-26-localgovdemo.sql.gz
> lando drush updb
> lando drush cex

Then head to /admin/structure/geo_types/manage/address/display/embed Remove the address field. Save.

> drush cim
...
[notice] Synchronized configuration: update core.entity_view_display.localgov_geo.address.embed.
ekes commented 1 year ago

Believe this was fixed with :point_up: