Skip to content

Commit 9b62076

Browse files
omahaneChristian BurkswirtSJW
authored
VACMS-11138 Modify taxonomy selector VBA fields (#11340)
* VACMS-11197-Add-vba-services-view-changes-test * Reverts - revision_log * Adds revision_log to vba_facility_service * VACMS-11197: Adds revision_log under moderation_state * VACMS-11197: Adds behat test for VBA Facility Service bundle * VACMS-11138: Updates test to account for vba_facility_service content type * Updates behat test * VACMS-11197: Replaces the body with field_body, updates behat * VACMS-11138: Updates config file for replacement field_body * VACMS-11197: Enables the form_display of the field_body * VACMS-11197: Enables the form_display of the field_body for real * VACMS-11138: Adds hook_update_N for seeting the taxaonomy checkboxes * VACMS-11138: Adds config changes for VBA Facility Service * VACMS-11138: Adds changes to vba_facility_service config * VACMS-11138: Puts hook_update_n in facilities * Restores va_gov_backend.install to former state * VACMS-11197: Updates VBA Facility Service config * VACMS-11197: Adds revision log back * VACMS-11197: Restores revision_log * VACMS-11197: Updates what is required in Behat test * VACMS-11197: Updates to node:view and node:edit config * VACMS-11197: Makes function more generic and easier to read, plus other refactoring from PR. * VACMS-11197: Update log message for to reduce reduncy and improve clarity. * Alterations to hook_update_n for logging. * Refined revision logging. * Add CMS Migrator name to message. * Remove errant user set. Co-authored-by: Christian Burk <[email protected]> Co-authored-by: Steve Wirt <[email protected]> Co-authored-by: Steve Wirt <[email protected]>
1 parent de8bc35 commit 9b62076

26 files changed

+1049
-22
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
status: 1
2+
pattern: '[node:field_office:entity:title] - [node:field_service_name_and_descripti:entity:name]'
3+
escape: false
4+
dependencies:
5+
config:
6+
- node.type.vba_facility_service

config/sync/core.entity_form_display.node.vba_facility.default.yml

+31-4
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ langcode: en
33
status: true
44
dependencies:
55
config:
6+
- core.entity_form_mode.node.inline_entity_form
67
- field.field.node.vba_facility.field_address
78
- field.field.node.vba_facility.field_administration
89
- field.field.node.vba_facility.field_facility_locator_api_id
@@ -18,13 +19,17 @@ dependencies:
1819
- field.field.node.vba_facility.field_operating_status_more_info
1920
- field.field.node.vba_facility.field_phone_number
2021
- field.field.node.vba_facility.field_shared_vha_location
22+
- field.field.node.vba_facility.field_vba_services
2123
- node.type.vba_facility
2224
- workflows.workflow.editorial
2325
module:
2426
- address
2527
- content_moderation
28+
- entity_browser_entity_form
2629
- field_group
2730
- geofield
31+
- ief_table_view_mode
32+
- limited_field_widgets
2833
- link
2934
- media_library
3035
- office_hours
@@ -39,7 +44,7 @@ third_party_settings:
3944
label: 'Operating status'
4045
region: content
4146
parent_name: ''
42-
weight: 3
47+
weight: 1
4348
format_type: fieldset
4449
format_settings:
4550
classes: ''
@@ -71,7 +76,7 @@ third_party_settings:
7176
label: 'Editorial Workflow'
7277
region: content
7378
parent_name: ''
74-
weight: 5
79+
weight: 6
7580
format_type: fieldset
7681
format_settings:
7782
classes: ''
@@ -127,7 +132,7 @@ third_party_settings:
127132
label: 'VBA DB'
128133
region: content
129134
parent_name: ''
130-
weight: 2
135+
weight: 3
131136
format_type: fieldset
132137
format_settings:
133138
classes: ''
@@ -143,7 +148,7 @@ third_party_settings:
143148
label: 'Facility Intro and Photo'
144149
region: content
145150
parent_name: ''
146-
weight: 1
151+
weight: 2
147152
format_type: fieldset
148153
format_settings:
149154
classes: ''
@@ -269,6 +274,28 @@ content:
269274
size: 60
270275
placeholder: ''
271276
third_party_settings: { }
277+
field_vba_services:
278+
type: inline_entity_form_complex_table_view_mode
279+
weight: 5
280+
region: content
281+
settings:
282+
form_mode: inline_entity_form
283+
override_labels: true
284+
label_singular: service
285+
label_plural: services
286+
allow_new: true
287+
allow_existing: false
288+
match_operator: CONTAINS
289+
allow_duplicate: false
290+
collapsible: false
291+
collapsed: false
292+
revision: false
293+
allow_system_delete: 0
294+
third_party_settings:
295+
entity_browser_entity_form:
296+
entity_browser_id: _none
297+
limited_field_widgets:
298+
limit_values: '0'
272299
flag:
273300
weight: 6
274301
region: content
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,135 @@
1+
uuid: f4c0da6c-1c4d-4e7c-9748-db2d98170a19
2+
langcode: en
3+
status: true
4+
dependencies:
5+
config:
6+
- field.field.node.vba_facility_service.field_administration
7+
- field.field.node.vba_facility_service.field_body
8+
- field.field.node.vba_facility_service.field_enforce_unique_combo
9+
- field.field.node.vba_facility_service.field_office
10+
- field.field.node.vba_facility_service.field_service_name_and_descripti
11+
- node.type.vba_facility_service
12+
- workflows.workflow.editorial
13+
module:
14+
- allow_only_one
15+
- allowed_formats
16+
- content_moderation
17+
- field_group
18+
- text
19+
third_party_settings:
20+
field_group:
21+
group_section_settings:
22+
children:
23+
- field_administration
24+
label: 'Section settings'
25+
region: content
26+
parent_name: ''
27+
weight: 5
28+
format_type: details_sidebar
29+
format_settings:
30+
classes: ''
31+
show_empty_fields: false
32+
id: ''
33+
open: true
34+
description: ''
35+
required_fields: true
36+
weight: 0
37+
group_editorial_workflow:
38+
children:
39+
- moderation_state
40+
- revision_log
41+
label: 'Editorial workflow'
42+
region: content
43+
parent_name: ''
44+
weight: 6
45+
format_type: fieldset
46+
format_settings:
47+
classes: ''
48+
show_empty_fields: false
49+
id: ''
50+
description: ''
51+
required_fields: true
52+
description_display: after
53+
id: node.vba_facility_service.default
54+
targetEntityType: node
55+
bundle: vba_facility_service
56+
mode: default
57+
content:
58+
body:
59+
type: text_textarea_with_summary
60+
weight: 5
61+
region: content
62+
settings:
63+
rows: 9
64+
summary_rows: 3
65+
placeholder: ''
66+
show_summary: false
67+
third_party_settings: { }
68+
field_administration:
69+
type: options_select
70+
weight: 6
71+
region: content
72+
settings: { }
73+
third_party_settings: { }
74+
field_body:
75+
type: text_textarea
76+
weight: 4
77+
region: content
78+
settings:
79+
rows: 5
80+
placeholder: ''
81+
third_party_settings:
82+
allowed_formats:
83+
hide_help: '1'
84+
hide_guidelines: '1'
85+
field_enforce_unique_combo:
86+
type: allow_only_one_widget
87+
weight: 1
88+
region: content
89+
settings:
90+
size: 1
91+
third_party_settings: { }
92+
field_office:
93+
type: options_select
94+
weight: 2
95+
region: content
96+
settings: { }
97+
third_party_settings: { }
98+
field_service_name_and_descripti:
99+
type: options_select
100+
weight: 3
101+
region: content
102+
settings: { }
103+
third_party_settings: { }
104+
moderation_state:
105+
type: moderation_state_default
106+
weight: 2
107+
region: content
108+
settings: { }
109+
third_party_settings: { }
110+
status:
111+
type: boolean_checkbox
112+
weight: 7
113+
region: content
114+
settings:
115+
display_label: true
116+
third_party_settings: { }
117+
title:
118+
type: string_textfield
119+
weight: 0
120+
region: content
121+
settings:
122+
size: 60
123+
placeholder: ''
124+
third_party_settings: { }
125+
url_redirects:
126+
weight: 8
127+
region: content
128+
settings: { }
129+
third_party_settings: { }
130+
hidden:
131+
created: true
132+
path: true
133+
promote: true
134+
sticky: true
135+
uid: true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,106 @@
1+
uuid: 5f4606f1-9f03-4468-9f23-e9297225fb98
2+
langcode: en
3+
status: true
4+
dependencies:
5+
config:
6+
- core.entity_form_mode.node.inline_entity_form
7+
- field.field.node.vba_facility_service.field_administration
8+
- field.field.node.vba_facility_service.field_body
9+
- field.field.node.vba_facility_service.field_enforce_unique_combo
10+
- field.field.node.vba_facility_service.field_office
11+
- field.field.node.vba_facility_service.field_service_name_and_descripti
12+
- node.type.vba_facility_service
13+
module:
14+
- field_group
15+
- text
16+
third_party_settings:
17+
field_group:
18+
group_section_settings:
19+
children: { }
20+
label: 'Section settings'
21+
region: hidden
22+
parent_name: ''
23+
weight: 7
24+
format_type: details_sidebar
25+
format_settings:
26+
classes: ''
27+
show_empty_fields: false
28+
id: ''
29+
open: true
30+
description: ''
31+
required_fields: true
32+
weight: 0
33+
group_editorial_workflow:
34+
children:
35+
- moderation_state
36+
label: 'Editorial workflow'
37+
region: hidden
38+
parent_name: ''
39+
weight: 8
40+
format_type: fieldset
41+
format_settings:
42+
classes: ''
43+
show_empty_fields: false
44+
id: ''
45+
description: ''
46+
required_fields: true
47+
description_display: after
48+
id: node.vba_facility_service.inline_entity_form
49+
targetEntityType: node
50+
bundle: vba_facility_service
51+
mode: inline_entity_form
52+
content:
53+
body:
54+
type: text_textarea_with_summary
55+
weight: 5
56+
region: content
57+
settings:
58+
rows: 9
59+
summary_rows: 3
60+
placeholder: ''
61+
show_summary: false
62+
third_party_settings: { }
63+
field_administration:
64+
type: options_select
65+
weight: 2
66+
region: content
67+
settings: { }
68+
third_party_settings: { }
69+
field_body:
70+
type: text_textarea
71+
weight: 4
72+
region: content
73+
settings:
74+
rows: 5
75+
placeholder: ''
76+
third_party_settings: { }
77+
field_office:
78+
type: options_select
79+
weight: 1
80+
region: content
81+
settings: { }
82+
third_party_settings: { }
83+
field_service_name_and_descripti:
84+
type: options_select
85+
weight: 3
86+
region: content
87+
settings: { }
88+
third_party_settings: { }
89+
title:
90+
type: string_textfield
91+
weight: 0
92+
region: content
93+
settings:
94+
size: 60
95+
placeholder: ''
96+
third_party_settings: { }
97+
hidden:
98+
created: true
99+
field_enforce_unique_combo: true
100+
moderation_state: true
101+
path: true
102+
promote: true
103+
status: true
104+
sticky: true
105+
uid: true
106+
url_redirects: true

config/sync/core.entity_view_display.node.vba_facility.default.yml

+9
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ dependencies:
1818
- field.field.node.vba_facility.field_operating_status_more_info
1919
- field.field.node.vba_facility.field_phone_number
2020
- field.field.node.vba_facility.field_shared_vha_location
21+
- field.field.node.vba_facility.field_vba_services
2122
- node.type.vba_facility
2223
module:
2324
- address
@@ -236,6 +237,14 @@ content:
236237
third_party_settings: { }
237238
weight: 3
238239
region: content
240+
field_vba_services:
241+
type: entity_reference_label
242+
label: above
243+
settings:
244+
link: true
245+
third_party_settings: { }
246+
weight: 10
247+
region: content
239248
hidden:
240249
content_moderation_control: true
241250
field_administration: true

config/sync/core.entity_view_display.node.vba_facility.external_content.yml

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ dependencies:
1919
- field.field.node.vba_facility.field_operating_status_more_info
2020
- field.field.node.vba_facility.field_phone_number
2121
- field.field.node.vba_facility.field_shared_vha_location
22+
- field.field.node.vba_facility.field_vba_services
2223
- node.type.vba_facility
2324
module:
2425
- address
@@ -155,6 +156,7 @@ hidden:
155156
field_operating_status_facility: true
156157
field_operating_status_more_info: true
157158
field_shared_vha_location: true
159+
field_vba_services: true
158160
flag_changed_name: true
159161
flag_changed_title: true
160162
flag_new: true

config/sync/core.entity_view_display.node.vba_facility.ief_table.yml

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ dependencies:
1919
- field.field.node.vba_facility.field_operating_status_more_info
2020
- field.field.node.vba_facility.field_phone_number
2121
- field.field.node.vba_facility.field_shared_vha_location
22+
- field.field.node.vba_facility.field_vba_services
2223
- node.type.vba_facility
2324
module:
2425
- address
@@ -169,6 +170,7 @@ hidden:
169170
field_non_va_official_name: true
170171
field_office: true
171172
field_shared_vha_location: true
173+
field_vba_services: true
172174
flag_changed_name: true
173175
flag_changed_title: true
174176
flag_new: true

0 commit comments

Comments
 (0)