From 66533cebe76d6c222d3b8dfb87cdd54527e7214b Mon Sep 17 00:00:00 2001 From: abaghdasaryan Date: Wed, 30 Mar 2022 12:39:04 +0400 Subject: [PATCH 1/2] DP-24415: View changes related to collections and documents --- .../views.view.add_collections_documents.yml | 3 +- .../config/views.view.all_documents.yml | 197 +++++++++++++++++- 2 files changed, 198 insertions(+), 2 deletions(-) diff --git a/conf/drupal/config/views.view.add_collections_documents.yml b/conf/drupal/config/views.view.add_collections_documents.yml index 3502630984..2b1d2b1011 100644 --- a/conf/drupal/config/views.view.add_collections_documents.yml +++ b/conf/drupal/config/views.view.add_collections_documents.yml @@ -18,6 +18,7 @@ dependencies: - user - views_autocomplete_filters - views_bulk_operations + - views_porter_stemmer _core: default_config_hash: '-fJpPBLfGRPa6VPFiBweHcjlSOTqltsw5cbz8VVqXAI' id: add_collections_documents @@ -1389,7 +1390,7 @@ display: operator_id: field_collections_target_id_op label: 'Collection (filter based on existing)' description: '' - use_operator: false + use_operator: true operator: field_collections_target_id_op operator_limit_selection: false operator_list: { } diff --git a/conf/drupal/config/views.view.all_documents.yml b/conf/drupal/config/views.view.all_documents.yml index 73a3a93006..1acf7a1861 100644 --- a/conf/drupal/config/views.view.all_documents.yml +++ b/conf/drupal/config/views.view.all_documents.yml @@ -4,6 +4,8 @@ status: true dependencies: config: - field.storage.media.field_content_type + - field.storage.media.field_document_label + - field.storage.media.field_document_listing_desc - field.storage.media.field_organizations - field.storage.media.field_title - media.type.document @@ -21,6 +23,7 @@ dependencies: - user - views_autocomplete_filters - views_data_export + - views_porter_stemmer id: all_documents label: 'All Documents' module: views @@ -1351,6 +1354,69 @@ display: multi_type: separator separator: ', ' field_api_classes: false + field_title: + id: field_title + table: media__field_title + field: field_title + relationship: none + group_type: group + admin_label: '' + 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: 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 view_media_1: id: view_media_1 table: media @@ -1360,7 +1426,7 @@ display: admin_label: '' entity_type: media plugin_id: entity_link - label: Title/Permalink + label: Permalink exclude: false alter: alter_text: true @@ -1782,6 +1848,132 @@ display: text: link output_url_as_text: true absolute: true + field_document_label: + id: field_document_label + table: media__field_document_label + field: field_document_label + relationship: none + group_type: group + admin_label: '' + plugin_id: field + label: Label(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 + field_document_listing_desc: + id: field_document_listing_desc + table: media__field_document_listing_desc + field: field_document_listing_desc + relationship: none + group_type: group + admin_label: '' + plugin_id: field + label: 'Listing description' + 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: 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 style: type: data_export options: @@ -1833,7 +2025,10 @@ display: - user.permissions tags: - 'config:field.storage.media.field_content_type' + - 'config:field.storage.media.field_document_label' + - 'config:field.storage.media.field_document_listing_desc' - 'config:field.storage.media.field_organizations' + - 'config:field.storage.media.field_title' - 'config:workflow_list' page_1: id: page_1 From e98f236822d397b0253e0df6f9790a395fcec8b9 Mon Sep 17 00:00:00 2001 From: abaghdasaryan Date: Wed, 30 Mar 2022 12:40:04 +0400 Subject: [PATCH 2/2] Changelog --- changelogs/DP-24415.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 changelogs/DP-24415.yml diff --git a/changelogs/DP-24415.yml b/changelogs/DP-24415.yml new file mode 100644 index 0000000000..00cb7b98c3 --- /dev/null +++ b/changelogs/DP-24415.yml @@ -0,0 +1,41 @@ +# +# Write your changelog entry here. Every pull request must have a changelog yml file. +# +# Change types: +# ############################################################################# +# You can use one of the following types: +# - Added: For new features. +# - Changed: For changes to existing functionality. +# - Deprecated: For soon-to-be removed features. +# - Removed: For removed features. +# - Fixed: For any bug fixes. +# - Security: In case of vulnerabilities. +# +# Format +# ############################################################################# +# The format is crucial. Please follow the examples below. For reference, the requirements are: +# - All 3 parts are required and you must include "Type", "description" and "issue". +# - "Type" must be left aligned and followed by a colon. +# - "description" must be indented with 2 spaces followed by a colon +# - "issue" must be indented with 4 spaces followed by a colon. +# - "issue" is for the Jira ticket number only e.g. DP-1234 +# - No extra spaces, indents, or blank lines are allowed. +# +# Example: +# ############################################################################# +# Fixed: +# - description: Fixes scrolling on edit pages in Safari. +# issue: DP-13314 +# +# You may add more than 1 description & issue for each type using the following format: +# Changed: +# - description: Automating the release branch. +# issue: DP-10166 +# - description: Second change item that needs a description. +# issue: DP-19875 +# - description: Third change item that needs a description along with an issue. +# issue: DP-19843 +# +Changed: + - description: View changes related to collections and documents. + issue: DP-24415