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

Deprecate DatagridManagerInterface #6458

Conversation

VincentLanglet
Copy link
Member

@VincentLanglet VincentLanglet commented Oct 5, 2020

Subject

Related to sonata-project/SonataDoctrineORMAdminBundle#1144 (comment)

I am targeting this branch, because BC.

Imho, this does not need to be modelManager-dependant.
WDYT ?

Changelog

### Deprecated
- `DatagridManagerInterface` with no replacement

@franmomu
Copy link
Member

franmomu commented Oct 8, 2020

Yeah, as I said, I don't think this should be in ModelManagerInterface.

@SonataCI
Copy link
Collaborator

Could you please rebase your PR and fix merge conflicts?

@VincentLanglet VincentLanglet force-pushed the deprecateDatagridManagerInterface branch from d208a23 to 6864e7a Compare October 19, 2020 21:37
@VincentLanglet VincentLanglet marked this pull request as ready for review October 19, 2020 21:37
@VincentLanglet VincentLanglet force-pushed the deprecateDatagridManagerInterface branch from 6864e7a to 19aa28a Compare October 19, 2020 21:39
@VincentLanglet
Copy link
Member Author

This is ready to be reviewed @sonata-project/contributors :)

wbloszyk
wbloszyk previously approved these changes Oct 20, 2020
@SonataCI
Copy link
Collaborator

Could you please rebase your PR and fix merge conflicts?

UPGRADE-3.x.md Outdated Show resolved Hide resolved
src/Model/DatagridManagerInterface.php Show resolved Hide resolved
@greg0ire
Copy link
Contributor

Related to sonata-project/SonataDoctrineORMAdminBundle#1144 (comment)

Please summarize this in the commit message body.

The modelManager provided by persistence bundle will be final in next release.
Asking someone to rewrite all the method of the model manager, just to change
the default sort values or default per page options does not make sens then.
We should promote the AbstractAdmin method override, or one day implement a
service specific to this configuration.
@VincentLanglet VincentLanglet force-pushed the deprecateDatagridManagerInterface branch from 8885b94 to 4dcde56 Compare October 31, 2020 17:00
@VincentLanglet
Copy link
Member Author

Done @greg0ire @phansys

@VincentLanglet VincentLanglet merged commit 335b595 into sonata-project:3.x Oct 31, 2020
@VincentLanglet VincentLanglet deleted the deprecateDatagridManagerInterface branch October 31, 2020 17:42
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.

7 participants