Skip to content

Commit

Permalink
Merge pull request #1550 from danskernesdigitalebibliotek/DDFHER-34-b…
Browse files Browse the repository at this point in the history
…rugere-under-oprettelse-skal-ikke-fremga-af-brugerlisten

Add filter criteria for User Roles in `admin/user`
  • Loading branch information
kasperbirch1 authored Oct 3, 2024
2 parents 77b6118 + dcc7599 commit 4a390ab
Showing 1 changed file with 228 additions and 37 deletions.
265 changes: 228 additions & 37 deletions config/sync/views.view.user_admin_people.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,14 @@ status: true
dependencies:
config:
- field.storage.user.field_author_name
- user.role.administrator
- user.role.editor
- user.role.external_system
- user.role.local_administrator
- user.role.mediator
- user.role.patron
module:
- better_exposed_filters
- user
_core:
default_config_hash: GbPVHdpSCucZ1MunS3Lai6FtyVVfmP9rJHk1GZ73JY0
Expand Down Expand Up @@ -558,7 +564,7 @@ display:
offset_label: Offset
quantity: 9
exposed_form:
type: basic
type: bef
options:
submit_button: Filter
reset_button: true
Expand All @@ -567,6 +573,90 @@ display:
expose_sort_order: true
sort_asc_label: Asc
sort_desc_label: Desc
text_input_required: 'Select any filter and click on Apply to see results'
text_input_required_format: basic
bef:
general:
autosubmit: false
autosubmit_exclude_textfield: false
autosubmit_textfield_delay: 500
autosubmit_hide: false
input_required: false
allow_secondary: false
secondary_label: 'Advanced options'
secondary_open: false
reset_button_always_show: false
filter:
combine:
plugin_id: default
advanced:
placeholder_text: ''
collapsible: false
collapsible_disable_automatic_open: false
is_secondary: false
options_show_only_used: false
options_show_only_used_filtered: false
options_hide_when_empty: false
options_show_items_count: false
status:
plugin_id: default
advanced:
sort_options: false
rewrite:
filter_rewrite_values: ''
filter_rewrite_values_key: false
collapsible: false
collapsible_disable_automatic_open: false
is_secondary: false
options_show_only_used: false
options_show_only_used_filtered: false
options_hide_when_empty: false
options_show_items_count: false
permission:
plugin_id: default
advanced:
sort_options: false
rewrite:
filter_rewrite_values: ''
filter_rewrite_values_key: false
collapsible: false
collapsible_disable_automatic_open: false
is_secondary: false
options_show_only_used: false
options_show_only_used_filtered: false
options_hide_when_empty: false
options_show_items_count: false
roles_target_id:
plugin_id: bef
advanced:
sort_options: false
rewrite:
filter_rewrite_values: ''
filter_rewrite_values_key: false
collapsible: false
collapsible_disable_automatic_open: false
is_secondary: false
select_all_none: false
select_all_none_nested: false
display_inline: true
options_show_only_used: false
options_show_only_used_filtered: false
options_hide_when_empty: false
options_show_items_count: false
roles_target_id_1:
plugin_id: default
advanced:
sort_options: false
rewrite:
filter_rewrite_values: ''
filter_rewrite_values_key: false
collapsible: false
collapsible_disable_automatic_open: false
is_secondary: false
options_show_only_used: false
options_show_only_used_filtered: false
options_hide_when_empty: false
options_show_items_count: false
access:
type: perm
options:
Expand Down Expand Up @@ -703,34 +793,39 @@ display:
title: Blocked
operator: '='
value: '0'
roles_target_id:
id: roles_target_id
permission:
id: permission
table: user__roles
field: roles_target_id
field: permission
relationship: none
group_type: group
admin_label: ''
plugin_id: user_roles
plugin_id: user_permissions
operator: or
value: { }
group: 1
exposed: true
expose:
operator_id: roles_target_id_op
label: Role
operator_id: permission_op
label: Permission
description: ''
use_operator: false
operator: roles_target_id_op
operator: permission_op
operator_limit_selection: false
operator_list: { }
identifier: role
identifier: permission
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
anonymous: '0'
administrator: '0'
local_administrator: '0'
editor: '0'
mediator: '0'
patron: '0'
external_system: '0'
reduce: false
is_grouped: false
group_info:
Expand All @@ -745,47 +840,134 @@ display:
default_group_multiple: { }
group_items: { }
reduce_duplicates: false
permission:
id: permission
roles_target_id_1:
id: roles_target_id_1
table: user__roles
field: permission
field: roles_target_id
relationship: none
group_type: group
admin_label: ''
plugin_id: user_permissions
operator: or
entity_type: user
entity_field: roles
plugin_id: user_roles
operator: not
value: { }
group: 1
exposed: true
expose:
operator_id: permission_op
label: Permission
operator_id: roles_target_id_1_op
label: 'Has no role'
description: ''
use_operator: false
operator: permission_op
operator: roles_target_id_1_op
operator_limit_selection: false
operator_list: { }
identifier: permission
identifier: no_roles
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
anonymous: '0'
administrator: '0'
local_administrator: '0'
editor: '0'
mediator: '0'
patron: '0'
external_system: '0'
reduce: false
is_grouped: false
is_grouped: true
group_info:
label: ''
label: 'Has role'
description: ''
identifier: ''
identifier: has_role
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group: '2'
default_group_multiple: { }
group_items: { }
group_items:
1:
title: 'Has no role'
operator: not
value:
administrator: administrator
local_administrator: local_administrator
editor: editor
mediator: mediator
patron: patron
external_system: external_system
2:
title: 'Has role'
operator: or
value:
administrator: administrator
local_administrator: local_administrator
editor: editor
mediator: mediator
patron: patron
external_system: external_system
reduce_duplicates: false
roles_target_id_2:
id: roles_target_id_2
table: user__roles
field: roles_target_id
relationship: none
group_type: group
admin_label: ''
entity_type: user
entity_field: roles
plugin_id: user_roles
operator: or
value:
patron: patron
group: 1
exposed: true
expose:
operator_id: roles_target_id_2_op
label: 'Include patron'
description: ''
use_operator: false
operator: roles_target_id_2_op
operator_limit_selection: false
operator_list: { }
identifier: patron
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
anonymous: '0'
administrator: '0'
local_administrator: '0'
editor: '0'
mediator: '0'
patron: '0'
external_system: '0'
reduce: false
is_grouped: true
group_info:
label: 'Include patron'
description: ''
identifier: roles_target_id_2
optional: true
widget: select
multiple: false
remember: false
default_group: '2'
default_group_multiple: { }
group_items:
1:
title: 'Include patrons'
operator: or
value:
patron: patron
2:
title: 'Exclude patrons'
operator: not
value:
patron: patron
reduce_duplicates: false
default_langcode:
id: default_langcode
Expand Down Expand Up @@ -827,36 +1009,45 @@ display:
default_group: All
default_group_multiple: { }
group_items: { }
roles_target_id_1:
id: roles_target_id_1
roles_target_id:
id: roles_target_id
table: user__roles
field: roles_target_id
relationship: none
group_type: group
admin_label: ''
entity_type: user
entity_field: roles
plugin_id: user_roles
operator: not
operator: or
value:
patron: patron
administrator: administrator
local_administrator: local_administrator
editor: editor
mediator: mediator
external_system: external_system
group: 1
exposed: false
exposed: true
expose:
operator_id: ''
label: ''
operator_id: roles_target_id_op
label: Role
description: ''
use_operator: false
operator: ''
operator: roles_target_id_op
operator_limit_selection: false
operator_list: { }
identifier: ''
identifier: role
required: false
remember: false
multiple: false
multiple: true
remember_roles:
authenticated: authenticated
reduce: false
anonymous: '0'
administrator: '0'
local_administrator: '0'
editor: '0'
mediator: '0'
patron: '0'
external_system: '0'
reduce: true
is_grouped: false
group_info:
label: ''
Expand Down Expand Up @@ -954,7 +1145,7 @@ display:
options:
query_comment: ''
disable_sql_rewrite: false
distinct: false
distinct: true
replica: false
query_tags: { }
css_class: ''
Expand Down

0 comments on commit 4a390ab

Please sign in to comment.