-
-
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
[REF] Code cleanup on location entities for the Contact Summary screen #22967
Conversation
(Standard links)
|
@demeritcowboy Can I get you to check this one (I just rebased to see if it passes first) - it prevents a really annoying set of notices in smarty secure |
1 similar comment
@demeritcowboy Can I get you to check this one (I just rebased to see if it passes first) - it prevents a really annoying set of notices in smarty secure |
ug - it failed - on your new test I think - yay testContactSummary |
This builds on civicrm#22966 to improve loading of location entities. It addresses 2 problems 1) the code is really confusing - handling the loading in 2 places 2) not all keys are loaded - resulting in enotices at the tpl layer. Note that address still seems kinda tricky so I haven't worked through that in this PR.
There is a lot going on in here. This might take a while. |
@demeritcowboy yeah - hopefully it's not as crazy as it looks - but I did take a while to figure out what the original code was doing (there is a bunch more of the original stuff that should be removable after this with a bit more work) |
jenkins retest this please |
Even though it's not a big PR in terms of lines of code, there was a lot to look at here and I had to do it in pieces over a couple days. I'm not sure if there's a way to make that easier for similar PRs, but anyway see comments below.
|
Thanks @demeritcowboy - I appreciate you following me into this rather nasty code! |
Overview
Builds on #22966 & cleans up location fetching with a view to reducing complexity & notices
Before
2 problems
1) the code is really confusing - handling the loading in 2 places
2) not all keys are loaded - resulting in enotices at the tpl layer.
After
most - not yet address - location entities loaded in one function with mapping done in the same function, all fields loaded so less notices
Technical Details
Comments