From 8b3a51a9037c140b3887bf1ed1cba66bd3f940f5 Mon Sep 17 00:00:00 2001
From: Lily Yan <l26yan@uwaterloo.ca>
Date: Thu, 15 Feb 2024 13:29:15 -0500
Subject: [PATCH] ISTWCMS-6769 Filter by depth in order to service list only
 show top level taxomony terms

---
 .../install/views.view.uw_view_services.yml   | 584 ++++++++++++------
 1 file changed, 400 insertions(+), 184 deletions(-)

diff --git a/config/install/views.view.uw_view_services.yml b/config/install/views.view.uw_view_services.yml
index 1f69fa2..3677da1 100644
--- a/config/install/views.view.uw_view_services.yml
+++ b/config/install/views.view.uw_view_services.yml
@@ -22,52 +22,12 @@ base_table: taxonomy_term_field_data
 base_field: tid
 display:
   default:
-    display_plugin: default
     id: default
     display_title: Master
+    display_plugin: default
     position: 0
     display_options:
-      access:
-        type: perm
-        options:
-          perm: 'access content'
-      cache:
-        type: tag
-        options: {  }
-      query:
-        type: views_query
-        options:
-          disable_sql_rewrite: false
-          distinct: false
-          replica: false
-          query_comment: ''
-          query_tags: {  }
-          contextual_filters_or: false
-      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: none
-        options:
-          offset: 0
-      style:
-        type: html_list
-        options:
-          grouping: {  }
-          row_class: ''
-          default_row_class: true
-          type: ul
-          wrapper_class: item-list
-          class: ''
-      row:
-        type: fields
+      title: Services
       fields:
         tid:
           id: tid
@@ -76,6 +36,9 @@ display:
           relationship: none
           group_type: group
           admin_label: ''
+          entity_type: taxonomy_term
+          entity_field: tid
+          plugin_id: field
           label: ''
           exclude: true
           alter:
@@ -132,9 +95,6 @@ display:
           multi_type: separator
           separator: ', '
           field_api_classes: false
-          entity_type: taxonomy_term
-          entity_field: tid
-          plugin_id: field
         field_uw_service_category_icon:
           id: field_uw_service_category_icon
           table: taxonomy_term__field_uw_service_category_icon
@@ -142,6 +102,7 @@ display:
           relationship: none
           group_type: group
           admin_label: ''
+          plugin_id: field
           label: ''
           exclude: true
           alter:
@@ -186,8 +147,8 @@ display:
           click_sort_column: target_id
           type: media_thumbnail
           settings:
-            image_style: uw_is_icon
             image_link: ''
+            image_style: uw_is_icon
           group_column: target_id
           group_columns: {  }
           group_rows: true
@@ -198,7 +159,6 @@ display:
           multi_type: separator
           separator: ', '
           field_api_classes: false
-          plugin_id: field
         name:
           id: name
           table: taxonomy_term_field_data
@@ -206,6 +166,9 @@ display:
           relationship: none
           group_type: group
           admin_label: ''
+          entity_type: taxonomy_term
+          entity_field: name
+          plugin_id: term_name
           label: ''
           exclude: true
           alter:
@@ -262,9 +225,6 @@ display:
           separator: ', '
           field_api_classes: false
           convert_spaces: false
-          entity_type: taxonomy_term
-          entity_field: name
-          plugin_id: term_name
         nid:
           id: nid
           table: node_field_data
@@ -272,6 +232,9 @@ display:
           relationship: reverse__node__field_uw_service_category
           group_type: count_distinct
           admin_label: ''
+          entity_type: node
+          entity_field: nid
+          plugin_id: field
           label: ''
           exclude: false
           alter:
@@ -313,14 +276,6 @@ display:
           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: )
           click_sort_column: value
           type: number_integer
           settings:
@@ -334,10 +289,15 @@ display:
           delta_reversed: false
           delta_first_last: false
           multi_type: separator
+          separator: ','
           field_api_classes: false
-          entity_type: node
-          entity_field: nid
-          plugin_id: field
+          set_precision: false
+          precision: 0
+          decimal: .
+          format_plural: 0
+          format_plural_string: !!binary MQNAY291bnQ=
+          prefix: (
+          suffix: )
         description__value:
           id: description__value
           table: taxonomy_term_field_data
@@ -345,6 +305,9 @@ display:
           relationship: none
           group_type: group
           admin_label: ''
+          entity_type: taxonomy_term
+          entity_field: description
+          plugin_id: field
           label: ''
           exclude: false
           alter:
@@ -399,9 +362,73 @@ display:
           multi_type: separator
           separator: ', '
           field_api_classes: false
+      pager:
+        type: none
+        options:
+          offset: 0
+      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: 'access content'
+      cache:
+        type: tag
+        options: {  }
+      empty:
+        area:
+          id: area
+          table: views
+          field: area
+          relationship: none
+          group_type: group
+          admin_label: ''
+          plugin_id: text
+          empty: true
+          content:
+            value: 'There are no services available.'
+            format: uw_tf_standard
+          tokenize: false
+      sorts:
+        weight:
+          id: weight
+          table: taxonomy_term_field_data
+          field: weight
+          relationship: none
+          group_type: group
+          admin_label: ''
           entity_type: taxonomy_term
-          entity_field: description
-          plugin_id: field
+          entity_field: weight
+          plugin_id: standard
+          order: ASC
+          expose:
+            label: ''
+            field_identifier: weight
+          exposed: false
+        name:
+          id: name
+          table: taxonomy_term_field_data
+          field: name
+          relationship: none
+          group_type: group
+          admin_label: ''
+          entity_type: taxonomy_term
+          entity_field: name
+          plugin_id: standard
+          order: ASC
+          expose:
+            label: ''
+            field_identifier: name
+          exposed: false
+      arguments: {  }
       filters:
         status:
           id: status
@@ -410,6 +437,9 @@ display:
           relationship: none
           group_type: group
           admin_label: ''
+          entity_type: taxonomy_term
+          entity_field: status
+          plugin_id: boolean
           operator: '='
           value: '1'
           group: 1
@@ -440,9 +470,6 @@ display:
             default_group: All
             default_group_multiple: {  }
             group_items: {  }
-          plugin_id: boolean
-          entity_type: taxonomy_term
-          entity_field: status
         vid:
           id: vid
           table: taxonomy_term_field_data
@@ -450,6 +477,9 @@ display:
           relationship: none
           group_type: group
           admin_label: ''
+          entity_type: taxonomy_term
+          entity_field: vid
+          plugin_id: bundle
           operator: in
           value:
             uw_vocab_service_categories: uw_vocab_service_categories
@@ -482,9 +512,6 @@ display:
             default_group: All
             default_group_multiple: {  }
             group_items: {  }
-          entity_type: taxonomy_term
-          entity_field: vid
-          plugin_id: bundle
         status_1:
           id: status_1
           table: node_field_data
@@ -492,6 +519,9 @@ display:
           relationship: reverse__node__field_uw_service_category
           group_type: group
           admin_label: ''
+          entity_type: node
+          entity_field: status
+          plugin_id: boolean
           operator: '='
           value: '1'
           group: 1
@@ -522,9 +552,6 @@ display:
             default_group: All
             default_group_multiple: {  }
             group_items: {  }
-          entity_type: node
-          entity_field: status
-          plugin_id: boolean
         field_uw_service_status_value:
           id: field_uw_service_status_value
           table: node__field_uw_service_status
@@ -532,6 +559,7 @@ display:
           relationship: reverse__node__field_uw_service_category
           group_type: group
           admin_label: ''
+          plugin_id: list_field
           operator: or
           value:
             active: active
@@ -565,55 +593,26 @@ display:
             default_group_multiple: {  }
             group_items: {  }
           reduce_duplicates: false
-          plugin_id: list_field
-      sorts:
-        weight:
-          id: weight
-          table: taxonomy_term_field_data
-          field: weight
-          relationship: none
-          group_type: group
-          admin_label: ''
-          order: ASC
-          exposed: false
-          expose:
-            label: ''
-            field_identifier: weight
-          entity_type: taxonomy_term
-          entity_field: weight
-          plugin_id: standard
-        name:
-          id: name
-          table: taxonomy_term_field_data
-          field: name
-          relationship: none
-          group_type: group
-          admin_label: ''
-          order: ASC
-          exposed: false
-          expose:
-            label: ''
-            field_identifier: name
-          entity_type: taxonomy_term
-          entity_field: name
-          plugin_id: standard
-      title: Services
-      header: {  }
-      footer: {  }
-      empty:
-        area:
-          id: area
-          table: views
-          field: area
-          relationship: none
-          group_type: group
-          admin_label: ''
-          empty: true
-          tokenize: false
-          content:
-            value: 'There are no services available.'
-            format: uw_tf_standard
-          plugin_id: text
+      style:
+        type: html_list
+        options:
+          grouping: {  }
+          row_class: ''
+          default_row_class: true
+          type: ul
+          wrapper_class: item-list
+          class: ''
+      row:
+        type: fields
+      query:
+        type: views_query
+        options:
+          query_comment: ''
+          disable_sql_rewrite: false
+          distinct: false
+          replica: false
+          query_tags: {  }
+          contextual_filters_or: false
       relationships:
         reverse__node__field_uw_service_category:
           id: reverse__node__field_uw_service_category
@@ -622,12 +621,13 @@ display:
           relationship: none
           group_type: group
           admin_label: field_uw_service_category
-          required: false
           entity_type: taxonomy_term
           plugin_id: entity_reverse
-      arguments: {  }
-      display_extenders: {  }
+          required: false
       group_by: true
+      header: {  }
+      footer: {  }
+      display_extenders: {  }
     cache_metadata:
       max-age: -1
       contexts:
@@ -637,31 +637,12 @@ display:
       tags:
         - 'config:field.storage.taxonomy_term.field_uw_service_category_icon'
   services_by_audience_page:
-    display_plugin: page
     id: services_by_audience_page
     display_title: 'Services by Audience Page'
+    display_plugin: page
     position: 2
     display_options:
-      display_extenders:
-        metatag_display_extender:
-          metatags:
-            title: '[current-page:title] | [site:name]'
-            description: 'Listing the audiences with published service nodes on the [site:name] site.'
-            content_language: en-CA
-            image_src: 'https://uwaterloo.ca/university-of-waterloo-logo-152.png'
-            og_url: '[current-page:url:absolute]'
-            og_title: '[current-page:metatag:title]'
-            og_description: '[current-page:metatag:description]'
-            og_image: '[current-page:metatag:image_src]'
-            og_locale: en_CA
-      display_description: ''
       title: 'Services by audience'
-      defaults:
-        title: false
-        fields: false
-        relationships: false
-        filters: false
-        filter_groups: false
       fields:
         tid:
           id: tid
@@ -670,6 +651,9 @@ display:
           relationship: none
           group_type: group
           admin_label: ''
+          entity_type: taxonomy_term
+          entity_field: tid
+          plugin_id: field
           label: ''
           exclude: true
           alter:
@@ -726,9 +710,6 @@ display:
           multi_type: separator
           separator: ', '
           field_api_classes: false
-          entity_type: taxonomy_term
-          entity_field: tid
-          plugin_id: field
         name:
           id: name
           table: taxonomy_term_field_data
@@ -736,6 +717,9 @@ display:
           relationship: none
           group_type: group
           admin_label: ''
+          entity_type: taxonomy_term
+          entity_field: name
+          plugin_id: term_name
           label: ''
           exclude: true
           alter:
@@ -792,9 +776,6 @@ display:
           separator: ', '
           field_api_classes: false
           convert_spaces: false
-          entity_type: taxonomy_term
-          entity_field: name
-          plugin_id: term_name
         nid:
           id: nid
           table: node_field_data
@@ -802,6 +783,9 @@ display:
           relationship: reverse__node__field_uw_service_audience
           group_type: count_distinct
           admin_label: ''
+          entity_type: node
+          entity_field: nid
+          plugin_id: field
           label: ''
           exclude: false
           alter:
@@ -843,14 +827,6 @@ display:
           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: )
           click_sort_column: value
           type: number_integer
           settings:
@@ -864,21 +840,15 @@ display:
           delta_reversed: false
           delta_first_last: false
           multi_type: separator
+          separator: ','
           field_api_classes: false
-          entity_type: node
-          entity_field: nid
-          plugin_id: field
-      relationships:
-        reverse__node__field_uw_service_audience:
-          id: reverse__node__field_uw_service_audience
-          table: taxonomy_term_field_data
-          field: reverse__node__field_uw_service_audience
-          relationship: none
-          group_type: group
-          admin_label: field_uw_service_audience
-          required: false
-          entity_type: taxonomy_term
-          plugin_id: entity_reverse
+          set_precision: false
+          precision: 0
+          decimal: .
+          format_plural: 0
+          format_plural_string: !!binary MQNAY291bnQ=
+          prefix: (
+          suffix: )
       filters:
         status:
           id: status
@@ -887,6 +857,9 @@ display:
           relationship: none
           group_type: group
           admin_label: ''
+          entity_type: taxonomy_term
+          entity_field: status
+          plugin_id: boolean
           operator: '='
           value: '1'
           group: 1
@@ -917,9 +890,6 @@ display:
             default_group: All
             default_group_multiple: {  }
             group_items: {  }
-          plugin_id: boolean
-          entity_type: taxonomy_term
-          entity_field: status
         vid:
           id: vid
           table: taxonomy_term_field_data
@@ -927,6 +897,9 @@ display:
           relationship: none
           group_type: group
           admin_label: ''
+          entity_type: taxonomy_term
+          entity_field: vid
+          plugin_id: bundle
           operator: in
           value:
             uw_vocab_audience: uw_vocab_audience
@@ -959,9 +932,6 @@ display:
             default_group: All
             default_group_multiple: {  }
             group_items: {  }
-          entity_type: taxonomy_term
-          entity_field: vid
-          plugin_id: bundle
         status_1:
           id: status_1
           table: node_field_data
@@ -969,6 +939,9 @@ display:
           relationship: reverse__node__field_uw_service_audience
           group_type: group
           admin_label: ''
+          entity_type: node
+          entity_field: status
+          plugin_id: boolean
           operator: '='
           value: '1'
           group: 1
@@ -999,9 +972,6 @@ display:
             default_group: All
             default_group_multiple: {  }
             group_items: {  }
-          entity_type: node
-          entity_field: status
-          plugin_id: boolean
         field_uw_service_status_value:
           id: field_uw_service_status_value
           table: node__field_uw_service_status
@@ -1009,6 +979,7 @@ display:
           relationship: reverse__node__field_uw_service_audience
           group_type: group
           admin_label: ''
+          plugin_id: list_field
           operator: or
           value:
             active: active
@@ -1042,11 +1013,40 @@ display:
             default_group_multiple: {  }
             group_items: {  }
           reduce_duplicates: false
-          plugin_id: list_field
       filter_groups:
         operator: AND
         groups:
           1: AND
+      defaults:
+        title: false
+        relationships: false
+        fields: false
+        filters: false
+        filter_groups: false
+      relationships:
+        reverse__node__field_uw_service_audience:
+          id: reverse__node__field_uw_service_audience
+          table: taxonomy_term_field_data
+          field: reverse__node__field_uw_service_audience
+          relationship: none
+          group_type: group
+          admin_label: field_uw_service_audience
+          entity_type: taxonomy_term
+          plugin_id: entity_reverse
+          required: false
+      display_description: ''
+      display_extenders:
+        metatag_display_extender:
+          metatags:
+            title: '[current-page:title] | [site:name]'
+            description: 'Listing the audiences with published service nodes on the [site:name] site.'
+            content_language: en-CA
+            image_src: 'https://uwaterloo.ca/university-of-waterloo-logo-152.png'
+            og_url: '[current-page:url:absolute]'
+            og_title: '[current-page:metatag:title]'
+            og_description: '[current-page:metatag:description]'
+            og_image: '[current-page:metatag:image_src]'
+            og_locale: en_CA
       path: services/audience
     cache_metadata:
       max-age: -1
@@ -1056,11 +1056,228 @@ display:
         - user.permissions
       tags: {  }
   services_page:
-    display_plugin: page
     id: services_page
     display_title: 'Service Categories Page'
+    display_plugin: page
     position: 1
     display_options:
+      filters:
+        status:
+          id: status
+          table: taxonomy_term_field_data
+          field: status
+          relationship: none
+          group_type: group
+          admin_label: ''
+          entity_type: taxonomy_term
+          entity_field: status
+          plugin_id: boolean
+          operator: '='
+          value: '1'
+          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: {  }
+        vid:
+          id: vid
+          table: taxonomy_term_field_data
+          field: vid
+          relationship: none
+          group_type: group
+          admin_label: ''
+          entity_type: taxonomy_term
+          entity_field: vid
+          plugin_id: bundle
+          operator: in
+          value:
+            uw_vocab_service_categories: uw_vocab_service_categories
+          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
+            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: {  }
+        status_1:
+          id: status_1
+          table: node_field_data
+          field: status
+          relationship: reverse__node__field_uw_service_category
+          group_type: group
+          admin_label: ''
+          entity_type: node
+          entity_field: status
+          plugin_id: boolean
+          operator: '='
+          value: '1'
+          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: {  }
+        field_uw_service_status_value:
+          id: field_uw_service_status_value
+          table: node__field_uw_service_status
+          field: field_uw_service_status_value
+          relationship: reverse__node__field_uw_service_category
+          group_type: group
+          admin_label: ''
+          plugin_id: list_field
+          operator: or
+          value:
+            active: active
+          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
+            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: {  }
+          reduce_duplicates: false
+        depth_level:
+          id: depth_level
+          table: taxonomy_term_field_data
+          field: depth_level
+          relationship: none
+          group_type: group
+          admin_label: ''
+          entity_type: taxonomy_term
+          plugin_id: numeric
+          operator: '='
+          value:
+            min: ''
+            max: ''
+            value: '1'
+          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
+            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
+      defaults:
+        filters: false
+        filter_groups: false
+      display_description: ''
       display_extenders:
         metatag_display_extender:
           metatags:
@@ -1076,7 +1293,6 @@ display:
             og_locale: en_CA
             twitter_cards_type: summary_large_image
       path: services
-      display_description: ''
     cache_metadata:
       max-age: -1
       contexts:
-- 
GitLab