New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
N°7234 - Add the possibility of mapping the same CSV column twice or more #46
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does make sense and very useful, however some minor change requests..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unit test isn't working as expected:
- If the duplicated field is something other than the primary key, it doesn't work
- If 2 or more fields are duplicated it doesn't work, only the first one seem to work
- Columns orders in the generated CSV changes when you add a duplicated field
Anne-Cath, you can talk to Denis or me about these comments, we reviewed it together.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use correct php doc syntax.
d605a38
to
d2314c7
Compare
Co-authored-by: Thomas Casteleyn <thomas.casteleyn@super-visions.com>
Co-authored-by: Thomas Casteleyn <thomas.casteleyn@super-visions.com>
Co-authored-by: Thomas Casteleyn <thomas.casteleyn@super-visions.com>
d2314c7
to
334edb4
Compare
All good, you can squash & merge. Mind to keep the PR number in the commit message. |
example :
<PersonCollector>
<csv_file>collectors/Person_import.csv</csv_file>
<separator>,</separator>
<fields>
<primary_key>email</primary_key>
<first_name>first_name</first_name>
<name>name</name>
<status>status</status>
<org_id>org_id</org_id>
<email>email</email>
</fields>
</PersonCollector>