Skip to content

Conversation

antograssiot
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

Similar to #1333 but for the property filter. Doc PR will follow in the week for both PR

Copy link
Member

@soyuka soyuka left a comment

Choose a reason for hiding this comment

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

   1) tests/Serializer/Filter/PropertyFilterTest.php
      ---------- begin diff ----------
--- Original
+++ New
@@ @@
-        $propertyFilter = new PropertyFilter('properties', false, ['foo', 'group' =>['baz' => ['qux']]]);
+        $propertyFilter = new PropertyFilter('properties', false, ['foo', 'group' => ['baz' => ['qux']]]);
         $propertyFilter->apply($request, true, [], $context);
-        $this->assertEquals(['attributes' => ['qux', 'foo',  'group' =>['baz' => ['qux']]]], $context);
+        $this->assertEquals(['attributes' => ['qux', 'foo',  'group' => ['baz' => ['qux']]]], $context);

@antograssiot antograssiot force-pushed the property-filter-whitelist branch from 5799407 to 82ea3b7 Compare August 29, 2017 07:42
@antograssiot
Copy link
Contributor Author

@soyuka the CS issue should be fixed

@Simperfit Simperfit merged commit 2fd1c35 into api-platform:master Aug 29, 2017
@Simperfit
Copy link
Contributor

Thanks @antograssiot

@antograssiot antograssiot deleted the property-filter-whitelist branch August 29, 2017 21:03
hoangnd25 pushed a commit to hoangnd25/core that referenced this pull request Feb 23, 2018
…r-whitelist

[2.1] Allow to specify a whitelist of properties for Property Filter
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