From 5fd51336aab1915cbe912c33a94e2b692a25cc9f Mon Sep 17 00:00:00 2001 From: Douglas Groene <10536-dgroene@users.noreply.drupalcode.org> Date: Mon, 18 Dec 2023 22:55:26 +0000 Subject: [PATCH] fix: 3409591: Updates view configuration for vanilla D10 site and fixes issue... --- config/install/views.view.url_redirects.yml | 528 ++++++++++---------- 1 file changed, 264 insertions(+), 264 deletions(-) diff --git a/config/install/views.view.url_redirects.yml b/config/install/views.view.url_redirects.yml index 0bfe016..de1dcf5 100644 --- a/config/install/views.view.url_redirects.yml +++ b/config/install/views.view.url_redirects.yml @@ -12,7 +12,7 @@ dependencies: - user - views_data_export _core: - default_config_hash: _OZ5g-O6XgKDL0VEuA4ZIUetsWBGQWufuhKJif5glKI + default_config_hash: Vn1ZltLaq78UirT6Z2O8Ylv5lbDAsyiSYf9hFzNvBm0 id: url_redirects label: 'URL Redirects' module: views @@ -22,122 +22,12 @@ base_table: redirect base_field: rid display: default: - display_plugin: default id: default display_title: Master + display_plugin: default position: 0 display_options: - access: - type: perm - options: - perm: 'administer redirects' - 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: Apply - 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: '‹ previous' - next: '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: false - caption: '' - summary: '' - description: '' - columns: - redirect_source__path: redirect_source__path - redirect_redirect__uri: redirect_redirect__uri - status_code: status_code - language: language - created: created - operations: operations - info: - redirect_source__path: - sortable: true - default_sort_order: asc - align: '' - separator: '' - empty_column: false - responsive: '' - redirect_redirect__uri: - sortable: true - default_sort_order: asc - align: '' - separator: '' - empty_column: false - responsive: '' - status_code: - sortable: true - default_sort_order: asc - align: '' - separator: '' - empty_column: false - responsive: '' - language: - sortable: true - default_sort_order: asc - align: '' - separator: '' - empty_column: false - responsive: '' - created: - sortable: true - default_sort_order: asc - align: '' - separator: '' - empty_column: false - responsive: '' - operations: - sortable: false - default_sort_order: asc - align: '' - separator: '' - empty_column: false - responsive: '' - default: created - empty_table: false - row: - type: fields + title: Redirect fields: redirect_bulk_form: id: redirect_bulk_form @@ -146,6 +36,8 @@ display: relationship: none group_type: group admin_label: '' + entity_type: redirect + plugin_id: redirect_bulk_form label: '' exclude: false alter: @@ -190,8 +82,6 @@ display: action_title: 'With selection' include_exclude: exclude selected_actions: { } - entity_type: redirect - plugin_id: redirect_bulk_form redirect_source__path: id: redirect_source__path table: redirect @@ -199,6 +89,9 @@ display: relationship: none group_type: group admin_label: '' + entity_type: redirect + entity_field: redirect_source + plugin_id: field label: From exclude: false alter: @@ -253,9 +146,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - entity_type: redirect - entity_field: redirect_source - plugin_id: field redirect_redirect__uri: id: redirect_redirect__uri table: redirect @@ -277,6 +167,9 @@ display: relationship: uid_created group_type: group admin_label: '' + entity_type: user + entity_field: name + plugin_id: field label: 'Created By' exclude: false alter: @@ -332,9 +225,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - entity_type: user - entity_field: name - plugin_id: field created_1: id: created_1 table: redirect_extensions @@ -342,6 +232,7 @@ display: relationship: none group_type: group admin_label: '' + plugin_id: date label: 'Created Date' exclude: false alter: @@ -386,7 +277,6 @@ display: date_format: long custom_date_format: '' timezone: '' - plugin_id: date name_1: id: name_1 table: users_field_data @@ -394,6 +284,9 @@ display: relationship: uid group_type: group admin_label: '' + entity_type: user + entity_field: name + plugin_id: field label: 'Updated By' exclude: false alter: @@ -449,9 +342,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - entity_type: user - entity_field: name - plugin_id: field modified: id: modified table: redirect_extensions @@ -459,6 +349,7 @@ display: relationship: none group_type: group admin_label: '' + plugin_id: date label: 'Updated Date' exclude: false alter: @@ -503,13 +394,64 @@ display: date_format: long custom_date_format: '' timezone: '' - plugin_id: date operations: id: operations table: redirect field: operations entity_type: redirect plugin_id: entity_operations + pager: + type: full + options: + offset: 0 + items_per_page: 50 + total_pages: null + id: 0 + tags: + next: 'next ›' + previous: '‹ previous' + 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 + exposed_form: + type: basic + options: + submit_button: Apply + reset_button: false + reset_button_label: Reset + exposed_sorts_label: 'Sort by' + expose_sort_order: true + sort_asc_label: Asc + sort_desc_label: Desc + access: + type: perm + options: + perm: 'administer redirects' + cache: + type: tag + options: { } + empty: + area_text_custom: + id: area_text_custom + table: views + field: area_text_custom + relationship: none + group_type: group + admin_label: '' + plugin_id: text_custom + empty: true + content: 'There is no redirect yet.' + tokenize: false + sorts: { } + arguments: { } filters: redirect_source__path: id: redirect_source__path @@ -518,6 +460,9 @@ display: relationship: none group_type: group admin_label: '' + entity_type: redirect + entity_field: redirect_source + plugin_id: string operator: contains value: '' group: 1 @@ -528,6 +473,8 @@ display: description: '' use_operator: false operator: redirect_source__path_op + operator_limit_selection: false + operator_list: { } identifier: redirect_source__path required: false remember: false @@ -537,8 +484,6 @@ display: anonymous: '0' administrator: '0' placeholder: '' - operator_limit_selection: false - operator_list: { } is_grouped: false group_info: label: '' @@ -551,9 +496,6 @@ display: default_group: All default_group_multiple: { } group_items: { } - entity_type: redirect - entity_field: redirect_source - plugin_id: string redirect_redirect__uri: id: redirect_redirect__uri table: redirect @@ -561,6 +503,9 @@ display: relationship: none group_type: group admin_label: '' + entity_type: redirect + entity_field: redirect_redirect + plugin_id: string operator: contains value: '' group: 1 @@ -571,6 +516,8 @@ display: description: '' use_operator: false operator: redirect_redirect__uri_op + operator_limit_selection: false + operator_list: { } identifier: redirect_redirect__uri required: false remember: false @@ -580,8 +527,6 @@ display: anonymous: '0' administrator: '0' placeholder: '' - operator_limit_selection: false - operator_list: { } is_grouped: false group_info: label: '' @@ -594,9 +539,6 @@ display: default_group: All default_group_multiple: { } group_items: { } - entity_type: redirect - entity_field: redirect_redirect - plugin_id: string status_code: id: status_code table: redirect @@ -604,6 +546,9 @@ display: relationship: none group_type: group admin_label: '' + entity_type: redirect + entity_field: status_code + plugin_id: numeric operator: '=' value: min: '' @@ -617,6 +562,8 @@ display: description: '' use_operator: false operator: status_code_op + operator_limit_selection: false + operator_list: { } identifier: status_code required: false remember: false @@ -625,11 +572,9 @@ display: authenticated: authenticated anonymous: '0' administrator: '0' - placeholder: '' min_placeholder: '' max_placeholder: '' - operator_limit_selection: false - operator_list: { } + placeholder: '' is_grouped: true group_info: label: 'Status code' @@ -646,54 +591,51 @@ display: title: '300 Multiple Choices' operator: '=' value: - value: '300' min: '' max: '' + value: '300' 2: title: '301 Moved Permanently' operator: '=' value: - value: '301' min: '' max: '' + value: '301' 3: title: '302 Found' operator: '=' value: - value: '302' min: '' max: '' + value: '302' 4: title: '303 See Other' operator: '=' value: - value: '303' min: '' max: '' + value: '303' 5: title: '304 Not Modified' operator: '=' value: - value: '304' min: '' max: '' + value: '304' 6: title: '305 Use Proxy' operator: '=' value: - value: '305' min: '' max: '' + value: '305' 7: title: '307 Temporary Redirect' operator: '=' value: - value: '307' min: '' max: '' - entity_type: redirect - entity_field: status_code - plugin_id: numeric + value: '307' language: id: language table: redirect @@ -701,6 +643,9 @@ display: relationship: none group_type: group admin_label: '' + entity_type: redirect + entity_field: language + plugin_id: language operator: in value: { } group: 1 @@ -711,6 +656,8 @@ display: description: '' use_operator: false operator: language_op + operator_limit_selection: false + operator_list: { } identifier: language required: false remember: false @@ -720,8 +667,6 @@ display: anonymous: '0' administrator: '0' reduce: false - operator_limit_selection: false - operator_list: { } is_grouped: false group_info: label: '' @@ -729,30 +674,88 @@ display: identifier: '' optional: true widget: select - multiple: false - remember: false - default_group: All - default_group_multiple: { } - group_items: { } - entity_type: redirect - entity_field: language - plugin_id: language - sorts: { } - title: Redirect - header: { } - footer: { } - empty: - area_text_custom: - id: area_text_custom - table: views - field: area_text_custom - relationship: none - group_type: group - admin_label: '' - empty: true - tokenize: false - content: 'There is no redirect yet.' - plugin_id: text_custom + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + filter_groups: + operator: AND + groups: + 1: AND + style: + type: table + options: + grouping: { } + row_class: '' + default_row_class: true + columns: + redirect_source__path: redirect_source__path + redirect_redirect__uri: redirect_redirect__uri + status_code: status_code + language: language + created: created + operations: operations + default: created + info: + redirect_source__path: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + redirect_redirect__uri: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + status_code: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + language: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + created: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + operations: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + override: true + sticky: false + summary: '' + empty_table: false + caption: '' + description: '' + row: + type: fields + query: + type: views_query + options: + query_comment: '' + disable_sql_rewrite: false + distinct: false + replica: false + query_tags: { } relationships: uid: id: uid @@ -761,10 +764,10 @@ display: relationship: none group_type: group admin_label: User - required: false entity_type: redirect entity_field: uid plugin_id: standard + required: false uid_created: id: uid_created table: redirect_extensions @@ -772,58 +775,28 @@ display: relationship: none group_type: group admin_label: 'created user' - required: false plugin_id: standard - arguments: { } + required: false + header: { } + footer: { } display_extenders: { } - filter_groups: - operator: AND - groups: - 1: AND cache_metadata: + max-age: 0 contexts: - 'languages:language_content' - 'languages:language_interface' - url - url.query_args - user.permissions - cacheable: false - max-age: 0 tags: { } + cacheable: false data_export_1: - display_plugin: data_export id: data_export_1 display_title: 'Data export' + display_plugin: data_export position: 2 display_options: - display_extenders: - simple_sitemap_display_extender: - index: false - variant: null - priority: '0.5' - changefreq: '' - arguments: { } - max_links: 100 title: Export - defaults: - title: false - fields: false - filters: false - filter_groups: false - style: - type: data_export - options: - formats: - csv: csv - csv_settings: - delimiter: ',' - enclosure: '"' - escape_char: \ - strip_tags: true - trim: true - encoding: utf8 - utf8_bom: '0' - use_serializer_encode_only: false fields: redirect_source__path: id: redirect_source__path @@ -832,6 +805,9 @@ display: relationship: none group_type: group admin_label: '' + entity_type: redirect + entity_field: redirect_source + plugin_id: field label: From exclude: false alter: @@ -886,9 +862,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - entity_type: redirect - entity_field: redirect_source - plugin_id: field redirect_redirect__uri: id: redirect_redirect__uri table: redirect @@ -896,6 +869,9 @@ display: relationship: none group_type: group admin_label: '' + entity_type: redirect + entity_field: redirect_redirect + plugin_id: field label: To exclude: false alter: @@ -955,9 +931,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - entity_type: redirect - entity_field: redirect_redirect - plugin_id: field status_code: id: status_code table: redirect @@ -965,6 +938,9 @@ display: relationship: none group_type: group admin_label: '' + entity_type: redirect + entity_field: status_code + plugin_id: field label: 'Status code' exclude: false alter: @@ -1021,23 +997,47 @@ display: multi_type: separator separator: ', ' field_api_classes: false - entity_type: redirect - entity_field: status_code - plugin_id: field filters: { } filter_groups: operator: AND groups: { } + style: + type: data_export + options: + formats: + csv: csv + csv_settings: + delimiter: ',' + enclosure: '"' + escape_char: \ + strip_tags: true + trim: true + encoding: utf8 + utf8_bom: '0' + use_serializer_encode_only: false + defaults: + title: false + fields: false + filters: false + filter_groups: false + display_extenders: + simple_sitemap_display_extender: + index: false + variant: null + priority: '0.5' + changefreq: '' + arguments: { } + max_links: 100 path: admin/config/search/redirect/redirects.csv + displays: + page_1: page_1 + default: '0' filename: '' automatic_download: false store_in_public_file_directory: null - redirect_to_display: none custom_redirect_path: false + redirect_to_display: none include_query_params: false - displays: - page_1: page_1 - default: '0' cache_metadata: max-age: -1 contexts: @@ -1047,30 +1047,11 @@ display: - user.permissions tags: { } page_1: - display_plugin: page id: page_1 display_title: Page + display_plugin: page position: 1 display_options: - display_extenders: { } - path: admin/config/search/redirect - header: - area: - id: area - table: views - field: area - relationship: none - group_type: group - admin_label: '' - empty: false - tokenize: false - content: - value: "<div class=\"csv-feed views-data-export-feed\">\r\n <a href=\"/admin/config/search/redirect/redirects.csv?page&_format=csv\" class=\"feed-icon\">\r\n Download CSV\r\n </a>\r\n</div>" - format: full_html - plugin_id: text - defaults: - header: false - fields: false fields: redirect_bulk_form: id: redirect_bulk_form @@ -1079,6 +1060,8 @@ display: relationship: none group_type: group admin_label: '' + entity_type: redirect + plugin_id: redirect_bulk_form label: '' exclude: false alter: @@ -1123,8 +1106,6 @@ display: action_title: 'With selection' include_exclude: exclude selected_actions: { } - entity_type: redirect - plugin_id: redirect_bulk_form redirect_source__path: id: redirect_source__path table: redirect @@ -1132,13 +1113,16 @@ display: relationship: none group_type: group admin_label: '' + entity_type: redirect + entity_field: redirect_source + plugin_id: field label: From exclude: false alter: alter_text: false text: '' make_link: true - path: '{{ redirect_source__path }}' + path: "{{ redirect_source__path.__toString() starts with '/https://' ? redirect_source__path__path : redirect_source__path}}" absolute: false external: false replace_spaces: false @@ -1186,9 +1170,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - entity_type: redirect - entity_field: redirect_source - plugin_id: field redirect_redirect__uri: id: redirect_redirect__uri table: redirect @@ -1196,6 +1177,9 @@ display: relationship: none group_type: group admin_label: '' + entity_type: redirect + entity_field: redirect_redirect + plugin_id: field label: To exclude: false alter: @@ -1255,9 +1239,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - entity_type: redirect - entity_field: redirect_redirect - plugin_id: field status_code: id: status_code table: redirect @@ -1272,6 +1253,9 @@ display: relationship: uid group_type: group admin_label: '' + entity_type: user + entity_field: name + plugin_id: field label: 'Created By' exclude: false alter: @@ -1327,9 +1311,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - entity_type: user - entity_field: name - plugin_id: field created_1: id: created_1 table: redirect_extensions @@ -1337,6 +1318,7 @@ display: relationship: none group_type: group admin_label: '' + plugin_id: date label: 'Created Date' exclude: false alter: @@ -1381,7 +1363,6 @@ display: date_format: long custom_date_format: '' timezone: '' - plugin_id: date name: id: name table: users_field_data @@ -1389,6 +1370,9 @@ display: relationship: uid_created group_type: group admin_label: '' + entity_type: user + entity_field: name + plugin_id: field label: 'Updated By' exclude: false alter: @@ -1444,9 +1428,6 @@ display: multi_type: separator separator: ', ' field_api_classes: false - entity_type: user - entity_field: name - plugin_id: field modified: id: modified table: redirect_extensions @@ -1454,6 +1435,7 @@ display: relationship: none group_type: group admin_label: '' + plugin_id: date label: 'Updated Date' exclude: false alter: @@ -1498,20 +1480,38 @@ display: date_format: long custom_date_format: '' timezone: '' - plugin_id: date operations: id: operations table: redirect field: operations entity_type: redirect plugin_id: entity_operations + defaults: + fields: false + header: false + header: + area: + id: area + table: views + field: area + relationship: none + group_type: group + admin_label: '' + plugin_id: text + empty: false + content: + value: "<div class=\"csv-feed views-data-export-feed\">\r\n <a href=\"/admin/config/search/redirect/redirects.csv?page&_format=csv\" class=\"feed-icon\">\r\n Download CSV\r\n </a>\r\n</div>" + format: full_html + tokenize: false + display_extenders: { } + path: admin/config/search/redirect cache_metadata: + max-age: 0 contexts: - 'languages:language_content' - 'languages:language_interface' - url - url.query_args - user.permissions - cacheable: false - max-age: 0 tags: { } + cacheable: false -- GitLab