Skip to content

Commit

Permalink
VACMS-2618: Update event node type fields with prod config. (#2635)
Browse files Browse the repository at this point in the history
* VACMS-2618: Update event node type fields with prod config.

* VACMS-2618: Update content model fields test.

* VACMS-2618: Removing whitespace from field to match spec.
  • Loading branch information
ethanteague authored Aug 12, 2020
1 parent 7fa8840 commit de561ee
Show file tree
Hide file tree
Showing 14 changed files with 42 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ dependencies:
- field.storage.node.field_additional_information_abo
- node.type.event
module:
- allowed_formats
- text
third_party_settings:
allowed_formats:
rich_text: '0'
rich_text_limited: '0'
plain_text: '0'
id: node.event.field_additional_information_abo
field_name: field_additional_information_abo
entity_type: node
bundle: event
label: 'Additional information about registration'
label: 'Additional registration information'
description: ''
required: false
translatable: false
Expand Down
18 changes: 9 additions & 9 deletions config/sync/field.field.node.event.field_address.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@ field_name: field_address
entity_type: node
bundle: event
label: Address
description: 'If there is no physical address for this event, change the country to "- None -"'
description: 'Add the street address for the event. For online events, change the country to "- None -."'
required: false
translatable: false
default_value:
-
langcode: ''
country_code: US
langcode: null
administrative_area: ''
locality: ''
dependent_locality: ''
postal_code: ''
sorting_code: ''
dependent_locality: null
postal_code: null
sorting_code: null
address_line1: ''
address_line2: ''
organization: ''
given_name: ''
additional_name: ''
family_name: ''
organization: null
given_name: null
additional_name: null
family_name: null
default_value_callback: ''
settings:
available_countries:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ field_name: field_administration
entity_type: node
bundle: event
label: Owner
description: 'Department or program at VA that is managing this event.'
description: 'Select the VA section that will manage this event content.'
required: true
translatable: true
default_value: { }
Expand Down
2 changes: 1 addition & 1 deletion config/sync/field.field.node.event.field_date.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ field_name: field_date
entity_type: node
bundle: event
label: 'Date and time'
description: ''
description: 'Set a start and end date. Times will be set to Eastern time zone.'
required: false
translatable: false
default_value: { }
Expand Down
4 changes: 2 additions & 2 deletions config/sync/field.field.node.event.field_description.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ id: node.event.field_description
field_name: field_description
entity_type: node
bundle: event
label: 'Meta description'
description: 'Add a description to be used in calendar teasers, search results, and social media shares. (<a href="https://design.va.gov/content-style-guide/seo#meta-properties" target=“_blank”>See further guidelines</a>)'
label: 'Teaser description'
description: 'Add a shorter event description to be used in calendars, search results, and social media shares. (<a href="https://design.va.gov/content-style-guide/seo#meta-properties" target=“_blank”>See further guidelines</a>)'
required: false
translatable: true
default_value: { }
Expand Down
2 changes: 1 addition & 1 deletion config/sync/field.field.node.event.field_event_cost.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ field_name: field_event_cost
entity_type: node
bundle: event
label: Cost
description: '<em>Maximum 60 characters</em>'
description: 'If the event is free, you can leave this blank or add a message to indicate that there is no cost.'
required: false
translatable: false
default_value: { }
Expand Down
4 changes: 2 additions & 2 deletions config/sync/field.field.node.event.field_event_cta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ id: node.event.field_event_cta
field_name: field_event_cta
entity_type: node
bundle: event
label: 'URL Link Label'
description: ''
label: Label
description: 'Select a label that prompts people to take further action via the link.'
required: false
translatable: false
default_value: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ field_name: field_facility_location
entity_type: node
bundle: event
label: 'Facility location'
description: 'If your event takes place in a VA facility, select it here. '
description: 'If the event takes place at a VA facility, select it here. You''ll still need to add the address below.'
required: false
translatable: false
default_value: { }
Expand All @@ -24,6 +24,6 @@ settings:
sort:
field: title
direction: ASC
auto_create: false
auto_create: 0
auto_create_bundle: health_care_local_facility
field_type: entity_reference
2 changes: 1 addition & 1 deletion config/sync/field.field.node.event.field_link.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ id: node.event.field_link
field_name: field_link
entity_type: node
bundle: event
label: 'URL of an external page or registration link for this event'
label: URL
description: ''
required: false
translatable: true
Expand Down
4 changes: 2 additions & 2 deletions config/sync/field.field.node.event.field_listing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ id: node.event.field_listing
field_name: field_listing
entity_type: node
bundle: event
label: 'Event listing'
description: 'This field controls where on the VA website this event will be displayed.'
label: 'Where should the event be listed?'
description: 'Select a VA.gov event list. E.g. If you want the event to appear on a VAMC events page, select your VAMC system.'
required: true
translatable: false
default_value: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ id: node.event.field_location_humanreadable
field_name: field_location_humanreadable
entity_type: node
bundle: event
label: 'A human-readable label for the event location.'
description: 'Addresses are great for mapping, but real names are usually easier for people to understand. Like “Larkspur Community Center” or “Kittery Public Library, 3rd Floor Meeting Room”.'
label: 'Building, floor, or room'
description: 'Add further detail that may help people find the event. For example, "Larkspur Community Center Reading Room."'
required: false
translatable: false
default_value: { }
Expand Down
4 changes: 2 additions & 2 deletions config/sync/field.field.node.event.field_media.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ id: node.event.field_media
field_name: field_media
entity_type: node
bundle: event
label: Image
description: 'Make sure to crop your image with the 7:2 aspect ratio. '
label: 'Event image'
description: 'The system will crop your image to the standard 7:2 aspect ratio if it isn''t already.'
required: false
translatable: true
default_value: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ id: node.event.field_url_of_an_online_event
field_name: field_url_of_an_online_event
entity_type: node
bundle: event
label: 'URL of an online event'
description: ''
label: 'Online event link'
description: 'Add the URL people should use to attend your online event.'
required: false
translatable: false
default_value: { }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,25 +61,25 @@ Feature: Content model: Content Type fields
| Content type | CMS help page | Generate a table of contents from major headings | field_table_of_contents_boolean | Boolean | | 1 | -- Disabled -- | Translatable |
| Content type | CMS help page | Main content | field_content_block | Entity reference revisions | | Unlimited | Paragraphs Browser EXPERIMENTAL | Translatable |
| Content type | CMS help page | Owner | field_administration | Entity reference | Required | 1 | Select list | Translatable |
| Content type | Event | A human-readable label for the event location. | field_location_humanreadable | Text (plain) | | 1 | Textfield | |
| Content type | Event | Additional information about registration | field_additional_information_abo | Text (formatted, long) | | 1 | Text area (multiple rows) | |
| Content type | Event | Building, floor, or room | field_location_humanreadable | Text (plain) | | 1 | Textfield | |
| Content type | Event | Additional registration information | field_additional_information_abo | Text (formatted, long) | | 1 | Text area (multiple rows) | |
| Content type | Event | Address | field_address | Address | | 1 | Address | |
| Content type | Event | Cost | field_event_cost | Text (plain) | | 1 | Textfield with counter | |
| Content type | Event | Date and time | field_date | Date range | | 1 | Date and time range | |
| Content type | Event | Event listing | field_listing | Entity reference | Required | 1 | Select list | |
| Content type | Event | Where should the event be listed? | field_listing | Entity reference | Required | 1 | Select list | |
| Content type | Event | Facility location | field_facility_location | Entity reference | | 1 | Select list | |
| Content type | Event | Featured | field_featured | Boolean | | 1 | Single on/off checkbox | Translatable |
| Content type | Event | Full event description | field_body | Text (formatted, long) | | 1 | Text area (multiple rows) | |
| Content type | Event | Image | field_media | Entity reference | | 1 | Media library | Translatable |
| Content type | Event | Event image | field_media | Entity reference | | 1 | Media library | Translatable |
| Content type | Event | Location type | field_location_type | List (text) | | 1 | Select list | |
| Content type | Event | Meta description | field_description | Text (plain) | | 1 | Textfield | Translatable |
| Content type | Event | Teaser description | field_description | Text (plain) | | 1 | Textfield | Translatable |
| Content type | Event | Meta tags | field_meta_tags | Meta tags | | 1 | Advanced meta tags form | Translatable |
| Content type | Event | Order | field_order | List (integer) | | 1 | Select list | |
| Content type | Event | Owner | field_administration | Entity reference | Required | 1 | Select list | Translatable |
| Content type | Event | Registration required | field_event_registrationrequired | Boolean | | 1 | Single on/off checkbox | |
| Content type | Event | URL Link Label | field_event_cta | List (text) | | 1 | Select list | |
| Content type | Event | URL of an external page or registration link for this event | field_link | Link | | 1 | Link | Translatable |
| Content type | Event | URL of an online event | field_url_of_an_online_event | Link | | 1 | Link | |
| Content type | Event | Label | field_event_cta | List (text) | | 1 | Select list | |
| Content type | Event | URL | field_link | Link | | 1 | Link | Translatable |
| Content type | Event | Online event link | field_url_of_an_online_event | Link | | 1 | Link | |
| Content type | Events list | Meta description | field_description | Text (plain) | Required | 1 | Textfield with counter | Translatable |
| Content type | Events list | Meta tags | field_meta_tags | Meta tags | | 1 | Advanced meta tags form | Translatable |
| Content type | Events list | Meta title tag | field_meta_title | Text (plain) | Required | 1 | Textfield with counter | Translatable |
Expand Down

1 comment on commit de561ee

@va-cms-bot
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❌ Test Failed: va/tests/accessibility
composer va:test:accessibility
> npm install --only=production
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! network request to https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz failed, reason: read ECONNRESET
npm ERR! network This is a problem related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network 
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'

npm ERR! A complete log of this run can be found in:
npm ERR!     /var/www/.npm/_logs/2020-08-12T14_48_33_888Z-debug.log
Script npm install --only=production handling the va:test:accessibility event returned with error code 1
  • On: ip-10-247-34-85
  • In: 02:24

Please sign in to comment.