-
-
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
Remove phone_type, im provider handling form export that seems to be doing nothing #12597
Conversation
(Standard links)
|
@eileenmcnaughton I applied this PR and ran some tests. I created a contact with a couple IM and Phone values. Here's what I found:
So it looks like there are still issues. |
@lcdservices was it worse with the patch - my impression was it doesn't quite work & the removed lines are neither part of the fix or the problem |
@eileenmcnaughton I reran my test against current master and the results were better than with your patch. Without your patch -- the IM and phone type labels were exported as expected, not the IDs. With your patch I get the IDs, per my earlier notes. |
Thanks @lcdservices I can see the 'right' fix now - it will simplify a lot of stuff it I do that I think |
0906390
to
1ab4a9a
Compare
@lcdservices I think this is the correct fix - ie. rip out all the hacks & instead define the metadata correctly in the first place. It's now working for me. Note that it now exports 'phone type id 'and 'phone type' ditto for Im Provider. This is consistent with what happens with pseudoconstants off contribution search (and some other fields) and you'll see that both fields appear in search builder after this. It's kinda too much information but we already have so much too much I think it's OK. I'm expecting a few test fails but I'll fix those up. If we can resolve this & #12579 then the export code maintainability will be hugely improved & we can tackle the bugs without causing more chaos Note that testing this might require cache clearing - I'm testing under Redis which was a bit tricky on that front |
I'm still seeing the IDs instead of the provider labels when exporting using both primary fields and select fields. |
1ab4a9a
to
9d90915
Compare
9d90915
to
936775b
Compare
Closing for now - will come back to this once related ones merged |
Overview
A lot of the difficult code in the export class is around handling im fields and phone type fields - however, I couldn't find any instance where is was less broken with this handling in
Before
Some bugs exist in im & phone handling
After
Bugs not changed. Less code
Technical Details
@lcdservices this is kind of a challenge to you to find something that is broken by removing these lines. I'm currently seeing a few oddities that I don't have well documented but none seem to be worse without this code
Comments
If you find something I'll add a unit test :-)