-
-
Notifications
You must be signed in to change notification settings - Fork 825
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
Export - add tests out header output, move phone_type_id to metadata #12587
Conversation
(Standard links)
|
Jenkins re test this please |
@eileenmcnaughton i think this needs a rebase now |
This has the side effect of making it such that it only gets 16 char rather than 255. I thnk this is 'ok' here but there is a separate issue open to increase the varchar for all fields on export
0d1d4e6
to
219c47d
Compare
@@ -1756,6 +2063,7 @@ protected function getBasicSqlColumnDefinition($isContactExport) { | |||
'country' => 'country varchar(64)', | |||
'phone' => 'phone varchar(32)', | |||
'phone_ext' => 'phone_ext varchar(16)', | |||
'phone_type_id' => 'phone_type_id varchar(16)', |
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.
@eileenmcnaughton is the change here because it is now able to use the field definition and not fall back to a default length of 255?
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.
@seamuslee001 yep - it's an unintended consequence but one which I think is OK since many other fields are given 16 char. I want to look at that side of things more once I get to the end of the cleanup
@seamuslee001 is this good to merge? |
Yay lots of tests! |
Overview
Add lots of tests to export. Use metadata for phone_type_id
Before
Header output not tested
After
Header output tested.
Phone Type ID column is with the other phone fields. As a side effect the definition is now only varchar(16). I think this is no worse than all the other fields with the 16 limit & changing this field should be OK. But there is a separate issue open to look at a higher varchar number for all columns in the output https://lab.civicrm.org/dev/core/issues/181
Technical Details
Support export of phone_type_id by marking the field as exportable. It would be nice to clean up campaign_id fields & im_provider but the latter requires a bit more untangling and the former requires a title change on the field (from 'Campaign' to 'Campaign ID') - this is not dissimilar to changes made in other places & should better support search builder but I have left it out of scope for now
Comments