Skip to content
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

Disable the validation of segment filter form #965

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vtsykun
Copy link
Contributor

@vtsykun vtsykun commented Oct 21, 2019

Hi team,
All oro filters (like datetime, string and other) uses symfony forms for transforming filter data from user input input data. All default entity validator will be trigger, if filter form data contains the entity. Oro segments are also was implemented via a filter model. So when we use segments, all validators for segment entity will be trigger again and again.
https://github.com/oroinc/platform/blob/master/src/Oro/Bundle/SegmentBundle/Resources/config/validation.yml#L1-L8
It leads to duplicate sql queries and performance degradation
Selection_999(604)

Fixed #925

@anyt
Copy link
Contributor

anyt commented Oct 22, 2019

Hi Uladzimir,

Thank you for the interesting idea, we'll investigate this.
Internal ticket id #BAP-19338

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

Querybuilder / Segment SQL Optimisation
3 participants