diff --git a/conf/drupal/config/views.view.accessibility_report_for_authors.yml b/conf/drupal/config/views.view.accessibility_report_for_authors.yml index e8a6d03385..3de0fc1b0e 100644 --- a/conf/drupal/config/views.view.accessibility_report_for_authors.yml +++ b/conf/drupal/config/views.view.accessibility_report_for_authors.yml @@ -3,6 +3,7 @@ langcode: en status: true dependencies: config: + - field.storage.node.field_organizations - taxonomy.vocabulary.label module: - csv_serialization @@ -402,7 +403,7 @@ display: click_sort_column: value type: timestamp settings: - date_format: short_date_only + date_format: short custom_date_format: '' timezone: '' tooltip: @@ -604,6 +605,69 @@ display: format_plural_string: !!binary MQNAY291bnQ= prefix: '' suffix: '' + field_organizations: + id: field_organizations + table: node__field_organizations + field: field_organizations + relationship: entity_id + group_type: group + admin_label: '' + plugin_id: field + label: Organization(s) + 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: false + 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 pager: type: mini options: @@ -654,15 +718,17 @@ display: empty: true title: 'No known issues at this url' sorts: - result_name_count: - id: result_name_count - table: editoria11y_results - field: result_name_count - relationship: none - group_type: sum + nid: + id: nid + table: node_field_data + field: nid + relationship: entity_id + group_type: group admin_label: '' + entity_type: node + entity_field: nid plugin_id: standard - order: DESC + order: ASC expose: label: '' field_identifier: '' @@ -1102,7 +1168,7 @@ display: table: node_field_data field: changed relationship: entity_id - group_type: group + group_type: max admin_label: '' entity_type: node entity_field: changed @@ -1369,7 +1435,20 @@ display: use_more_text: 'All pages with issues' link_display: pages__page link_url: '' - header: { } + header: + area: + id: area + table: views + field: area + relationship: none + group_type: group + admin_label: '' + plugin_id: text + empty: true + content: + value: "
Caution: this data is based on real-time scans done when authors view pages while editing on edit.mass.gov. It should not be considered a complete report for the following reasons.
\r\nConsider using SiteImprove data for reports. It crawls all author created pages that are not hidden from search with the exception of news and events.
\r\n" + format: basic_html + tokenize: false footer: result: id: result @@ -1393,7 +1472,8 @@ display: - url - url.query_args - user.permissions - tags: { } + tags: + - 'config:field.storage.node.field_organizations' data_export_1: id: data_export_1 display_title: 'Data export' @@ -2092,4 +2172,5 @@ display: - url - url.query_args - user.permissions - tags: { } + tags: + - 'config:field.storage.node.field_organizations' diff --git a/conf/drupal/config/views.view.accessibility_report_for_authors_using_revision.yml b/conf/drupal/config/views.view.accessibility_report_for_authors_using_revision.yml new file mode 100644 index 0000000000..4e09d74e7c --- /dev/null +++ b/conf/drupal/config/views.view.accessibility_report_for_authors_using_revision.yml @@ -0,0 +1,1247 @@ +uuid: 44b71015-3be8-4d2c-a7f9-abefb4a29391 +langcode: en +status: true +dependencies: + module: + - editoria11y + - mass_bigquery + - mass_views + - node + - user +id: accessibility_report_for_authors_using_revision +label: 'Accessibility report for authors using revision' +module: views +description: '' +tag: '' +base_table: node_field_revision +base_field: vid +display: + default: + id: default + display_title: Default + display_plugin: default + position: 0 + display_options: + title: 'Accessibility report for authors based on latest content revision' + fields: + nid: + id: nid + table: node_field_revision + field: nid + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: nid + plugin_id: field + label: ID + 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: 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 + title: + id: title + table: node_field_revision + field: title + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: title + plugin_id: field + label: Title + 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: false + ellipsis: false + 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: 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 + type: + id: type + table: node_field_data + field: type + relationship: nid + group_type: group + admin_label: '' + entity_type: node + entity_field: type + plugin_id: field + label: 'Content 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_id + type: entity_reference_label + settings: + link: false + 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 + changed: + id: changed + table: node_field_revision + field: changed + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: changed + plugin_id: field + label: Revised + 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: false + ellipsis: false + 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: short + custom_date_format: '' + timezone: '' + tooltip: + date_format: '' + custom_date_format: '' + time_diff: + enabled: false + future_format: '@interval hence' + past_format: '@interval ago' + granularity: 2 + refresh: 60 + description: '' + 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 + updated: + id: updated + table: editoria11y_results + field: updated + relationship: editoria11y_results + group_type: group + admin_label: '' + plugin_id: date + label: 'Accessibility scan date' + 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 + date_format: short + custom_date_format: '' + timezone: '' + name: + id: name + table: users_field_data + field: name + relationship: uid + group_type: group + admin_label: '' + entity_type: user + entity_field: name + plugin_id: field + label: 'Revised by' + 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: user_name + 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 + page_result_count: + id: page_result_count + table: editoria11y_results + field: page_result_count + relationship: editoria11y_results + group_type: sum + admin_label: '' + plugin_id: editoria11y_issues_by_page_link + label: 'Issue count' + 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 + set_precision: false + precision: 0 + decimal: . + separator: ',' + format_plural: 0 + format_plural_string: !!binary MQNAY291bnQ= + prefix: '' + suffix: '' + pageviews: + id: pageviews + table: mass_bigquery_data + field: pageviews + relationship: nid + group_type: group + admin_label: '' + plugin_id: numeric + label: 'Page views' + 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 + set_precision: false + precision: 0 + decimal: . + separator: ',' + format_plural: false + format_plural_string: !!binary MQNAY291bnQ= + prefix: '' + suffix: '' + pager: + type: mini + options: + offset: 0 + pagination_heading_level: h4 + items_per_page: 20 + total_pages: null + id: 0 + tags: + next: ›› + previous: ‹‹ + 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 + 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: 'view all revisions' + cache: + type: tag + options: { } + empty: { } + sorts: + nid: + id: nid + table: node_field_data + field: nid + relationship: nid + group_type: group + admin_label: '' + entity_type: node + entity_field: nid + plugin_id: standard + order: ASC + expose: + label: '' + field_identifier: '' + exposed: false + arguments: { } + filters: + node_org_filter: + id: node_org_filter + table: node_field_data + field: node_org_filter + relationship: nid + group_type: group + admin_label: '' + entity_type: node + plugin_id: mass_views_node_org_filter + operator: '=' + value: null + group: 1 + exposed: true + expose: + operator_id: node_org_filter_op + label: 'Organization (direct match)' + description: '' + use_operator: false + operator: node_org_filter_op + operator_limit_selection: false + operator_list: { } + identifier: node_org_filter + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + author: '0' + editor: '0' + emergency_alert_publisher: '0' + executive_orders: '0' + redirect_creators: '0' + content_team: '0' + developer: '0' + administrator: '0' + tester: '0' + doc_deletion: '0' + d2d_redirect_manager: '0' + data_administrator: '0' + collection_administrator: '0' + prototype_design_access: '0' + mmg_editor: '0' + viewer: '0' + bulk_edit: '0' + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + node_parent_org_top_filter: + id: node_parent_org_top_filter + table: node_field_data + field: node_parent_org_top_filter + relationship: nid + group_type: group + admin_label: '' + entity_type: node + plugin_id: mass_views_node_org_top_parent_filter + operator: '=' + value: null + group: 1 + exposed: true + expose: + operator_id: node_parent_org_top_filter_op + label: 'Organization (including all suborganizations)' + description: '' + use_operator: false + operator: node_parent_org_top_filter_op + operator_limit_selection: false + operator_list: { } + identifier: node_parent_org_top_filter + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + author: '0' + editor: '0' + emergency_alert_publisher: '0' + executive_orders: '0' + redirect_creators: '0' + content_team: '0' + developer: '0' + administrator: '0' + tester: '0' + doc_deletion: '0' + d2d_redirect_manager: '0' + data_administrator: '0' + collection_administrator: '0' + prototype_design_access: '0' + mmg_editor: '0' + viewer: '0' + bulk_edit: '0' + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + status: + id: status + table: node_field_revision + field: status + entity_type: node + entity_field: status + plugin_id: boolean + value: '1' + group: 1 + expose: + operator: '' + latest_revision: + id: latest_revision + table: node_revision + field: latest_revision + relationship: none + group_type: group + admin_label: '' + entity_type: node + plugin_id: latest_revision + operator: '=' + value: '' + 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 + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + status_1: + id: status_1 + table: node_field_data + field: status + relationship: nid + group_type: group + admin_label: '' + entity_type: node + entity_field: status + plugin_id: boolean + operator: '=' + value: All + group: 1 + exposed: true + expose: + operator_id: '' + label: 'Published status' + description: '' + use_operator: false + operator: status_1_op + operator_limit_selection: false + operator_list: { } + identifier: status_1 + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + author: '0' + editor: '0' + emergency_alert_publisher: '0' + executive_orders: '0' + redirect_creators: '0' + content_team: '0' + developer: '0' + administrator: '0' + tester: '0' + doc_deletion: '0' + d2d_redirect_manager: '0' + data_administrator: '0' + collection_administrator: '0' + prototype_design_access: '0' + mmg_editor: '0' + viewer: '0' + bulk_edit: '0' + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + uid: + id: uid + table: users_field_data + field: uid + relationship: uid + group_type: group + admin_label: '' + entity_type: user + entity_field: uid + plugin_id: user_name + operator: in + value: { } + group: 1 + exposed: true + expose: + operator_id: uid_op + label: 'Revised by' + description: '' + use_operator: false + operator: uid_op + operator_limit_selection: false + operator_list: { } + identifier: uid + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + author: '0' + editor: '0' + emergency_alert_publisher: '0' + executive_orders: '0' + redirect_creators: '0' + content_team: '0' + developer: '0' + administrator: '0' + tester: '0' + doc_deletion: '0' + d2d_redirect_manager: '0' + data_administrator: '0' + collection_administrator: '0' + prototype_design_access: '0' + mmg_editor: '0' + viewer: '0' + bulk_edit: '0' + 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: { } + result_name: + id: result_name + table: editoria11y_results + field: result_name + relationship: editoria11y_results + group_type: group + admin_label: '' + plugin_id: in_operator + operator: in + value: { } + group: 1 + exposed: true + expose: + operator_id: result_name_op + label: 'Issue type' + description: '' + use_operator: true + operator: result_name_op + operator_limit_selection: false + operator_list: { } + identifier: result_name + required: false + remember: false + multiple: true + remember_roles: + authenticated: authenticated + anonymous: '0' + author: '0' + editor: '0' + emergency_alert_publisher: '0' + executive_orders: '0' + redirect_creators: '0' + content_team: '0' + developer: '0' + administrator: '0' + tester: '0' + doc_deletion: '0' + d2d_redirect_manager: '0' + data_administrator: '0' + collection_administrator: '0' + prototype_design_access: '0' + mmg_editor: '0' + viewer: '0' + bulk_edit: '0' + 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: { } + updated: + id: updated + table: editoria11y_results + field: updated + relationship: editoria11y_results + group_type: group + admin_label: '' + plugin_id: date + operator: '>=' + value: + min: '' + max: '' + value: '' + type: date + group: 1 + exposed: true + expose: + operator_id: updated_op + label: 'Editoria11y scan date' + description: 'CCYY-MM-DD HH:MM:SS' + use_operator: true + operator: updated_op + operator_limit_selection: true + operator_list: + '<=': '<=' + '>=': '>=' + between: between + 'not between': 'not between' + identifier: scandate + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + author: '0' + editor: '0' + emergency_alert_publisher: '0' + executive_orders: '0' + redirect_creators: '0' + content_team: '0' + developer: '0' + administrator: '0' + tester: '0' + doc_deletion: '0' + d2d_redirect_manager: '0' + data_administrator: '0' + collection_administrator: '0' + prototype_design_access: '0' + mmg_editor: '0' + viewer: '0' + bulk_edit: '0' + min_placeholder: '' + max_placeholder: '' + placeholder: '' + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + multiple: false + remember: false + default_group: All + default_group_multiple: { } + group_items: { } + changed: + id: changed + table: node_field_revision + field: changed + relationship: none + group_type: group + admin_label: '' + entity_type: node + entity_field: changed + plugin_id: date + operator: '>=' + value: + min: '' + max: '' + value: '' + type: date + group: 1 + exposed: true + expose: + operator_id: changed_op + label: 'Last modified' + description: 'CCYY-MM-DD HH:MM:SS' + use_operator: true + operator: changed_op + operator_limit_selection: true + operator_list: + '<=': '<=' + '>=': '>=' + between: between + 'not between': 'not between' + identifier: revchanged + required: false + remember: false + multiple: false + remember_roles: + authenticated: authenticated + anonymous: '0' + author: '0' + editor: '0' + emergency_alert_publisher: '0' + executive_orders: '0' + redirect_creators: '0' + content_team: '0' + developer: '0' + administrator: '0' + tester: '0' + doc_deletion: '0' + d2d_redirect_manager: '0' + data_administrator: '0' + collection_administrator: '0' + prototype_design_access: '0' + mmg_editor: '0' + viewer: '0' + bulk_edit: '0' + min_placeholder: '' + max_placeholder: '' + placeholder: '' + is_grouped: false + group_info: + label: '' + description: '' + identifier: '' + optional: true + widget: select + 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: + nid: nid + title: title + type: type + changed: changed + updated: updated + name: name + page_result_count: page_result_count + pageviews: pageviews + default: pageviews + info: + nid: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + title: + 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: '' + changed: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + updated: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + name: + sortable: false + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + page_result_count: + sortable: true + default_sort_order: asc + align: '' + separator: '' + empty_column: false + responsive: '' + pageviews: + sortable: true + default_sort_order: desc + 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: true + disable_automatic_base_fields: false + replica: false + query_tags: { } + relationships: + nid: + id: nid + table: node_field_revision + field: nid + relationship: none + group_type: group + admin_label: nid + entity_type: node + entity_field: nid + plugin_id: standard + required: true + editoria11y_results: + id: editoria11y_results + table: node_field_revision + field: editoria11y_results + relationship: nid + group_type: group + admin_label: 'Editoria11y results' + entity_type: node + plugin_id: standard + required: true + uid: + id: uid + table: node_field_revision + field: uid + relationship: none + group_type: group + admin_label: User + entity_type: node + entity_field: uid + plugin_id: standard + required: false + group_by: true + header: + area: + id: area + table: views + field: area + relationship: none + group_type: group + admin_label: '' + plugin_id: text + empty: false + content: + value: "Caution: this data is based on real-time scans done when authors view pages while editing on edit.mass.gov. It should not be considered a complete report for the following reasons.
\r\nConsider using SiteImprove data for reports. It crawls all author created pages that are not hidden from search with the exception of news and events.
\r\n" + format: basic_html + tokenize: false + footer: + result: + id: result + table: views + field: result + relationship: none + group_type: group + admin_label: '' + plugin_id: result + empty: false + content: 'Displaying @start - @end of @total' + display_extenders: + metatag_display_extender: + metatags: { } + tokenize: false + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } + page_1: + id: page_1 + display_title: Page + display_plugin: page + position: 1 + display_options: + display_extenders: + metatag_display_extender: + metatags: { } + tokenize: false + path: admin/report/accessibility-report-for-authors-using-revision + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - url + - url.query_args + - 'user.node_grants:view' + - user.permissions + tags: { } diff --git a/docroot/modules/custom/mass_admin_pages/mass_admin_pages.module b/docroot/modules/custom/mass_admin_pages/mass_admin_pages.module index 4836d6c5d3..d4fafd2189 100644 --- a/docroot/modules/custom/mass_admin_pages/mass_admin_pages.module +++ b/docroot/modules/custom/mass_admin_pages/mass_admin_pages.module @@ -159,10 +159,34 @@ function mass_admin_pages_form_node_service_page_edit_form_alter(&$form, &$form_ * Implements hook_views_data_alter(). */ function mass_admin_pages_views_data_alter(array &$data) { - $data['editoria11y_results']['entity_id']['relationship'] = [ - 'base' => 'node_field_data', - 'base field' => 'nid', - 'id' => 'standard', - 'label' => t('Entity ID'), - ]; + // 1) Keep your original relationship: results -> node. + if (isset($data['editoria11y_results']['entity_id'])) { + $data['editoria11y_results']['entity_id']['relationship'] = [ + 'base' => 'node_field_data', // Join TO this table… + 'base field' => 'nid', // …using node_field_data.nid + 'id' => 'standard', + 'label' => t('Node'), + 'title' => t('Node'), + 'help' => t('The node this Editoria11y result belongs to.'), + ]; + } + + // 2) NEW: node revisions -> editoria11y_results. + if (isset($data['node_field_revision'])) { + $data['node_field_revision']['editoria11y_results'] = [ + 'title' => t('Editoria11y results'), + 'help' => t('Editoria11y test results for this node.'), + 'relationship' => [ + 'id' => 'standard', + // Table we are joining TO. + 'base' => 'editoria11y_results', + // Column on editoria11y_results. + 'base field' => 'entity_id', + // Column on node_field_revision we join FROM. + 'field' => 'nid', + 'label' => t('Editoria11y results'), + 'help' => t('Join node revisions to Editoria11y results by nid.'), + ], + ]; + } } diff --git a/docroot/themes/custom/mass_admin_theme/css/components/views.css b/docroot/themes/custom/mass_admin_theme/css/components/views.css index 37ea4d189a..2cfde4f8af 100644 --- a/docroot/themes/custom/mass_admin_theme/css/components/views.css +++ b/docroot/themes/custom/mass_admin_theme/css/components/views.css @@ -40,11 +40,13 @@ .view-accessibility-report-for-authors .js-form-item-result-name { flex: 1 1 30rem; } -.view-accessibility-report-for-authors .js-form-item-result-name .select2-container { +.view-accessibility-report-for-authors .js-form-item-result-name .select2-container, +.view-accessibility-report-for-authors-using-revision .js-form-item-result-name { min-width: 30rem; width: 100%; } -.view-accessibility-report-for-authors .js-form-item-result-name select { +.view-accessibility-report-for-authors .js-form-item-result-name select, +.view-accessibility-report-for-authors-using-revision .js-form-item-result-name .select2-container { min-width: 30rem; width: 100%; }