From 41da0d4aa6cbac6433d2f55a323d0250bde3998c Mon Sep 17 00:00:00 2001 From: Elizabeth Ileleji Date: Thu, 17 Oct 2024 08:42:22 -0400 Subject: [PATCH 1/2] added bulk unpublishing orphan documents error for specific ids --- .../config/views.view.documents_report.yml | 56 ++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/conf/drupal/config/views.view.documents_report.yml b/conf/drupal/config/views.view.documents_report.yml index 9b832eab4f..524c87b150 100644 --- a/conf/drupal/config/views.view.documents_report.yml +++ b/conf/drupal/config/views.view.documents_report.yml @@ -6,8 +6,12 @@ dependencies: - field.storage.media.field_organizations - media.type.document module: + - csv_serialization - media + - rest + - serialization - user + - views_data_export id: documents_report label: 'Documents report' module: views @@ -454,7 +458,7 @@ display: options: perm: 'use content reports' cache: - type: tag + type: none options: { } empty: { } sorts: @@ -633,6 +637,56 @@ display: - user.permissions tags: - 'config:field.storage.media.field_organizations' + data_export_1: + id: data_export_1 + display_title: 'Data export' + display_plugin: data_export + position: 2 + display_options: + pager: + type: some + options: + offset: 0 + items_per_page: 0 + 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 + display_extenders: + metatag_display_extender: + metatags: { } + tokenize: false + path: admin/ma-dash/reports/documents-report/export + displays: + page_docs: page_docs + default: '0' + filename: 'massgov-documents-report-[date:html_datetime].csv' + automatic_download: false + export_method: batch + export_batch_size: 100 + store_in_public_file_directory: false + custom_redirect_path: false + redirect_to_display: page_docs + include_query_params: true + cache_metadata: + max-age: -1 + contexts: + - 'languages:language_content' + - 'languages:language_interface' + - request_format + - user.permissions + tags: + - 'config:field.storage.media.field_organizations' page_docs: id: page_docs display_title: Page From fae684c28aa4d0791e8e6a7bc3664db63f9407fe Mon Sep 17 00:00:00 2001 From: Elizabeth Ileleji Date: Thu, 17 Oct 2024 08:46:27 -0400 Subject: [PATCH 2/2] Added change log file --- changelogs/DP-35304.yml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 changelogs/DP-35304.yml diff --git a/changelogs/DP-35304.yml b/changelogs/DP-35304.yml new file mode 100644 index 0000000000..d69cba5327 --- /dev/null +++ b/changelogs/DP-35304.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 +# +Added: + - description: Bulk unpublishing orphan documents error for specific ids + issue: DP-35304