[New routing] Admin orders crud#18247
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 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:
|
d9a1257 to
e007dc5
Compare
| $transition = $operation->getStateMachineTransition() ?? null; | ||
| $graph = $operation->getStateMachineGraph() ?? null; | ||
|
|
||
| Assert::notNull($transition, sprintf('No State machine transition was found on operation "%s".', $operation->getName() ?? '')); |
There was a problem hiding this comment.
operation name getter is nullable but should be defined here.
e007dc5 to
8fea4e4
Compare
On this ResourceMetadataCollectionFactory, a state machine processor is used to apply the transition. This one works, but it uses a fixed state machine component. On state machine abstraction package, it's specified on a specific graph.
So I've created a new
ApplyStateMachineTransitionProcessorin the core that will be used for state machine transitions and will use your StateMachineInterface. It's closed to the existing one on Resource side (https://github.com/Sylius/SyliusResourceBundle/blob/1.14/src/Component/src/Symfony/Workflow/OperationStateMachine.php)