-
-
Notifications
You must be signed in to change notification settings - Fork 824
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
Fix metadata on member export #14916
Conversation
(Standard links)
|
@eileenmcnaughton why not make auto_renew exportable? |
@seamuslee001 it's not a real field - the WHERE code is pretty complex & I'm not even really sure what it means |
@eileenmcnaughton i thought it was the field that had the referece to civicrm_contribution_recur in it? but maybe not |
@seamuslee001 well it does refer to that field but not as just a number - see the where
|
OTOH the select has NADA for it but it DOES offer up the civicrm_membership.contribution_recur_id field |
related test failure noise - that's a good thing! It tells me we have useful cover on this |
79b62c9
to
208c115
Compare
@seamuslee001 I pulled autorenew out . to #14956 |
fe12d5d
to
1dc0a44
Compare
1dc0a44
to
444cf08
Compare
Note auto_renew seems un-exportable so I removed it from return properties
444cf08
to
8f67d99
Compare
@seamuslee001 I also finally got this passing - my goal is to ensure metadata is defined for all exportable fields & then we won't get new ones added with inadequate info / random handling because the tests will e-notice away like mad once I can remove the lenient lines - I think there are only really simple ones left after this |
Tested the export screen, search forms, membership recur contribution, auto-renew functionality, etc and have not yet seen any problems in the functioning of the same. I was able to replicate the main issue of not printing the headers in the export file and confirm that this pr fixes the display of 3 headers - member_is_override, membership_recur_id, max_related. I feel this is good to be merged. |
thanks @jitendrapurohit |
Overview
This fixes the lack of headings on some fields when exporting memberships
Before
No headings for
member_is_override
membership_recur_id
max_related
After
Headings for exported fields
Technical Details
I added uniquenames to match the export / query fields but am having misgivings about membership_recur_id - I wonder if I should instead change it to membership_contribution_recur_id - but there is more to change / more risk then
Comments
I did some testing to see if the renaming would cause issues & found
3) I had to change the tests for import for is_override but this doesn't require a db update as (somewhat tragically) the LABELS are stored in the mapping (I might look to change that as a follow up)
after the change I edited a membership through the back office form to be override - all good
I DID find that I need to update smart groups based on search builder for this for is_override. recur id is already no exportable