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

SearchFilter: Allow strategy on associations #1

Open
wants to merge 368 commits into
base: master
Choose a base branch
from

Conversation

jpierront
Copy link
Owner

Also makes it easier to add new strategies to classes inheriting from SearchFilter class

@jpierront
Copy link
Owner Author

I'm not sure of what I did for the MongoDbOdm part ;-)

@jpierront jpierront force-pushed the jpierront-patch-1 branch 10 times, most recently from c407e20 to d6cad23 Compare May 2, 2020 19:37
soyuka and others added 18 commits September 13, 2020 15:06
* Fix mising @type in output DTO collections

* Fix tests

* Add a new test

* Add tests
* Add possibility to hydrate input before denormalize

* Fix @soyuka review

* Add test

* Remove useless set context

* Add deep object to populate to avoid missing data

* change name to inputClass to be more explicit

* Fix test

* Rename PreHydrateInput to DataTransformerInitializer

* Add behat test data transformer initializer

* fix tests

Co-authored-by: Alexandre Vinet <contact@alexandrevinet.fr>
* Add files to test client

* Respect method signature in favor of interface

* Add missing default

* Add request parameters to client.

Co-authored-by: Ashura <CoalaJoe@users.noreply.github.com>
* Add messenger=persist

* Add unit tests

* Add functional tests

* Add test with Mongo

* Add dunglas review

* Rename LoopDataPersisterInterface in HandOverDataPersisterInterface

* Inject DataPersister in Messenger DataPersister

* Update unit tests
Argument would always be ignored as null coalescing operator has a higher precedence than ternary operator
…e-listener-quality

fix: simplify PurgeHttpCacheListener
Fix expression language argument for PublishMercureUpdatesListener
* 2.5:
  fix: simplify PurgeHttpCacheListener
  Fix expression language argument for PublishMercureUpdatesListener
  Backport pull request api-platform#3486 (api-platform#3723)
  Fix mising @type in output DTO collections (api-platform#3699)
alanpoulain and others added 26 commits February 12, 2021 16:55
…platform#4052)

* Fix api-platform#4037 allow POST operations without identifiers

* Better

* remove line

* Update features/main/overridden_operation.feature

Co-authored-by: Alan Poulain <contact@alanpoulain.eu>

* fix review

* Fix mongodb

Co-authored-by: Alan Poulain <contact@alanpoulain.eu>
…ier handling (api-platform#4042)

* Issue api-platform#4041 bugfix: FilterEagerLoadingExtension foreign identifier handling

* test: add a unit test and use a foreign id for DummyCar

* chore: add changelog entry

Co-authored-by: Alan Poulain <contact@alanpoulain.eu>
* fix: deprecations in Symfony 5.3

* fix more deprecations

* fix remaining deprecs

* fix phpstan

* fix phpstan

* fix phpstan
* Fix deprecations

* Do not load the class
After disabling itemOperation `GET`

```
    itemOperations: [
        'get' => [
            'controller' => ApiPlatform\Core\Action\NotFoundAction::class,
            'read' => false,
            'output' => false,
        ],
    ]
```

there is not nice way to remove that path from OpenApi docs. Now to do
that you have to write:

```
$pathItem = $openApi->getPaths()->getPath('/resource/{id}');
$openApi->getPaths()->addPath(
    '/resource/{id}',
    new Model\PathItem(
        $pathItem->getRef(),
        $pathItem->getSummary(),
        $pathItem->getDescription(),
        null,
        $pathItem->getPut(),
        $pathItem->getPost(),
        $pathItem->getDelete(),
        $pathItem->getOptions(),
        $pathItem->getHead(),
        $pathItem->getPatch(),
        $pathItem->getTrace(),
        $pathItem->getServers(),
        $pathItem->getParameters(),
    )
);
```

After change it will be:

```
$pathItem = $openApi->getPaths()->getPath('/resource/{id}');
$openApi->getPaths()->addPath(
    '/resource/{id}',
    $pathItem->withGet(null)
);
```
Hello, i just add the return type for method `getPaths`

Co-authored-by: Abdouni Abdelkarim <abdounikarim@gmail.com>
…asier to add new strategies to classes inheriting from SearchFilter class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet