Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Remove deprecated ReST API with dependencies #780

Merged
merged 6 commits into from
Sep 25, 2021

Conversation

wbloszyk
Copy link
Member

@wbloszyk wbloszyk commented Sep 23, 2021

Subject

Remove ReST API with dependencies and update routing with tests.
Remove DatagridBundle with replace Pager by custom Pager (to allow use news without AdminBundle)

I am targeting this branch, because this should be done in unstable branch.

Signed-off-by: Wojciech Błoszyk <wbloszyk@gmail.com>
Signed-off-by: Wojciech Błoszyk <wbloszyk@gmail.com>
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.

You should try to remove datagrid bundle too.

@wbloszyk
Copy link
Member Author

You should try to remove datagrid bundle too.

I think about it too. In NewsBundle we use pagination in frontend. We can remove datagrid bundle in favor of KnpPaginationBundle. I will wait with it for now.

@VincentLanglet
Copy link
Member

You should try to remove datagrid bundle too.

I think about it too. In NewsBundle we use pagination in frontend. We can remove datagrid bundle in favor of KnpPaginationBundle. I will wait with it for now.

The DatagridBundle pagination was supposed to be only used for API.

For frontend, there is already a Pager/Datagrid class in the AdminBundle (and his persistence bundle), made for this.

Signed-off-by: Wojciech Błoszyk <wbloszyk@gmail.com>
Signed-off-by: Wojciech Błoszyk <wbloszyk@gmail.com>
@wbloszyk wbloszyk requested review from VincentLanglet and a team September 25, 2021 10:47
@wbloszyk
Copy link
Member Author

Ready to review.
PHPStan and Psalm will added after merge #779 to 3.x and merge it to 4.x.

Signed-off-by: Wojciech Błoszyk <wbloszyk@gmail.com>
src/Action/ViewPostAction.php Outdated Show resolved Hide resolved
src/Pagination/BasePaginator.php Outdated Show resolved Hide resolved
Signed-off-by: Wojciech Błoszyk <wbloszyk@gmail.com>
@wbloszyk wbloszyk requested review from core23 and a team September 25, 2021 14:07
@VincentLanglet VincentLanglet merged commit fbf6ee7 into sonata-project:4.x Sep 25, 2021
@VincentLanglet
Copy link
Member

Thanks

@wbloszyk wbloszyk deleted the remove_rest_api branch September 25, 2021 14:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants