sylius_grid:
    grids:
        sylius_admin_product_variant_with_catalog_promotion:
            driver:
                name: doctrine/orm
                options:
                    class: "%sylius.model.product_variant.class%"
                    repository:
                        method: createCatalogPromotionListQueryBuilder
                        arguments: ['%locale%', 'expr:notFoundOnNull(service("sylius.repository.catalog_promotion").find($id))']
            sorting:
                code: asc
            fields:
                name:
                    type: twig
                    path: .
                    label: sylius.ui.name
                    options:
                        template: "@SyliusAdmin/ProductVariant/Grid/Field/name.html.twig"
                code:
                    type: string
                    label: sylius.ui.code
                enabled:
                    type: twig
                    label: sylius.ui.enabled
                    options:
                        template: "@SyliusUi/Grid/Field/enabled.html.twig"
                inventory:
                    type: twig
                    path: .
                    label: sylius.ui.inventory
                    options:
                        template: "@SyliusAdmin/ProductVariant/Grid/Field/inventory.html.twig"
            filters:
                code:
                    type: string
                    label: sylius.ui.code
                name:
                    type: string
                    label: sylius.ui.name
                    options:
                        fields: [translation.name]
            actions:
                item:
                    show_product:
                        type: show
                        label: sylius.ui.show_product
                        options:
                            link:
                                route: sylius_admin_product_show
                                parameters:
                                    id: resource.product.id

sylius_grid:
    grids:
        sylius_admin_product_variant_with_catalog_promotion:
            driver:
                name: doctrine/orm
                options:
                    class: "%sylius.model.product_variant.class%"
                    repository:
                        method: createCatalogPromotionListQueryBuilder
                        arguments: ['%locale%', 'expr:notFoundOnNull(service("sylius.repository.catalog_promotion").find($id))']
            sorting:
                code: asc
            fields:
                name:
                    type: twig
                    path: .
                    label: sylius.ui.name
                    options:
                        template: "@SyliusAdmin/ProductVariant/Grid/Field/name.html.twig"
                code:
                    type: string
                    label: sylius.ui.code
                enabled:
                    type: twig
                    label: sylius.ui.enabled
                    options:
                        template: "@SyliusUi/Grid/Field/enabled.html.twig"
                inventory:
                    type: twig
                    path: .
                    label: sylius.ui.inventory
                    options:
                        template: "@SyliusAdmin/ProductVariant/Grid/Field/inventory.html.twig"
            filters:
                code:
                    type: string
                    label: sylius.ui.code
                name:
                    type: string
                    label: sylius.ui.name
                    options:
                        fields: [translation.name]
            actions:
                item:
                    show_product:
                        type: show
                        label: sylius.ui.show_product
                        options:
                            link:
                                route: sylius_admin_product_show
                                parameters:
                                    id: resource.product.id
                    update:
                        type: update
                        options:
                            link:
                                parameters:
                                    id: resource.id
                                    productId: resource.product.id

Add edit variant redirect action to affected variants list
[Admin][CatalogPromotion] Add edit variant redirect action to affected variants list
