Skip to content
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] Convert testGender Export to new test format. #14914

Merged
merged 1 commit into from
Jul 30, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

This is part of switching the tests to a new cleaner method

It includes a tangental cleanup & fix whereby I add test cover for a gender label longer than 16 char & consolidate the handling of gender & the other special case fields (prefix_id, suffix_id & communication_style_id) by handling the special casing in the metadata declaration
on the query object

Before

Less std, gender labels longer than 16 char cause export fails

After

More std, long gender labels are supported

Technical Details

Early on in the switch to metadata handling for fields like gender_id, prefix_id the query object was updated to overwrite those fields with the label when processing out. More recently we adopted a pattern of outputting the original field AND a pseudofield with the field name being the option group name. This makes the handling of the first set clearer & means they are output correctly in export as a byproduct.

Comments

This includes a tangental cleanup & fix whereby the test covers a label longer than 16 char & the code for
prefix_id & suffix_id is consolidated by handling the special casing in the metadata declaration
rather than in multiple places.
@civibot
Copy link

civibot bot commented Jul 30, 2019

(Standard links)

@civibot civibot bot added the master label Jul 30, 2019
@eileenmcnaughton eileenmcnaughton changed the title Convert testGender Export to new test format. [Export] Convert testGender Export to new test format. Jul 30, 2019
@eileenmcnaughton
Copy link
Contributor Author

@colemanw another

@colemanw colemanw merged commit 9c5ee94 into civicrm:master Jul 30, 2019
@colemanw colemanw deleted the export_test branch July 30, 2019 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants