-
-
Notifications
You must be signed in to change notification settings - Fork 812
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
[REF] Build single array of information about output specifications when exporting #13213
Conversation
(Standard links)
|
05adae4
to
db1396d
Compare
@eileenmcnaughton Tested Membership, Contribution and Contact export (with do not merge, merge all contacts with the same address, postal only enabled/disabled).
Quantia total | Status de Contribuição | Date Received | Payment Method
|
@mattwire thanks - I'll try to capture those in tests! |
To fix 1:
To fix 2:
The "fix" for 1 looks like a typo to me. The fix for 2 is slightly less ideal as it "special-cases" that field, but it's only added in (and it's required to be added) for merge same address because internally it's using the ID to compare addresses which cascades down into SQL statements etc. To remove it at source would require significant further refactoring so this would probably be a good fix (with a comment) to get this refactor merged. |
Furthermore, to fix household export I think we can now do:
which gets rid of the unknown field error on export. I did get row size too large and changed the temp table definition to MyISAM so I could test the above. Clearly, further improvements required, but this may help get us closer... I tested this one on top of #13216 |
db1396d
to
943e694
Compare
@mattwire I captured both the issues you found in tests and fixed them - can you recheck - I can rebase the other one over this PR |
3cf2f41
to
30eab4c
Compare
@eileenmcnaughton Ok tests pass and the issues I listed appear resolved when testing on a demo site. Ok to merge @seamuslee001 |
Merging as per review my @mattwire |
Overview
Part of an ongoing cleanup on export class
Before
Several arrays are built with data about the same fields - they need to be kept in sync but are not tied together
After
The data is moved all into one array
Technical Details
This was pretty fiddly but the tests were ruthless in picking things up
Comments
@mattwire I did another cut - I think it would be good to review it but wait for the next rc to be cut before merging this one as it's not very readable as a change