Skip to content

[New routing] Shop product review crud#18292

Merged
NoResponseMate merged 2 commits intoSylius:new-routingfrom
loic425:shop-product-review-crud
Feb 9, 2026
Merged

[New routing] Shop product review crud#18292
NoResponseMate merged 2 commits intoSylius:new-routingfrom
loic425:shop-product-review-crud

Conversation

@loic425
Copy link
Copy Markdown
Member

@loic425 loic425 commented Aug 1, 2025

Q A
Branch? new-routing
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Related tickets partially #18212
License MIT

@loic425 loic425 requested review from a team as code owners August 1, 2025 07:09
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Aug 1, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Aug 1, 2025

❌ Preview Environment deleted from Bunnyshell

Available commands:

  • 🚀 /bns:deploy to redeploy the environment

@loic425 loic425 force-pushed the shop-product-review-crud branch from 4a020fa to c8d1e5d Compare August 1, 2025 07:19
@loic425 loic425 force-pushed the shop-product-review-crud branch 2 times, most recently from 6d50a61 to 3becbd9 Compare August 1, 2025 09:26
$factory = $container->findDefinition('sylius.factory.' . $subject . '_review');

$reviewFactoryDefinition = new Definition(ReviewFactory::class, [$factory]);
$reviewFactoryDefinition->addTag('sylius.resource_factory');
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

use Sylius\Resource\Metadata\ResourceMetadata;

return (new ResourceMetadata())
->withRoutePrefix('/{_locale}/products/{slug}')
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just out of curiosity, how do I remove {_locale} part from the url as end-user? It's a common case, that have a docs entry on how-to-do for previous routing.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

We'll handle this with the metadata mutators.
Sylius/SyliusResourceBundle#1055

@loic425 loic425 force-pushed the shop-product-review-crud branch from 3becbd9 to 6bc1b57 Compare August 27, 2025 12:23
@loic425 loic425 force-pushed the new-routing branch 2 times, most recently from fde6308 to 179d7ea Compare January 14, 2026 07:35
@loic425 loic425 force-pushed the shop-product-review-crud branch from 6bc1b57 to a45ff30 Compare February 4, 2026 10:45
@probot-autolabeler probot-autolabeler bot added the Shop ShopBundle related issues and PRs. label Feb 4, 2026
@loic425 loic425 marked this pull request as draft February 4, 2026 11:03
@loic425 loic425 force-pushed the shop-product-review-crud branch 2 times, most recently from 6073ebb to c87c829 Compare February 4, 2026 13:29
@loic425 loic425 force-pushed the shop-product-review-crud branch from 623588a to dbf666e Compare February 9, 2026 08:19
@NoResponseMate NoResponseMate merged commit 933413b into Sylius:new-routing Feb 9, 2026
30 of 36 checks passed
@loic425 loic425 deleted the shop-product-review-crud branch February 9, 2026 10:02
NoResponseMate added a commit that referenced this pull request Feb 10, 2026
| Q               | A
|-----------------|-----
| Branch?         | new-routing
| Bug fix?        | no
| New feature?    | yes
| BC breaks?      | no
| Deprecations?   | no
| Related tickets | partially #18212
| License         | MIT


<!--
 - Bug fixes must be submitted against the 1.14 or 2.1 branch
 - Features and deprecations must be submitted against the 2.2 branch
 - Make sure that the correct base branch is set

To be sure you are not breaking any Backward Compatibilities, check the
documentation:

https://docs.sylius.com/en/latest/book/organization/backward-compatibility-promise.html
-->

Based on #18292
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Shop ShopBundle related issues and PRs.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants