-
-
Notifications
You must be signed in to change notification settings - Fork 3k
DPMMA-3039 Company lookup limit #14461
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
DPMMA-3039 Company lookup limit #14461
Conversation
fix: [DPMMA-3039] change default limit and fix phpstan fix: [DPMMA-3039] update company list limit fix: [DPMMA-3039] refactor EntityLookupChoiceLoader::fetchChoices fix: [DPMMA-3039] test testMax100CompaniesShouldBeFetchedOnContactEditAction
I suppose we use similar PR #13869, probably you can take look |
@kuzmany yes, it changes similar methods but fixes a different problem. I can review yours when it's ready. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 5.2 #14461 +/- ##
============================================
+ Coverage 63.45% 63.48% +0.03%
- Complexity 34636 34638 +2
============================================
Files 2273 2273
Lines 103603 103615 +12
============================================
+ Hits 65741 65780 +39
+ Misses 37862 37835 -27
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code changes look good to me. I have tested the PR, and it works as expected.
document.querySelectorAll('.active-result').length
100
Description
This PR fixes the issue of slow loading and browser hangs in the contact edit view when dealing with a large number of companies in Mautic 5.2. Changes include the same limit for initially loaded companies as it was before 5.2 without reverting the changes made in #13578
Steps to Test: