Problem/Motivation

The address module provides 3 field types: address, address_country and address_zone; however, we only support the address one.
Other field types should be supported as well.

Steps to reproduce

Install the address module, add field of Country or Zone field type (found under Address category).
Create content and try exporting it.
Expected: the content is exported.
Actual: Country and Zone field types are not supported.

Proposed resolution

Add support for these field types via SimpleFieldDeriver. This should be probably done after #3400982: Simple Field Processor plugins tests is merged which would add necessary tests infrastructure.

Remaining tasks

Wait for #3400982: Simple Field Processor plugins tests to be merged, add new field types and test cases for them.

User interface changes

New field types would be exportable.

API changes

New field types would be exportable.

Data model changes

Exported YML files would include new field types which could be incompatible with older versions of the module but that's expected.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

abramm created an issue. See original summary.

abramm’s picture

Issue tags: +LutskGCW24

Now when we have basic tests, we can implement support for additional field types.

oleksandr.roshchuk’s picture

Assigned: Unassigned » oleksandr.roshchuk
abramm’s picture

Assigned: oleksandr.roshchuk » abramm
Status: Needs work » Active

  • abramm committed 81ef4852 on 1.4.x
    Issue #3404115: Support address_country field type
    

abramm’s picture

I've added support for the address_country field type, it already merged to 1.4.x.
As for address_zone, there's an open MR adding support and it works, but needs tests before we could merge it.

  • abramm committed 13f36eb6 on 1.4.x
    Issue #3404115: Add address_zone field type import/export tests
    

  • abramm committed fedd76c0 on 1.4.x
    Issue #3404115: Support address_zone field type
    
abramm’s picture

Status: Active » Fixed

The test is here, merged to 1.4.x.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.