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

Use AsResource attribute instead of reserved word Resource #757

Conversation

loic425
Copy link
Member

@loic425 loic425 commented Oct 20, 2023

Q A
Bug fix? could be one day
New feature? no
BC breaks? yes (but only on alpha version)
Deprecations? no
Related tickets
License MIT

resource is a reserved word as Soyuka warned me on API CON.
So I think it will be better to use AsResource attribute instead.

if needed I can add an old Resource attribute with class_alias if we do not want to break users using alpha version.
Or maybe just add a note on the UPGRADE.md

I use a ResourceMetadata (old Resource one) object cause I don't want to make a new AsResource() call which is uggly.

@loic425 loic425 requested a review from a team as a code owner October 20, 2023 09:27
@loic425 loic425 closed this Oct 20, 2023
@loic425 loic425 force-pushed the feature/use-as-resource-attribute-instead-of-resource branch from cc994cf to 3449806 Compare October 20, 2023 09:38
@loic425 loic425 changed the title Feature/use as resource attribute instead of resource Use AsResource attribute instead of reserved word Resource Oct 20, 2023
@loic425 loic425 deleted the feature/use-as-resource-attribute-instead-of-resource branch October 20, 2023 09:39
@loic425 loic425 restored the feature/use-as-resource-attribute-instead-of-resource branch October 20, 2023 09:39
@loic425 loic425 deleted the feature/use-as-resource-attribute-instead-of-resource branch October 20, 2023 09:39
@loic425 loic425 restored the feature/use-as-resource-attribute-instead-of-resource branch October 20, 2023 09:39
@loic425 loic425 deleted the feature/use-as-resource-attribute-instead-of-resource branch October 20, 2023 09:40
@loic425 loic425 restored the feature/use-as-resource-attribute-instead-of-resource branch October 20, 2023 09:40
@loic425 loic425 reopened this Oct 20, 2023
@lchrusciel lchrusciel merged commit b0646fe into Sylius:1.11 Oct 23, 2023
60 checks passed
@lchrusciel
Copy link
Member

Thank you, @loic425!

@loic425 loic425 deleted the feature/use-as-resource-attribute-instead-of-resource branch October 23, 2023 07:21
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.

None yet

2 participants