Skip to content

Comments

Allow multiple order filters in entity.#2230

Merged
soyuka merged 1 commit intoapi-platform:2.3from
CvekCoding:multiple-order-filters
Nov 2, 2018
Merged

Allow multiple order filters in entity.#2230
soyuka merged 1 commit intoapi-platform:2.3from
CvekCoding:multiple-order-filters

Conversation

@CvekCoding
Copy link
Contributor

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets
License MIT
Doc PR

This improvement allows to have several orderFilters in one entity.
I faced a problem when I created my own custom Order Filter. As a result in the same class I use 2 different order filters: default and my custom (which extends default). But Api-Platform can't handle several order filters - only last one wins. This commit fixes this issue.

@soyuka
Copy link
Member

soyuka commented Oct 3, 2018

👍 missing some cs fixes though

@CvekCoding
Copy link
Contributor Author

CvekCoding commented Oct 3, 2018

@soyuka looks like I missed one space character somehow and the code is not aligned. I will deploy a fix little later.

@CvekCoding
Copy link
Contributor Author

@soyuka , please review and let me know.
Thanks.

@soyuka
Copy link
Member

soyuka commented Oct 4, 2018

Perfect thanks, we just need to change the base branch to 2.3 because it's a bug fix!

@dunglas
Copy link
Member

dunglas commented Nov 1, 2018

Could you do the rebase please @Siregacvek?

@soyuka soyuka changed the base branch from master to 2.3 November 2, 2018 08:40
@soyuka soyuka force-pushed the multiple-order-filters branch from 9ab1629 to eccc92e Compare November 2, 2018 08:42
@soyuka
Copy link
Member

soyuka commented Nov 2, 2018

I rebased.

@soyuka soyuka force-pushed the multiple-order-filters branch from eccc92e to 3e4818b Compare November 2, 2018 08:46
@soyuka soyuka merged commit dce8367 into api-platform:2.3 Nov 2, 2018
@soyuka
Copy link
Member

soyuka commented Nov 2, 2018

Thanks @Siregacvek !

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.

3 participants