From bdf25eaf0351c2993b2227b84482a3a4e6240793 Mon Sep 17 00:00:00 2001 From: aheaphy Date: Fri, 3 Jan 2025 15:31:47 -0500 Subject: [PATCH] fix alpha order of senators lists on main listing and user account creation --- ...d.user.user.field_senator_inbox_access.yml | 14 +- config/sync/user.role.administrator.yml | 260 ------------------ .../views.view.active_senators_reference.yml | 28 +- ...views.view.senator_and_committee_lists.yml | 13 + 4 files changed, 45 insertions(+), 270 deletions(-) diff --git a/config/sync/field.field.user.user.field_senator_inbox_access.yml b/config/sync/field.field.user.user.field_senator_inbox_access.yml index 77f1ea0d5d..38cf6b8d58 100644 --- a/config/sync/field.field.user.user.field_senator_inbox_access.yml +++ b/config/sync/field.field.user.user.field_senator_inbox_access.yml @@ -4,7 +4,6 @@ status: true dependencies: config: - field.storage.user.field_senator_inbox_access - - taxonomy.vocabulary.senator module: - user id: user.user.field_senator_inbox_access @@ -18,13 +17,10 @@ translatable: false default_value: { } default_value_callback: '' settings: - handler: 'default:taxonomy_term' + handler: views handler_settings: - target_bundles: - senator: senator - sort: - field: name - direction: asc - auto_create: false - auto_create_bundle: '' + view: + view_name: active_senators_reference + display_name: entity_reference_1 + arguments: { } field_type: entity_reference diff --git a/config/sync/user.role.administrator.yml b/config/sync/user.role.administrator.yml index 66dbb75460..bdbf91788c 100644 --- a/config/sync/user.role.administrator.yml +++ b/config/sync/user.role.administrator.yml @@ -2,54 +2,8 @@ uuid: bda6ef6b-6ef0-41f6-8873-8bc7790dc5c4 langcode: en status: true dependencies: - config: - - filter.format.full_html - - node.type.agenda - - node.type.article - - node.type.bill - - node.type.calendar - - node.type.event - - node.type.in_the_news - - node.type.meeting - - node.type.open_data - - node.type.petition - - node.type.promotional_banner - - node.type.public_hearing - - node.type.resolution - - node.type.school - - node.type.session - - node.type.student_program - - node.type.transcript - - node.type.video - - node.type.webform module: - - block - - captcha - - contact - - contextual - - facets - - fancy_file_delete - field_permissions - - filter - - flag - - honeypot - - image - - login_history - - metatag - - node - - nys_access_permissions - - path - - pathauto - - recaptcha - - redirect - - reroute_email - - seckit - - site_verify - - system - - taxonomy - - toolbar - - views_ui - - votingapi _core: default_config_hash: 7ks8-y7xCnbgus92ml3LWPeeaPgFuL9dj2p89cg__W0 id: administrator @@ -57,222 +11,8 @@ label: Administrator weight: 2 is_admin: true permissions: - - 'access administration pages' - - 'access content' - - 'access content overview' - - 'access contextual links' - - 'access private fields' - - 'access site in maintenance mode' - - 'access site reports' - - 'access site-wide contact form' - - 'access toolbar' - - 'access user contact forms' - - 'access user profiles' - - 'administer CAPTCHA settings' - - 'administer actions' - - 'administer blocks' - - 'administer contact forms' - - 'administer content types' - - 'administer facets' - - 'administer fancy file delete' - - 'administer field permissions' - - 'administer filters' - - 'administer flags' - - 'administer honeypot' - - 'administer image styles' - - 'administer menu' - - 'administer meta tags' - - 'administer modules' - - 'administer nodes' - - 'administer pathauto' - - 'administer permissions' - - 'administer recaptcha' - - 'administer redirects' - - 'administer reroute email' - - 'administer seckit' - - 'administer site configuration' - - 'administer site verify' - - 'administer software updates' - - 'administer taxonomy' - - 'administer themes' - - 'administer url aliases' - - 'administer users' - - 'administer views' - - 'administer voting api' - - 'bypass honeypot protection' - - 'bypass node access' - - 'cancel account' - - 'change own username' - - 'create agenda content' - - 'create article content' - - 'create bill content' - - 'create calendar content' - - 'create event content' - - 'create field_accessible_sitewide' - - 'create field_add_honoree_list' - - 'create field_chair' - - 'create field_district' - - 'create field_featured' - - 'create field_inactive_senator_message' - - 'create field_last_notified' - - 'create field_ldap_username' - - 'create field_majority_issue_tag' - - 'create field_ol_member_id' - - 'create field_profile_status' - 'create field_senator_inbox_access' - - 'create field_user_account' - - 'create in_the_news content' - - 'create meeting content' - - 'create open_data content' - - 'create petition content' - - 'create promotional_banner content' - - 'create public_hearing content' - - 'create resolution content' - - 'create school content' - - 'create session content' - - 'create student_program content' - - 'create transcript content' - - 'create url aliases' - - 'create video content' - - 'create webform content' - - 'delete any agenda content' - - 'delete any article content' - - 'delete any bill content' - - 'delete any calendar content' - - 'delete any event content' - - 'delete any in_the_news content' - - 'delete any meeting content' - - 'delete any open_data content' - - 'delete any petition content' - - 'delete any promotional_banner content' - - 'delete any public_hearing content' - - 'delete any resolution content' - - 'delete any school content' - - 'delete any session content' - - 'delete any student_program content' - - 'delete any transcript content' - - 'delete any video content' - - 'delete any webform content' - - 'delete own agenda content' - - 'delete own article content' - - 'delete own bill content' - - 'delete own calendar content' - - 'delete own event content' - - 'delete own in_the_news content' - - 'delete own meeting content' - - 'delete own open_data content' - - 'delete own petition content' - - 'delete own promotional_banner content' - - 'delete own public_hearing content' - - 'delete own resolution content' - - 'delete own school content' - - 'delete own session content' - - 'delete own student_program content' - - 'delete own transcript content' - - 'delete own video content' - - 'delete own webform content' - - 'edit any agenda content' - - 'edit any article content' - - 'edit any bill content' - - 'edit any calendar content' - - 'edit any event content' - - 'edit any in_the_news content' - - 'edit any meeting content' - - 'edit any open_data content' - - 'edit any petition content' - - 'edit any promotional_banner content' - - 'edit any public_hearing content' - - 'edit any resolution content' - - 'edit any school content' - - 'edit any session content' - - 'edit any student_program content' - - 'edit any transcript content' - - 'edit any video content' - - 'edit any webform content' - - 'edit field_accessible_sitewide' - - 'edit field_add_honoree_list' - - 'edit field_chair' - - 'edit field_district' - - 'edit field_featured' - - 'edit field_inactive_senator_message' - - 'edit field_last_notified' - - 'edit field_ldap_username' - - 'edit field_majority_issue_tag' - - 'edit field_ol_member_id' - - 'edit field_profile_status' - 'edit field_senator_inbox_access' - - 'edit field_user_account' - - 'edit own agenda content' - - 'edit own article content' - - 'edit own bill content' - - 'edit own calendar content' - - 'edit own event content' - - 'edit own field_accessible_sitewide' - - 'edit own field_add_honoree_list' - - 'edit own field_chair' - - 'edit own field_district' - - 'edit own field_featured' - - 'edit own field_inactive_senator_message' - - 'edit own field_last_notified' - - 'edit own field_ldap_username' - - 'edit own field_majority_issue_tag' - - 'edit own field_ol_member_id' - - 'edit own field_profile_status' - 'edit own field_senator_inbox_access' - - 'edit own field_user_account' - - 'edit own in_the_news content' - - 'edit own meeting content' - - 'edit own open_data content' - - 'edit own petition content' - - 'edit own promotional_banner content' - - 'edit own public_hearing content' - - 'edit own resolution content' - - 'edit own school content' - - 'edit own session content' - - 'edit own student_program content' - - 'edit own transcript content' - - 'edit own video content' - - 'edit own webform content' - - 'edit same role' - - 'flag follow_committee' - - 'flag follow_issue' - - 'flag follow_this_bill' - - 'flag sign_petition' - - 'notify of path changes' - - 'select account cancellation method' - - 'skip CAPTCHA' - - 'unflag follow_committee' - - 'unflag follow_issue' - - 'unflag follow_this_bill' - - 'unflag sign_petition' - - 'use text format full_html' - - 'view all login histories' - - 'view field_accessible_sitewide' - - 'view field_add_honoree_list' - - 'view field_chair' - - 'view field_district' - - 'view field_featured' - - 'view field_inactive_senator_message' - - 'view field_last_notified' - - 'view field_ldap_username' - - 'view field_majority_issue_tag' - - 'view field_ol_member_id' - - 'view field_profile_status' - 'view field_senator_inbox_access' - - 'view field_user_account' - - 'view own field_accessible_sitewide' - - 'view own field_add_honoree_list' - - 'view own field_chair' - - 'view own field_district' - - 'view own field_featured' - - 'view own field_inactive_senator_message' - - 'view own field_last_notified' - - 'view own field_ldap_username' - - 'view own field_majority_issue_tag' - - 'view own field_ol_member_id' - - 'view own field_profile_status' - 'view own field_senator_inbox_access' - - 'view own field_user_account' - - 'view own login history' - - 'view own unpublished content' - - 'view the administration theme' diff --git a/config/sync/views.view.active_senators_reference.yml b/config/sync/views.view.active_senators_reference.yml index 90bb7c26ed..666ce0e346 100644 --- a/config/sync/views.view.active_senators_reference.yml +++ b/config/sync/views.view.active_senators_reference.yml @@ -125,7 +125,33 @@ display: type: tag options: { } empty: { } - sorts: { } + sorts: + field_senator_name_family: + id: field_senator_name_family + table: taxonomy_term__field_senator_name + field: field_senator_name_family + relationship: none + group_type: group + admin_label: '' + plugin_id: standard + order: ASC + expose: + label: '' + field_identifier: '' + exposed: false + field_senator_name_given: + id: field_senator_name_given + table: taxonomy_term__field_senator_name + field: field_senator_name_given + relationship: none + group_type: group + admin_label: '' + plugin_id: standard + order: ASC + expose: + label: '' + field_identifier: '' + exposed: false arguments: { } filters: status: diff --git a/config/sync/views.view.senator_and_committee_lists.yml b/config/sync/views.view.senator_and_committee_lists.yml index 163b3f9776..be01a843e3 100644 --- a/config/sync/views.view.senator_and_committee_lists.yml +++ b/config/sync/views.view.senator_and_committee_lists.yml @@ -1284,6 +1284,19 @@ display: label: '' field_identifier: '' exposed: false + field_senator_name_given: + id: field_senator_name_given + table: taxonomy_term__field_senator_name + field: field_senator_name_given + relationship: none + group_type: group + admin_label: '' + plugin_id: standard + order: ASC + expose: + label: '' + field_identifier: '' + exposed: false filters: status: id: status