From d846f8adda1e502eb0c6865d3c540ac34a9cfb24 Mon Sep 17 00:00:00 2001 From: Mark Conroy Date: Mon, 25 Aug 2025 16:46:25 +0100 Subject: [PATCH 1/3] Show last user to update content --- config/install/views.view.content.yml | 187 +++++++++++++++++++------- 1 file changed, 142 insertions(+), 45 deletions(-) diff --git a/config/install/views.view.content.yml b/config/install/views.view.content.yml index ed37676..1135eb7 100644 --- a/config/install/views.view.content.yml +++ b/config/install/views.view.content.yml @@ -121,64 +121,123 @@ display: multi_type: separator separator: ', ' field_api_classes: false - name: - id: name - table: users_field_data - field: name - relationship: uid - entity_type: user - entity_field: name - plugin_id: field - label: Author - exclude: false - alter: - alter_text: false - element_class: '' - element_default_classes: true - empty: '' - hide_empty: false - empty_zero: false - hide_alter_empty: true - type: user_name - status: - id: status - table: node_field_data - field: status + revision_uid: + id: revision_uid + table: node_revision + field: revision_uid + relationship: none + group_type: group + admin_label: '' entity_type: node - entity_field: status + entity_field: revision_uid plugin_id: field - label: Status + label: 'Updated 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: false + element_wrapper_type: '' + element_wrapper_class: '' element_default_classes: true empty: '' hide_empty: false empty_zero: false hide_alter_empty: true - type: boolean + click_sort_column: target_id + type: entity_reference_label settings: - format: custom - format_custom_false: Unpublished - format_custom_true: Published + 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 changed: id: changed table: node_field_data field: changed + relationship: none + group_type: group + admin_label: '' entity_type: node entity_field: changed plugin_id: field - label: Updated + label: 'Last Updated' 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: short @@ -193,6 +252,39 @@ display: 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 + status: + id: status + table: node_field_data + field: status + entity_type: node + entity_field: status + plugin_id: field + label: Status + exclude: false + alter: + alter_text: false + element_class: '' + element_default_classes: true + empty: '' + hide_empty: false + empty_zero: false + hide_alter_empty: true + type: boolean + settings: + format: custom + format_custom_false: Unpublished + format_custom_true: Published langcode: id: langcode table: node_field_data @@ -534,29 +626,32 @@ display: expose: operator_limit_selection: false operator_list: { } - uid: - id: uid - table: users_field_data - field: uid - relationship: uid + revision_uid: + id: revision_uid + table: node_revision + field: revision_uid + relationship: none group_type: group admin_label: '' - entity_type: user - entity_field: uid - plugin_id: user_name - operator: in - value: { } + entity_type: node + entity_field: revision_uid + plugin_id: numeric + operator: '=' + value: + min: '' + max: '' + value: '' group: 1 exposed: true expose: - operator_id: uid_op - label: Author + operator_id: revision_uid_op + label: 'Last updated by' description: '' use_operator: false - operator: uid_op + operator: revision_uid_op operator_limit_selection: false operator_list: { } - identifier: uid + identifier: revision_uid required: false remember: false multiple: false @@ -570,7 +665,9 @@ display: localgov_news_editor: '0' localgov_user_manager: '0' localgov_admin: '0' - reduce: false + min_placeholder: '' + max_placeholder: '' + placeholder: '' is_grouped: false group_info: label: '' From 77ce0265c67445e5a624e9fd501f4b1919d606ec Mon Sep 17 00:00:00 2001 From: Finn Date: Tue, 30 Sep 2025 14:45:36 +0100 Subject: [PATCH 2/3] Update content views listing with exposed username filter using the updated by relationship. --- config/install/views.view.content.yml | 48 ++++++++++++++++----------- 1 file changed, 28 insertions(+), 20 deletions(-) diff --git a/config/install/views.view.content.yml b/config/install/views.view.content.yml index 1135eb7..82e7976 100644 --- a/config/install/views.view.content.yml +++ b/config/install/views.view.content.yml @@ -626,32 +626,29 @@ display: expose: operator_limit_selection: false operator_list: { } - revision_uid: - id: revision_uid - table: node_revision - field: revision_uid - relationship: none + uid: + id: uid + table: users_field_data + field: uid + relationship: revision_uid group_type: group admin_label: '' - entity_type: node - entity_field: revision_uid - plugin_id: numeric - operator: '=' - value: - min: '' - max: '' - value: '' + entity_type: user + entity_field: uid + plugin_id: user_name + operator: in + value: { } group: 1 exposed: true expose: - operator_id: revision_uid_op + operator_id: uid_op label: 'Last updated by' description: '' use_operator: false - operator: revision_uid_op + operator: uid_op operator_limit_selection: false operator_list: { } - identifier: revision_uid + identifier: uid required: false remember: false multiple: false @@ -665,9 +662,7 @@ display: localgov_news_editor: '0' localgov_user_manager: '0' localgov_admin: '0' - min_placeholder: '' - max_placeholder: '' - placeholder: '' + reduce: false is_grouped: false group_info: label: '' @@ -786,7 +781,20 @@ display: id: uid table: node_field_data field: uid - admin_label: author + relationship: none + group_type: group + admin_label: Author + plugin_id: standard + required: true + revision_uid: + id: revision_uid + table: node_revision + field: revision_uid + relationship: none + group_type: group + admin_label: 'Last updated' + entity_type: node + entity_field: revision_uid plugin_id: standard required: true show_admin_links: false From e1bc210cac99ffdd8ab59ad15751a562f4468414 Mon Sep 17 00:00:00 2001 From: Mark Conroy Date: Wed, 1 Oct 2025 09:30:43 +0100 Subject: [PATCH 3/3] Update label --- config/install/views.view.content.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/install/views.view.content.yml b/config/install/views.view.content.yml index 82e7976..f3c6df4 100644 --- a/config/install/views.view.content.yml +++ b/config/install/views.view.content.yml @@ -792,7 +792,7 @@ display: field: revision_uid relationship: none group_type: group - admin_label: 'Last updated' + admin_label: 'Last updated by' entity_type: node entity_field: revision_uid plugin_id: standard