Commit c7568a53 authored by Jonathan Sacksick's avatar Jonathan Sacksick Committed by Jonathan Sacksick
Browse files

Issue #3310816 by jsacksick: Allow filtering by username / email from the licenses admin.

parent 0f7714cb
Loading
Loading
Loading
Loading
+361 −171
Original line number Diff line number Diff line
@@ -14,139 +14,14 @@ description: ''
tag: ''
base_table: commerce_license
base_field: license_id
core: 8.x
display:
  default:
    display_plugin: default
    id: default
    display_title: Master
    display_plugin: default
    position: 0
    display_options:
      access:
        type: perm
        options:
          perm: 'access commerce_license overview'
      cache:
        type: tag
        options: {  }
      query:
        type: views_query
        options:
          disable_sql_rewrite: false
          distinct: false
          replica: false
          query_comment: ''
          query_tags: {  }
      exposed_form:
        type: basic
        options:
          submit_button: Filter
          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: full
        options:
          items_per_page: 50
          offset: 0
          id: 0
          total_pages: null
          tags:
            previous: ‹‹
            next: ››
            first: '« First'
            last: 'Last »'
          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
          quantity: 9
      style:
        type: table
        options:
          grouping: {  }
          row_class: ''
          default_row_class: true
          override: true
          sticky: false
          caption: ''
          summary: ''
          description: ''
          columns:
            license_id: license_id
            label: label
            type: type
            uid: uid
            state: state
            changed: changed
            granted: granted
            operations: operations
          info:
            license_id:
              sortable: true
              default_sort_order: asc
              align: ''
              separator: ''
              empty_column: false
              responsive: ''
            label:
              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: ''
            uid:
              sortable: false
              default_sort_order: asc
              align: ''
              separator: ''
              empty_column: false
              responsive: ''
            state:
              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: ''
            granted:
              sortable: true
              default_sort_order: asc
              align: ''
              separator: ''
              empty_column: false
              responsive: ''
            operations:
              align: ''
              separator: ''
              empty_column: false
              responsive: ''
          default: '-1'
          empty_table: false
      row:
        type: fields
      title: Licenses
      fields:
        license_id:
          id: license_id
@@ -155,6 +30,9 @@ display:
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: commerce_license
          entity_field: license_id
          plugin_id: field
          label: ID
          exclude: false
          alter:
@@ -211,9 +89,6 @@ display:
          multi_type: separator
          separator: ', '
          field_api_classes: false
          entity_type: commerce_license
          entity_field: license_id
          plugin_id: field
        label:
          id: label
          table: commerce_license
@@ -221,6 +96,8 @@ display:
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: commerce_license
          plugin_id: commerce_license__entity_label
          label: Label
          exclude: false
          alter:
@@ -262,9 +139,7 @@ display:
          hide_empty: false
          empty_zero: false
          hide_alter_empty: true
          link_to_entity: false
          entity_type: commerce_license
          plugin_id: commerce_license__entity_label
          link_to_entity: true
        type:
          id: type
          table: commerce_license
@@ -272,6 +147,9 @@ display:
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: commerce_license
          entity_field: type
          plugin_id: commerce_entity_bundle
          label: 'License type'
          exclude: false
          alter:
@@ -328,9 +206,6 @@ display:
          separator: ', '
          field_api_classes: false
          hide_single_bundle: true
          entity_type: commerce_license
          entity_field: type
          plugin_id: commerce_entity_bundle
        uid:
          id: uid
          table: commerce_license
@@ -338,6 +213,9 @@ display:
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: commerce_license
          entity_field: uid
          plugin_id: field
          label: Owner
          exclude: false
          alter:
@@ -393,9 +271,6 @@ display:
          multi_type: separator
          separator: ', '
          field_api_classes: false
          entity_type: commerce_license
          entity_field: uid
          plugin_id: field
        state:
          id: state
          table: commerce_license
@@ -403,6 +278,9 @@ display:
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: commerce_license
          entity_field: state
          plugin_id: field
          label: State
          exclude: false
          alter:
@@ -457,9 +335,6 @@ display:
          multi_type: separator
          separator: ', '
          field_api_classes: false
          entity_type: commerce_license
          entity_field: state
          plugin_id: field
        changed:
          id: changed
          table: commerce_license
@@ -467,6 +342,9 @@ display:
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: commerce_license
          entity_field: changed
          plugin_id: field
          label: Updated
          exclude: false
          alter:
@@ -524,9 +402,6 @@ display:
          multi_type: separator
          separator: ', '
          field_api_classes: false
          entity_type: commerce_license
          entity_field: changed
          plugin_id: field
        granted:
          id: granted
          table: commerce_license
@@ -534,6 +409,9 @@ display:
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: commerce_license
          entity_field: granted
          plugin_id: field
          label: Granted
          exclude: false
          alter:
@@ -591,9 +469,6 @@ display:
          multi_type: separator
          separator: ', '
          field_api_classes: false
          entity_type: commerce_license
          entity_field: granted
          plugin_id: field
        operations:
          id: operations
          table: commerce_license
@@ -601,6 +476,8 @@ display:
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: commerce_license
          plugin_id: entity_operations
          label: 'Operations links'
          exclude: false
          alter:
@@ -643,9 +520,237 @@ display:
          empty_zero: false
          hide_alter_empty: true
          destination: true
        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: Name
          exclude: true
          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: 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
        mail:
          id: mail
          table: users_field_data
          field: mail
          relationship: uid
          group_type: group
          admin_label: ''
          entity_type: user
          entity_field: mail
          plugin_id: field
          label: Email
          exclude: true
          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: basic_string
          settings: {  }
          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
      pager:
        type: full
        options:
          offset: 0
          items_per_page: 50
          total_pages: null
          id: 0
          tags:
            next: ››
            previous: ‹‹
            first: '« First'
            last: 'Last »'
          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
          quantity: 9
      exposed_form:
        type: basic
        options:
          submit_button: Filter
          reset_button: true
          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 commerce_license overview'
      cache:
        type: tag
        options: {  }
      empty: {  }
      sorts:
        granted:
          id: granted
          table: commerce_license
          field: granted
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: commerce_license
          plugin_id: entity_operations
          entity_field: granted
          plugin_id: date
          order: DESC
          expose:
            label: ''
            field_identifier: granted
          exposed: false
          granularity: second
      arguments: {  }
      filters:
        combine:
          id: combine
          table: views
          field: combine
          relationship: none
          group_type: group
          admin_label: ''
          plugin_id: combine
          operator: contains
          value: ''
          group: 1
          exposed: true
          expose:
            operator_id: combine_op
            label: 'Name or email contains'
            description: ''
            use_operator: false
            operator: combine_op
            operator_limit_selection: false
            operator_list: {  }
            identifier: user
            required: false
            remember: false
            multiple: false
            remember_roles:
              authenticated: authenticated
              anonymous: '0'
              administrator: '0'
            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: {  }
          fields:
            name: name
            mail: mail
        state:
          id: state
          table: commerce_license
@@ -653,6 +758,9 @@ display:
          relationship: none
          group_type: group
          admin_label: ''
          entity_type: commerce_license
          entity_field: state
          plugin_id: state_machine_state
          operator: in
          value: {  }
          group: 1
@@ -663,6 +771,8 @@ display:
            description: ''
            use_operator: false
            operator: state_op
            operator_limit_selection: false
            operator_list: {  }
            identifier: state
            required: false
            remember: false
@@ -685,34 +795,114 @@ display:
            default_group: All
            default_group_multiple: {  }
            group_items: {  }
          entity_type: commerce_license
          entity_field: state
          plugin_id: state_machine_state
      sorts:
      filter_groups:
        operator: AND
        groups:
          1: AND
      style:
        type: table
        options:
          grouping: {  }
          row_class: ''
          default_row_class: true
          columns:
            license_id: license_id
            label: label
            type: type
            uid: uid
            state: state
            changed: changed
            granted: granted
            operations: operations
          default: '-1'
          info:
            license_id:
              sortable: true
              default_sort_order: asc
              align: ''
              separator: ''
              empty_column: false
              responsive: ''
            label:
              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: ''
            uid:
              sortable: false
              default_sort_order: asc
              align: ''
              separator: ''
              empty_column: false
              responsive: ''
            state:
              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: ''
            granted:
          id: granted
              sortable: true
              default_sort_order: asc
              align: ''
              separator: ''
              empty_column: false
              responsive: ''
            operations:
              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: false
          replica: false
          query_tags: {  }
      relationships:
        uid:
          id: uid
          table: commerce_license
          field: granted
          field: uid
          relationship: none
          group_type: group
          admin_label: ''
          order: DESC
          exposed: false
          expose:
            label: ''
          granularity: second
          admin_label: User
          entity_type: commerce_license
          entity_field: granted
          plugin_id: date
      title: Licenses
          entity_field: uid
          plugin_id: standard
          required: true
      header: {  }
      footer: {  }
      empty: {  }
      relationships: {  }
      arguments: {  }
      display_extenders: {  }
    cache_metadata:
      max-age: 0
      max-age: -1
      contexts:
        - 'languages:language_content'
        - 'languages:language_interface'
@@ -721,15 +911,15 @@ display:
        - user.permissions
      tags: {  }
  page_1:
    display_plugin: page
    id: page_1
    display_title: Page
    display_plugin: page
    position: 1
    display_options:
      display_extenders: {  }
      path: admin/commerce/licenses
    cache_metadata:
      max-age: 0
      max-age: -1
      contexts:
        - 'languages:language_content'
        - 'languages:language_interface'