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

Add List filter configuration #632

Merged
merged 1 commit into from
Oct 28, 2022

Conversation

wachterjohannes
Copy link
Member

@wachterjohannes wachterjohannes commented Oct 25, 2022

Q A
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Fixed tickets fixes #633
Related issues/PRs none
License MIT

What's in this PR?

This PR add the filter configuration for article-lists.

@wachterjohannes wachterjohannes force-pushed the list-filter branch 2 times, most recently from dec79ab to 4218cb1 Compare October 27, 2022 05:43
@wachterjohannes
Copy link
Member Author

@alexander-schranz fixed

* pageId?: string,
* publishedState?: string,
* } $filter */
$filter = $request->get('filter');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$filter = $request->get('filter');
$filter = $request->query->get('filter');

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$request->query->get('filter') cannot return an array 🙈

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

$request->query->all('filter')

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like does not exist on 4.4 so:

$request->query->all()['filter'] ?? []

that is similar to the request get

@wachterjohannes
Copy link
Member Author

@alexander-schranz fixed

@alexander-schranz
Copy link
Member

alexander-schranz commented Oct 27, 2022

Should we target this as a new feature (2.5 not released yet) or as a bugfix (2.4)? /cc @chirimoya

@wachterjohannes
Copy link
Member Author

@alexander-schranz is a bugfix for me 😂

@chirimoya
Copy link
Member

@alexander-schranz alexander-schranz added the Feature New functionality not yet included label Oct 28, 2022
@alexander-schranz alexander-schranz merged commit 5c258a8 into sulu:2.4 Oct 28, 2022
@wachterjohannes wachterjohannes deleted the list-filter branch October 28, 2022 08:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New functionality not yet included
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants