[New routing] Admin administrators crud#18231
[New routing] Admin administrators crud#18231NoResponseMate merged 1 commit intoSylius:new-routingfrom
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughThis update introduces a backward compatibility (BC) routing layer with per-route enablement in the Sylius CoreBundle, adds new resource metadata configurations for admin user and product entities, and updates routing and service definitions to support these changes. Additionally, dependency constraints for "sylius/resource" and "sylius/resource-bundle" are bumped to "^1.14@dev" across multiple components and bundles. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant SymfonyRouter
participant SyliusRequestContext
participant Config
User->>SymfonyRouter: Requests admin route (e.g., admin_product)
SymfonyRouter->>SyliusRequestContext: Check if BC layer is enabled for route
SyliusRequestContext->>Config: Lookup global and per-route BC layer settings
Config-->>SyliusRequestContext: Return enabled/disabled flag
SyliusRequestContext-->>SymfonyRouter: Return BC layer status
SymfonyRouter-->>User: Route accordingly (BC or new route)
Suggested labels
Suggested reviewers
Poem
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
❌ Preview Environment deleted from BunnyshellAvailable commands:
|
config/packages/_sylius.yaml
Outdated
| bc_layer: | ||
| enabled: true | ||
| routes: | ||
| admin_administrators: |
There was a problem hiding this comment.
| admin_administrators: | |
| admin_admin_user: |
WDYT? It looks a bit weird, but it's the name used in configs and is in line with the routes themselves, sylius_admin_admin_user_create etc.
There was a problem hiding this comment.
Yes, I was mitigated. The Behat suite is named ui_managing_administrators and the Behat tag too.
8f5be62 to
a7f54b5
Compare
a7f54b5 to
71f5287
Compare
Summary by CodeRabbit
New Features
Bug Fixes
Style
Chores
Tests