diff --git a/config/sync/language/fr/views.view.commerce_licenses.yml b/config/sync/language/fr/views.view.commerce_licenses.yml deleted file mode 100644 index af329932..00000000 --- a/config/sync/language/fr/views.view.commerce_licenses.yml +++ /dev/null @@ -1,53 +0,0 @@ -label: Licences -display: - default: - display_title: Maître - display_options: - exposed_form: - options: - submit_button: Filtrer - reset_button_label: Réinitialiser - exposed_sorts_label: 'Trier par' - sort_asc_label: Asc - sort_desc_label: Desc - pager: - options: - tags: - previous: ‹‹ - next: ›› - first: '« Premier' - last: 'Dernier »' - expose: - items_per_page_label: 'Éléments par page' - items_per_page_options_all_label: '- Tout -' - offset_label: Décalage - fields: - license_id: - label: 'Identifiant (ID)' - separator: ', ' - label: - label: Libellé - type: - label: 'Type de licence' - separator: ', ' - uid: - label: Propriétaire - separator: ', ' - state: - label: État - separator: ', ' - changed: - label: 'Mis à jour' - separator: ', ' - granted: - label: Accordé(e) - separator: ', ' - operations: - label: 'Liens d''actions' - filters: - state: - expose: - label: État - title: Licences - page_1: - display_title: Page diff --git a/config/sync/migrate_plus.migration.d7_uc_roles_license.yml b/config/sync/migrate_plus.migration.d7_uc_roles_license.yml index 5714612a..597870ef 100644 --- a/config/sync/migrate_plus.migration.d7_uc_roles_license.yml +++ b/config/sync/migrate_plus.migration.d7_uc_roles_license.yml @@ -51,12 +51,7 @@ process: interval: 1 period: year expires: expiration - product_variation: - plugin: static_map - source: rid - map: - 6: 2 - 10: 7 + product_variation: product_variation_id destination: plugin: 'entity:commerce_license' destination_module: commerce_license diff --git a/config/sync/views.view.commerce_licenses.yml b/config/sync/views.view.commerce_licenses.yml deleted file mode 100644 index 570197de..00000000 --- a/config/sync/views.view.commerce_licenses.yml +++ /dev/null @@ -1,1732 +0,0 @@ -uuid: b8f7d48e-ff97-402a-9012-2fce6550b23e -langcode: en -status: true -dependencies: - config: - - user.role.adherent - - user.role.student - module: - - commerce - - commerce_license - - options - - profile - - state_machine - - user - - views_bulk_operations -_core: - default_config_hash: qDJpXJ_8FkzPY58X9u7E69YkFZTYVb-pIw1qMrHC6yk -id: commerce_licenses -label: Licenses -module: views -description: '' -tag: '' -base_table: commerce_license -base_field: license_id -display: - default: - display_plugin: default - id: default - display_title: Master - position: 0 - display_options: - access: - type: perm - options: - perm: 'access commerce_license overview' - cache: - type: tag - options: { } - query: - type: views_query - options: - disable_sql_rewrite: false - distinct: false - replica: false - query_comment: '' - query_tags: { } - exposed_form: - type: basic - options: - submit_button: Filter - reset_button: false - reset_button_label: Reset - exposed_sorts_label: 'Sort by' - expose_sort_order: true - sort_asc_label: Asc - sort_desc_label: Desc - pager: - type: full - options: - items_per_page: 50 - offset: 0 - id: 0 - total_pages: null - tags: - previous: ‹‹ - next: ›› - first: '« First' - last: 'Last »' - expose: - items_per_page: false - items_per_page_label: 'Items per page' - items_per_page_options: '5, 10, 25, 50' - items_per_page_options_all: false - items_per_page_options_all_label: '- All -' - offset: false - offset_label: Offset - quantity: 9 - style: - type: table - options: - grouping: { } - row_class: '' - default_row_class: true - override: true - sticky: true - caption: '' - summary: '' - description: '' - columns: - views_bulk_operations_bulk_form: views_bulk_operations_bulk_form - license_id: license_id - uuid: uuid - uid: uid - address_given_name: address_given_name - address_family_name: view_user - view_user: view_user - mail: view_user - label: view_user - type: view_user - state: view_user - expiration_type__target_plugin_id: view_user - operations: view_user - expires: expires - changed: changed - renewed: renewed - changed_1: changed_1 - granted: granted - product_variation: product_variation - roles_target_id: roles_target_id - info: - views_bulk_operations_bulk_form: - align: '' - separator: '' - empty_column: false - responsive: '' - license_id: - sortable: true - default_sort_order: asc - align: '' - separator: '' - empty_column: false - responsive: '' - uuid: - align: '' - separator: '' - empty_column: false - responsive: '' - uid: - sortable: false - default_sort_order: asc - align: '' - separator: '' - empty_column: false - responsive: '' - address_given_name: - sortable: false - default_sort_order: asc - align: '' - separator: '' - empty_column: false - responsive: '' - address_family_name: - sortable: false - default_sort_order: asc - align: '' - separator: '' - empty_column: false - responsive: '' - view_user: - sortable: false - default_sort_order: asc - align: '' - separator: '
' - empty_column: false - responsive: '' - mail: - sortable: false - default_sort_order: asc - align: '' - separator: '' - empty_column: false - responsive: '' - label: - sortable: true - default_sort_order: asc - align: '' - separator: '' - empty_column: false - responsive: '' - type: - sortable: true - default_sort_order: asc - align: '' - separator: '' - empty_column: false - responsive: '' - state: - sortable: true - default_sort_order: asc - align: '' - separator: '' - empty_column: false - responsive: '' - expiration_type__target_plugin_id: - sortable: false - default_sort_order: asc - align: '' - separator: '' - empty_column: false - responsive: '' - operations: - align: '' - separator: '' - empty_column: false - responsive: '' - expires: - sortable: true - default_sort_order: asc - align: '' - separator: '' - empty_column: false - responsive: '' - changed: - sortable: true - default_sort_order: asc - align: '' - separator: '' - empty_column: false - responsive: '' - renewed: - sortable: true - default_sort_order: asc - align: '' - separator: '' - empty_column: false - responsive: '' - changed_1: - sortable: false - default_sort_order: asc - align: '' - separator: '' - empty_column: false - responsive: '' - granted: - sortable: true - default_sort_order: desc - align: '' - separator: '' - empty_column: false - responsive: '' - product_variation: - sortable: false - default_sort_order: asc - align: '' - separator: '
' - empty_column: false - responsive: '' - roles_target_id: - sortable: false - default_sort_order: asc - align: '' - separator: '' - empty_column: false - responsive: '' - default: granted - empty_table: false - row: - type: fields - fields: - views_bulk_operations_bulk_form: - id: views_bulk_operations_bulk_form - table: views - field: views_bulk_operations_bulk_form - relationship: none - group_type: group - admin_label: '' - label: 'Views bulk operations' - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - batch: true - batch_size: 10 - form_step: true - buttons: false - clear_on_exposed: true - action_title: Action - selected_actions: - 2: - action_id: views_bulk_operations_delete_entity - plugin_id: views_bulk_operations_bulk_form - license_id: - id: license_id - table: commerce_license - field: license_id - relationship: none - group_type: group - admin_label: '' - label: ID - exclude: true - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - click_sort_column: value - type: number_integer - settings: - thousand_separator: '' - prefix_suffix: true - group_column: value - group_columns: { } - group_rows: true - delta_limit: 0 - delta_offset: 0 - delta_reversed: false - delta_first_last: false - multi_type: separator - separator: ', ' - field_api_classes: false - entity_type: commerce_license - entity_field: license_id - plugin_id: field - uuid: - id: uuid - table: users - field: uuid - relationship: uid - group_type: group - admin_label: '' - label: UUID - exclude: true - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - click_sort_column: value - type: string - settings: - link_to_entity: false - group_column: value - group_columns: { } - group_rows: true - delta_limit: 0 - delta_offset: 0 - delta_reversed: false - delta_first_last: false - multi_type: separator - separator: ', ' - field_api_classes: false - entity_type: user - entity_field: uuid - plugin_id: field - uid: - id: uid - table: commerce_license - field: uid - relationship: none - group_type: group - admin_label: '' - label: Owner - exclude: true - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - click_sort_column: target_id - type: entity_reference_label - settings: - link: true - group_column: target_id - group_columns: { } - group_rows: true - delta_limit: 0 - delta_offset: 0 - delta_reversed: false - delta_first_last: false - multi_type: separator - separator: ', ' - field_api_classes: false - entity_type: commerce_license - entity_field: uid - plugin_id: field - address_given_name: - id: address_given_name - table: profile__address - field: address_given_name - relationship: profile_type - group_type: group - admin_label: '' - label: 'Adresse (address : given_name)' - exclude: true - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - plugin_id: standard - address_family_name: - id: address_family_name - table: profile__address - field: address_family_name - relationship: profile_type - group_type: group - admin_label: '' - label: 'Adresse (address : family_name)' - exclude: true - alter: - alter_text: false - text: '{{ address_given_name }} {{ address_family_name }}' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: 'No customer profil' - hide_empty: false - empty_zero: false - hide_alter_empty: true - plugin_id: standard - view_user: - id: view_user - table: users - field: view_user - relationship: uid - group_type: group - admin_label: '' - label: 'Link to User' - exclude: false - alter: - alter_text: true - text: '{{ address_given_name }} {{ address_family_name }}' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - text: view - output_url_as_text: false - absolute: false - entity_type: user - plugin_id: entity_link - mail: - id: mail - table: users_field_data - field: mail - relationship: uid - group_type: group - admin_label: '' - label: Email - exclude: false - alter: - alter_text: false - text: '{{ mail }}' - make_link: false - path: 'user/{{ uid }}' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '

' - suffix: '

' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - click_sort_column: value - type: email_mailto - settings: { } - group_column: value - group_columns: { } - group_rows: true - delta_limit: 0 - delta_offset: 0 - delta_reversed: false - delta_first_last: false - multi_type: separator - separator: ', ' - field_api_classes: false - entity_type: user - entity_field: mail - plugin_id: field - label: - id: label - table: commerce_license - field: label - relationship: none - group_type: group - admin_label: '' - label: Label - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - link_to_entity: true - entity_type: commerce_license - plugin_id: commerce_license__entity_label - type: - id: type - table: commerce_license - field: type - relationship: none - group_type: group - admin_label: '' - label: 'License type' - exclude: true - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - click_sort_column: value - type: string - settings: - link_to_entity: false - group_column: value - group_columns: { } - group_rows: true - delta_limit: 0 - delta_offset: 0 - delta_reversed: false - delta_first_last: false - multi_type: separator - separator: ', ' - field_api_classes: false - hide_single_bundle: true - entity_type: commerce_license - entity_field: type - plugin_id: commerce_entity_bundle - state: - id: state - table: commerce_license - field: state - relationship: none - group_type: group - admin_label: '' - label: State - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - click_sort_column: value - type: list_default - settings: { } - group_column: value - group_columns: { } - group_rows: true - delta_limit: 0 - delta_offset: 0 - delta_reversed: false - delta_first_last: false - multi_type: separator - separator: ', ' - field_api_classes: false - entity_type: commerce_license - entity_field: state - plugin_id: field - expiration_type__target_plugin_id: - id: expiration_type__target_plugin_id - table: commerce_license - field: expiration_type__target_plugin_id - relationship: none - group_type: group - admin_label: '' - label: 'Expiration type' - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - click_sort_column: target_plugin_id - type: commerce_plugin_item_default - settings: { } - group_column: '' - group_columns: { } - group_rows: true - delta_limit: 0 - delta_offset: 0 - delta_reversed: false - delta_first_last: false - multi_type: separator - separator: ', ' - field_api_classes: false - entity_type: commerce_license - entity_field: expiration_type - plugin_id: field - operations: - id: operations - table: commerce_license - field: operations - relationship: none - group_type: group - admin_label: '' - label: 'Operations links' - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - destination: true - entity_type: commerce_license - plugin_id: entity_operations - expires: - id: expires - table: commerce_license - field: expires - relationship: none - group_type: group - admin_label: '' - label: Expires - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - click_sort_column: value - type: timestamp - settings: - date_format: html_date - custom_date_format: '' - timezone: '' - group_column: value - group_columns: { } - group_rows: true - delta_limit: 0 - delta_offset: 0 - delta_reversed: false - delta_first_last: false - multi_type: separator - separator: ', ' - field_api_classes: false - entity_type: commerce_license - entity_field: expires - plugin_id: field - changed: - id: changed - table: commerce_license - field: changed - relationship: none - group_type: group - admin_label: '' - label: Updated - exclude: true - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - click_sort_column: value - type: timestamp - settings: - date_format: html_date - custom_date_format: '' - timezone: '' - group_column: value - group_columns: { } - group_rows: true - delta_limit: 0 - delta_offset: 0 - delta_reversed: false - delta_first_last: false - multi_type: separator - separator: ', ' - field_api_classes: false - entity_type: commerce_license - entity_field: changed - plugin_id: field - renewed: - id: renewed - table: commerce_license - field: renewed - relationship: none - group_type: group - admin_label: '' - label: Renewed - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - click_sort_column: value - type: timestamp - settings: - date_format: html_date - custom_date_format: '' - timezone: '' - group_column: value - group_columns: { } - group_rows: true - delta_limit: 0 - delta_offset: 0 - delta_reversed: false - delta_first_last: false - multi_type: separator - separator: ', ' - field_api_classes: false - entity_type: commerce_license - entity_field: renewed - plugin_id: field - changed_1: - id: changed_1 - table: commerce_license - field: changed - relationship: none - group_type: group - admin_label: '' - label: Changed - exclude: true - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - click_sort_column: value - type: timestamp - settings: - date_format: html_date - custom_date_format: '' - timezone: '' - group_column: value - group_columns: { } - group_rows: true - delta_limit: 0 - delta_offset: 0 - delta_reversed: false - delta_first_last: false - multi_type: separator - separator: ', ' - field_api_classes: false - entity_type: commerce_license - entity_field: changed - plugin_id: field - granted: - id: granted - table: commerce_license - field: granted - relationship: none - group_type: group - admin_label: '' - label: Granted - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - click_sort_column: value - type: timestamp - settings: - date_format: html_date - custom_date_format: '' - timezone: '' - group_column: value - group_columns: { } - group_rows: true - delta_limit: 0 - delta_offset: 0 - delta_reversed: false - delta_first_last: false - multi_type: separator - separator: ', ' - field_api_classes: false - entity_type: commerce_license - entity_field: granted - plugin_id: field - product_variation: - id: product_variation - table: commerce_license - field: product_variation - relationship: none - group_type: group - admin_label: '' - label: 'Licensed product variation' - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - click_sort_column: target_id - type: entity_reference_label - settings: - link: true - group_column: target_id - group_columns: { } - group_rows: true - delta_limit: 0 - delta_offset: 0 - delta_reversed: false - delta_first_last: false - multi_type: separator - separator: ', ' - field_api_classes: false - entity_type: commerce_license - entity_field: product_variation - plugin_id: field - roles_target_id: - id: roles_target_id - table: user__roles - field: roles_target_id - relationship: uid - group_type: group - admin_label: '' - label: Roles - exclude: false - alter: - alter_text: false - text: '' - make_link: false - path: '' - absolute: false - external: false - replace_spaces: false - path_case: none - trim_whitespace: false - alt: '' - rel: '' - link_class: '' - prefix: '' - suffix: '' - target: '' - nl2br: false - max_length: 0 - word_boundary: true - ellipsis: true - more_link: false - more_link_text: '' - more_link_path: '' - strip_tags: false - trim: false - preserve_tags: '' - html: false - element_type: '' - element_class: '' - element_label_type: '' - element_label_class: '' - element_label_colon: true - element_wrapper_type: '' - element_wrapper_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - type: separator - separator: ', ' - entity_type: user - entity_field: roles - plugin_id: user_roles - filters: - state: - id: state - table: commerce_license - field: state - relationship: none - group_type: group - admin_label: '' - operator: in - value: { } - group: 1 - exposed: true - expose: - operator_id: state_op - label: State - description: '' - use_operator: false - operator: state_op - identifier: state - required: false - remember: false - multiple: false - remember_roles: - authenticated: authenticated - anonymous: '0' - administrator: '0' - member: '0' - reduce: false - operator_limit_selection: false - operator_list: { } - is_grouped: false - group_info: - label: '' - description: '' - identifier: '' - optional: true - widget: select - multiple: false - remember: false - default_group: All - default_group_multiple: { } - group_items: { } - entity_type: commerce_license - entity_field: state - plugin_id: state_machine_state - mail: - id: mail - table: users_field_data - field: mail - relationship: uid - group_type: group - admin_label: '' - operator: contains - value: '' - group: 1 - exposed: true - expose: - operator_id: mail_op - label: Email - description: '' - use_operator: false - operator: mail_op - identifier: mail - required: false - remember: false - multiple: false - remember_roles: - authenticated: authenticated - unverified: '0' - anonymous: '0' - free_user: '0' - contact_company: '0' - alpha_testeur: '0' - student: '0' - adherent: '0' - translator: '0' - admin_showroom: '0' - admin: '0' - root: '0' - placeholder: '' - operator_limit_selection: false - operator_list: { } - is_grouped: false - group_info: - label: '' - description: '' - identifier: '' - optional: true - widget: select - multiple: false - remember: false - default_group: All - default_group_multiple: { } - group_items: { } - entity_type: user - entity_field: mail - plugin_id: string - roles_target_id: - id: roles_target_id - table: user__roles - field: roles_target_id - relationship: uid - group_type: group - admin_label: '' - operator: or - value: - all: all - student: student - adherent: adherent - group: 1 - exposed: true - expose: - operator_id: roles_target_id_op - label: Roles - description: '' - use_operator: false - operator: roles_target_id_op - identifier: roles_target_id - required: false - remember: false - multiple: false - remember_roles: - authenticated: authenticated - unverified: '0' - anonymous: '0' - free_user: '0' - contact_company: '0' - alpha_testeur: '0' - student: '0' - adherent: '0' - translator: '0' - admin_showroom: '0' - admin: '0' - root: '0' - reduce: true - operator_limit_selection: false - operator_list: { } - is_grouped: false - group_info: - label: '' - description: '' - identifier: '' - optional: true - widget: select - multiple: false - remember: false - default_group: All - default_group_multiple: { } - group_items: { } - reduce_duplicates: true - entity_type: user - entity_field: roles - plugin_id: user_roles - roles_target_id_1: - id: roles_target_id_1 - table: user__roles - field: roles_target_id - relationship: uid - group_type: group - admin_label: '' - operator: or - value: - student: student - adherent: adherent - group: 1 - exposed: false - expose: - operator_id: '' - label: '' - description: '' - use_operator: false - operator: '' - operator_limit_selection: false - operator_list: { } - identifier: '' - required: false - remember: false - multiple: false - remember_roles: - authenticated: authenticated - reduce: false - is_grouped: false - group_info: - label: '' - description: '' - identifier: '' - optional: true - widget: select - multiple: false - remember: false - default_group: All - default_group_multiple: { } - group_items: { } - reduce_duplicates: false - entity_type: user - entity_field: roles - plugin_id: user_roles - sorts: { } - title: Licenses - header: - result: - id: result - table: views - field: result - relationship: none - group_type: group - admin_label: '' - empty: false - content: 'Displaying @start - @end of @total | Page @current_page/@page_count' - plugin_id: result - footer: { } - empty: { } - relationships: - uid: - id: uid - table: commerce_license - field: uid - relationship: none - group_type: group - admin_label: User - required: false - entity_type: commerce_license - entity_field: uid - plugin_id: standard - profile_type: - id: profile_type - table: users_field_data - field: profile_type - relationship: uid - group_type: group - admin_label: 'Profile Client' - required: false - profile_type: customer - entity_type: user - plugin_id: profile_relationship - arguments: { } - display_extenders: - views_ef_fieldset: { } - cache_metadata: - max-age: 0 - contexts: - - 'languages:language_content' - - 'languages:language_interface' - - url - - url.query_args - - user.permissions - tags: { } - page_1: - display_plugin: page - id: page_1 - display_title: Page - position: 1 - display_options: - display_extenders: - views_ef_fieldset: { } - path: admin/commerce/licenses - cache_metadata: - max-age: 0 - contexts: - - 'languages:language_content' - - 'languages:language_interface' - - url - - url.query_args - - user.permissions - tags: { } diff --git a/migrate-from-d7.sh b/migrate-from-d7.sh index 2031ed7b..950240cc 100755 --- a/migrate-from-d7.sh +++ b/migrate-from-d7.sh @@ -71,11 +71,11 @@ echo " " echo "Migrating Users" drush mim d7_users --update --feedback="1000" echo " " -drush mim d7_user_profile --feedback="1000" +drush mim d7_user_profile --update --feedback="1000" echo " " -drush mim d7_user_profile_customer --feedback="1000" +drush mim d7_user_profile_customer --update --feedback="1000" echo " " -drush mim d7_uc_roles_license --update --feedback="200" +drush mim d7_uc_roles_license --update --feedback="1000" sleep 5 echo " " diff --git a/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_uc_roles_license.yml b/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_uc_roles_license.yml index 070a7572..9bc92039 100644 --- a/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_uc_roles_license.yml +++ b/web/modules/custom/materio_migrate/config/install/migrate_plus.migration.d7_uc_roles_license.yml @@ -73,12 +73,12 @@ process: # plugin: migration_lookup # migration: # your product variation migration # source: nid - product_variation: - plugin: static_map - source: rid - map: - 6: 2 # web annual - 10: 7 # web annual student + product_variation: product_variation_id + # plugin: static_map + # source: rid + # map: + # 6: 2 # web annual + # 10: 7 # web annual migration_dependencies: required: diff --git a/web/modules/custom/materio_migrate/src/Plugin/migrate/source/D7UcRolesLicense.php b/web/modules/custom/materio_migrate/src/Plugin/migrate/source/D7UcRolesLicense.php index 3c3fba12..823aed49 100644 --- a/web/modules/custom/materio_migrate/src/Plugin/migrate/source/D7UcRolesLicense.php +++ b/web/modules/custom/materio_migrate/src/Plugin/migrate/source/D7UcRolesLicense.php @@ -127,6 +127,7 @@ class D7UcRolesLicense extends DrupalSqlBase { 'created', 'modified', ]); + $query->fields('uop', ['model']); $query->orderBy('created', 'DESC'); $orders = $query->execute()->fetchAll(); // print_r($orders); @@ -141,9 +142,29 @@ class D7UcRolesLicense extends DrupalSqlBase { $first_order = array_shift($orders); $row->setSourceProperty('created', $first_order['created']); $row->setSourceProperty('renewed', $first_order['created']); + if(count($orders)){ $last_order = array_pop($orders); $row->setSourceProperty('renewed', $last_order['created']); + }else{ + $last_order = $first_order; + } + + drush_print(print_r($last_order, true)); + // put the right product variation web OR web-showroom + switch($last_order['model']){ + case "abo01-A": + $product_variation_id = 2; + break; + case "abo01-B": + case "abo01-C": + $product_variation_id = 6; + break; + } + + if(isset($product_variation_id)){ + drush_print($row->getSourceProperty('mail').' product_variation_id: '.$product_variation_id); + $row->setSourceProperty('product_variation_id', $product_variation_id); } } diff --git a/web/themes/custom/materiotheme/assets/dist/report.html b/web/themes/custom/materiotheme/assets/dist/report.html index 13c96c61..3326639a 100644 --- a/web/themes/custom/materiotheme/assets/dist/report.html +++ b/web/themes/custom/materiotheme/assets/dist/report.html @@ -3,7 +3,7 @@ - materio.com [14 Jul 2021 at 16:00] + materio.com [19 Jul 2021 at 18:26]