<commit_before>datagrid:
    email-notification-grid:
        options:
            entityHint: transactional email
        source:
            acl_resource: oro_notification_emailnotification_view
            type: orm
            query:
                select:
                    - e
                    - event.name as eventName
                    - recipientList.owner as ownerRecipient
                    - recipientList.email as emailRecipient
                    - template.name as templateName
                from:
                    - { table: OroNotificationBundle:EmailNotification, alias: e }
                join:
                    left:
                        - { join: e.event, alias: event }
                        - { join: e.template, alias: template }
                        - { join: e.recipientList, alias: recipientList }
                        - { join: recipientList.users, alias: recipientUsersList }
                        - { join: recipientList.groups, alias: recipientGroupsList }

        columns:
            entityName:
                label: oro.notification.datagrid.entity_name
                data_name: entityName
                type: twig
                template: OroNotificationBundle:EmailNotification:Datagrid/Property/entityName.html.twig
                frontend_type: html
                choices: @oro_notification.event_listener.email_notification_service->getEntityNameChoices

            eventName:
                type: translateable
                label: oro.notification.datagrid.event_name
                choices: @oro_notification.event_listener.email_notification_service->getEventNameChoices

            templateName:
                label: oro.notification.datagrid.template

            recipientUsersList:
                type: twig
                template: OroNotificationBundle:EmailNotification:Datagrid/Property/recipientList.html.twig
                label: oro.notification.datagrid.recipient.user
                frontend_type: html

            recipientGroupsList:
                type: twig
                label: oro.notification.datagrid.recipient.group
                template: OroNotificationBundle:EmailNotification:Datagrid/Property/recipientList.html.twig
                choices: @oro_notification.event_listener.email_notification_service->getRecipientGroupsChoices
                frontend_type: html

            emailRecipient:
                label: oro.notification.datagrid.recipient.custom_email
                data_name: recipientList.email
                frontend_type: string

            ownerRecipient:
                label: oro.notification.datagrid.recipient.owner
                data_name: recipientList.owner
                frontend_type: boolean

        properties:
            update_link:
                type: url
                route: oro_notification_emailnotification_update
                params:
                    - id
            delete_link:
                type: url
                route: oro_api_delete_emailnotication<commit_msg>BAP-1835: Change all grids - fix email notification grid<commit_after>datagrid:
    email-notification-grid:
        options:
            entityHint: transactional email
        source:
            acl_resource: oro_notification_emailnotification_view
            type: orm
            query:
                select:
                    - e
                    - event.name as eventName
                    - recipientList.owner as ownerRecipient
                    - recipientList.email as emailRecipient
                    - template.name as templateName
                from:
                    - { table: OroNotificationBundle:EmailNotification, alias: e }
                join:
                    left:
                        - { join: e.event, alias: event }
                        - { join: e.template, alias: template }
                        - { join: e.recipientList, alias: recipientList }
                        - { join: recipientList.users, alias: recipientUsersList }
                        - { join: recipientList.groups, alias: recipientGroupsList }

        columns:
            entityName:
                label: oro.notification.datagrid.entity_name
                data_name: entityName
                type: twig
                template: OroNotificationBundle:EmailNotification:Datagrid/Property/entityName.html.twig
                frontend_type: html
                choices: @oro_notification.event_listener.email_notification_service->getEntityNameChoices

            eventName:
                type: translateable
                label: oro.notification.datagrid.event_name
                choices: @oro_notification.event_listener.email_notification_service->getEventNameChoices

            templateName:
                label: oro.notification.datagrid.template

            recipientUsersList:
                type: twig
                template: OroNotificationBundle:EmailNotification:Datagrid/Property/recipientUsersList.html.twig
                label: oro.notification.datagrid.recipient.user
                frontend_type: html

            recipientGroupsList:
                type: twig
                label: oro.notification.datagrid.recipient.group
                template: OroNotificationBundle:EmailNotification:Datagrid/Property/recipientGroupsList.html.twig
                choices: @oro_notification.event_listener.email_notification_service->getRecipientGroupsChoices
                frontend_type: html

            emailRecipient:
                label: oro.notification.datagrid.recipient.custom_email
                data_name: recipientList.email
                frontend_type: string

            ownerRecipient:
                label: oro.notification.datagrid.recipient.owner
                data_name: recipientList.owner
                frontend_type: boolean

        properties:
            update_link:
                type: url
                route: oro_notification_emailnotification_update
                params:
                    - id
            delete_link:
                type: url
                route: oro_api_delete_emailnotication
{'fraction_non_alphanumeric': 0.05544778532169415, 'fraction_numerical': 0.0006466214031684449, 'mean_word_length': 1.511977263499797, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3955425', 'n_tokens_mistral': 1519, 'n_tokens_neox': 1385, 'n_words': 254}