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

Improve the RangeFilter DQL query in case the "between" values are equals #3488

Merged

Conversation

epourail
Copy link
Contributor

@epourail epourail commented Apr 15, 2020

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tickets -
License MIT
Doc PR -

Improve the behavior of the RangeFilter filter in case the values of the between operator are equals
In such case, the DQL query is defined with the equals operation

@epourail epourail changed the title Improve the RangeFilter DQL query in case the values are equals Improve the RangeFilter DQL query in case the "between" values are equals Apr 15, 2020
@soyuka
Copy link
Member

soyuka commented Apr 16, 2020

I consider this as a bug fix, could you please target 2.5? Thanks!

@epourail epourail force-pushed the feature-improve-between-range-filter branch from 1dae1b2 to d2afb82 Compare April 16, 2020 13:14
@epourail epourail changed the base branch from master to 2.5 April 16, 2020 13:17
@epourail
Copy link
Contributor Author

@soyuka Done (updated to target 2.5)

@bendavies
Copy link
Contributor

BETWEEN is inclusive of boundaries so what does this fix?

@epourail
Copy link
Contributor Author

It will just improve the generated query syntax to use a single-comparison operation instead of a two-ways comparison (greater than and less than).

@soyuka
Copy link
Member

soyuka commented Apr 16, 2020

looks like php-cs-fixer needs to be run, make sure to rebase against the latest 2.5 though :)

@epourail epourail force-pushed the feature-improve-between-range-filter branch from ecaa490 to ceaa59d Compare April 16, 2020 17:26
@soyuka soyuka merged commit d235fe5 into api-platform:2.5 Apr 16, 2020
@soyuka
Copy link
Member

soyuka commented Apr 16, 2020

thanks @epourail

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

Successfully merging this pull request may close these issues.

4 participants