-
-
Notifications
You must be signed in to change notification settings - Fork 3k
DPMMA-3058 Add configuration option to limit maximum Contacts export #14691
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-3058 Add configuration option to limit maximum Contacts export #14691
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 7.x #14691 +/- ##
=========================================
Coverage 66.25% 66.26%
- Complexity 35158 35160 +2
=========================================
Files 2315 2315
Lines 141609 141640 +31
=========================================
+ Hits 93829 93860 +31
Misses 47780 47780
🚀 New features to boost your workflow:
|
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.
Verified that the default value is set to 0 (no limit). Then I changed the limit to 2, attempted to export 4 contacts and it went through. There was no message to restrict or warn that I could only export a maximum of 2 contacts at once.
https://www.loom.com/share/47a80fb873994f1692ff5d34a76eebaf?sid=3cc3b358-d362-452d-9395-77b9b29b7a08
39c76b7
to
1f36e7f
Compare
@imaabasiee thanks for your comment. I've changed the behavior to prevent limiting the import rows without notifying the user. Now, the export is blocked, and an alert is displayed to inform the user. |
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.
Works as expected now. Well done @patrykgruszka
https://www.loom.com/share/3161c15a6dfe4a77a44637d29a867b41?sid=9b305318-9499-46f1-9227-aa3b62f31d5e
What is the reason for this feature? |
Yes, when you have large database, like > 300k contacts, then you may want to limit your exports because of:
|
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.
Looks good!
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.
Thanks for the changes – looks good to me and I approve! 👍
Description
This feature introduces a new configuration option that allows users to set a limit on the maximum number of contacts that can be exported at once. By default, the limit is set to 0, which disables the restriction to maintain backward compatibility.
📋 Steps to test this PR: