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

Fix loading CategoryFilter items #567

Merged
merged 1 commit into from
Sep 4, 2020
Merged

Conversation

core23
Copy link
Member

@core23 core23 commented Aug 29, 2020

Subject

The filter was calling the wrong method. The called method does allow passing a string value as a parameter.

I am targeting this branch, because this is a bugfix.

Changelog

### Fixed
- Fix loading CategoryFilter items

@core23 core23 added the patch label Aug 29, 2020
@core23 core23 requested a review from a team August 29, 2020 16:59
@codecov-commenter
Copy link

codecov-commenter commented Aug 29, 2020

Codecov Report

Merging #567 into 3.x will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##                3.x     #567   +/-   ##
=========================================
  Coverage     60.26%   60.26%           
  Complexity      442      442           
=========================================
  Files            43       43           
  Lines          1427     1427           
=========================================
  Hits            860      860           
  Misses          567      567           
Impacted Files Coverage Δ Complexity Δ
src/Admin/Filter/CategoryFilter.php 50.00% <0.00%> (ø) 18.00 <0.00> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f913a24...699ea75. Read the comment docs.

@@ -20,7 +20,7 @@
/**
* @method PagerInterface getRootCategoriesPager(int $page = 1, int $limit = 25, array $criteria = [])
* @method PagerInterface getSubCategoriesPager(int $categoryId, int $page = 1, int $limit = 25, array $criteria = [])
* @method CategoryInterface[] getRootCategoriesForContext(ContextInterface|string|null $context)
* @method CategoryInterface[] getRootCategoriesForContext(ContextInterface|null $context)
Copy link
Member Author

Choose a reason for hiding this comment

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

jordisala1991
jordisala1991 previously approved these changes Aug 30, 2020
VincentLanglet
VincentLanglet previously approved these changes Aug 30, 2020
Copy link
Member

@VincentLanglet VincentLanglet left a comment

Choose a reason for hiding this comment

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

Should we add a test about this ?

@core23 core23 force-pushed the fix-filter branch 4 times, most recently from d35f7e5 to 96a318f Compare September 4, 2020 13:07
@core23
Copy link
Member Author

core23 commented Sep 4, 2020

Should we add a test about this ?

Done

VincentLanglet
VincentLanglet previously approved these changes Sep 4, 2020
@core23 core23 merged commit f2469c0 into sonata-project:3.x Sep 4, 2020
@core23 core23 deleted the fix-filter branch September 4, 2020 16:48
@franmomu franmomu mentioned this pull request Sep 6, 2020
franmomu added a commit to franmomu/SonataClassificationBundle that referenced this pull request Sep 6, 2020
In sonata-project#567 the tests introduced throw some warnings because the
interface does not have the mocked method.
jordisala1991 pushed a commit that referenced this pull request Sep 16, 2020
In #567 the tests introduced throw some warnings because the
interface does not have the mocked method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants