listmonk icon indicating copy to clipboard operation
listmonk copied to clipboard

Merging attributes instead of overwriting them, when importing subscribers

Open benstaf opened this issue 1 year ago • 1 comments

When importing subscribers, It would be nice to have the option to merge attributes instead of overwriting vs. not-overwriting them

Screenshot_2024-08-23-10-00-16-204_com android chrome-edit

For example, if I have [email protected] with attributes { 'hobbies': ['swimming','cooking']}and then import again [email protected] with attributes { 'hobbies': ['dancing','gardening']} , it would be nice to get [email protected] with attributes { 'hobbies': ['swimming','cooking','dancing','gardening']}

This would be in addition to the option of re-importing vs. skipping existing subscribers, mentioned in issue https://github.com/knadh/listmonk/issues/1883 (still unsolved)

benstaf avatar Aug 23 '24 08:08 benstaf

Recursively merging arbitrary attributes in the database, the hobbies[] array for example, is unfortunately not technically feasible.

knadh avatar Aug 23 '24 11:08 knadh