Skip to content

[PropertyInfo] remove deprecations, mark TypeInfo as experimental #54789

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

Merged
merged 1 commit into from
May 2, 2024

Conversation

soyuka
Copy link
Contributor

@soyuka soyuka commented Apr 30, 2024

Q A
Branch? 7.1
Bug fix? no
New feature? no
Deprecations? no
License MIT

Follows #54788 as we can introduce these deprecation back when we feel the component is stable enough. Software like API Platform that heavily relies on the deprecated functionalities will have a really hard time migrating, we don't want to work more then needed and need to know we won't have to do the same work again in the next years.
This also suggest that PropertyInfo can work with or without the new TypeInfo component while it's being experimental.

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

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

Please check the CHANGELOG of the component and the root UPGRADE file, they should have mentions about these also

Copy link
Member

@dunglas dunglas left a comment

Choose a reason for hiding this comment

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

+1 when the CHANGELOG and UPGRADE files will be up to date.

fabpot added a commit that referenced this pull request May 2, 2024
This PR was merged into the 7.1 branch.

Discussion
----------

[TypeInfo] mark classes as experimental

| Q             | A
| ------------- | ---
| Branch?       | 7.1
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| License       | MIT

This is following a discussion on slack with authors of the component, I feel that the TypeInfo component should have an experimental phase as we need to prove the component's functionality on software that is built on top of type information extraction. Here's a non-exhaustive list of software using the PropertyInfo Type class (thanks to `@mtarld`):

- api-platform/core
- nelmio/api-doc-bundle
- typo3/cms-extbase
- typo3/cms
- sonata-project/page-bundle
- jolicode/automapper
- symfony/ux-live-component

These softwares should try their best in testing the new TypeInfo component and report back misfunctionalities and/or DX improvements before we can consider this non-experimental. See also #54789

Commits
-------

28b6495 [TypeInfo] mark classes as experimental
@fabpot fabpot force-pushed the property-info-deprecation branch from ebd9d07 to 08ac161 Compare May 2, 2024 08:34
@fabpot
Copy link
Member

fabpot commented May 2, 2024

I've done the changes in CHANGELOG and UPGRADE files.

@fabpot
Copy link
Member

fabpot commented May 2, 2024

Thank you @soyuka.

@fabpot fabpot merged commit 9a86584 into symfony:7.1 May 2, 2024
4 of 10 checks passed
@soyuka
Copy link
Contributor Author

soyuka commented May 2, 2024

Thanks @fabpot for the changelog

xabbuh added a commit that referenced this pull request May 15, 2024
…acts (xabbuh)

This PR was merged into the 7.1 branch.

Discussion
----------

[PropertyInfo] remove no longer needed deprecation contracts

| Q             | A
| ------------- | ---
| Branch?       | 7.1
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Issues        |
| License       | MIT

the dependency was introduced in #53160, but is no longer required since we reverted the deprecations in #54789

Commits
-------

18296cd remove no longer needed deprecation contracts
@derrabus
Copy link
Member

Follow-up: #56848

derrabus added a commit that referenced this pull request May 21, 2024
… (derrabus)

This PR was merged into the 7.1 branch.

Discussion
----------

[DoctrineBridge] Undeprecate DoctrineExtractor::getTypes()

| Q             | A
| ------------- | ---
| Branch?       | 7.1
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Issues        | N/A
| License       | MIT

The deprecation of the `PropertyTypeExtractorInterface::getTypes()` method was taken back in #54789. As long as the method exists on the interface, we cannot remove any implementations. Thus, I'm undeprecating the implementation in `DoctrineExtractor` as well.

Commits
-------

eb319a2 Undeprecate DoctrineExtractor::getTypes()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants