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

Fix - Use operation name by default for the route name #992

Draft
wants to merge 1 commit into
base: 1.12
Choose a base branch
from

Conversation

loic425
Copy link
Member

@loic425 loic425 commented Feb 27, 2025

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets
License MIT

When using an HttpOperation, the name of the operation is used to store the route name. (a CLI operation which does not exist yet could use the name for the command name, that's why the "name" is kind generic).

On OperationRouteNameFactory, it builds the route name based on other properties even if the name is already defined.

We need that fix here
https://github.com/Sylius/Sylius/pull/17695/files#r1971186393 for this route https://github.com/Sylius/Sylius/blob/2.1/src/Sylius/Bundle/AdminBundle/Resources/config/routing/inventory.yml

  • Fix it
  • Document it (needs a separated PR on Sylius stack)

⚠️ There's also a route name property, I need to investigate.

@loic425 loic425 changed the base branch from 1.13 to 1.12 February 27, 2025 09:51
@loic425 loic425 closed this Feb 27, 2025
@loic425 loic425 reopened this Feb 27, 2025
@loic425 loic425 force-pushed the fix/use-operation-name-when-specified branch from 6285417 to 75038dc Compare February 27, 2025 10:29
@loic425 loic425 marked this pull request as draft February 27, 2025 10:49
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.

1 participant