Skip to content
Snippets Groups Projects
Commit aa03c3dd authored by catch's avatar catch
Browse files

Issue #2167623 by danilenko_dn, sidharthap, Nitesh Sethia, krishnan.n, aitiba,...

Issue #2167623 by danilenko_dn, sidharthap, Nitesh Sethia, krishnan.n, aitiba, alexpott, ashwinikumar, Barrett, damiankloip, deepakaryan1988, foxtrotcharlie, ianthomas_uk, neetu morwani, nonsie, piyuesh23, Sharique, sivaji, sushantpaste, swentel, vijaycs85, YesCT: Add test for all default configuration to ensure schema exists and is correct.
parent 81e3e038
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
Showing
with 466 additions and 135 deletions
......@@ -574,8 +574,8 @@ protected function castValue($key, $value) {
}
}
catch (SchemaIncompleteException $e) {
// @todo throw an exception due to an incomplete schema. Only possible
// once https://drupal.org/node/1910624 is complete.
// @todo throw an exception due to an incomplete schema.
// Fix as part of https://drupal.org/node/2183983.
}
}
else {
......
......@@ -78,12 +78,49 @@ filter:
type: mapping
label: 'Filter'
mapping:
module:
id:
type: string
label: 'Module'
label: 'ID'
provider:
type: string
label: 'Provider'
status:
type: boolean
label: 'Enabled'
label: 'Status'
weight:
type: integer
label: 'Weight'
settings:
type: filter_settings.[%parent.id]
# System action configuration base.
action_configuration_default:
type: sequence
label: 'Action configuration'
sequence:
- type: string
theme_settings_default:
type: mapping
mapping:
shortcut_module_link:
type: boolean
label: 'Shortcut module link'
theme_breakpoints_default:
type: sequence
sequence:
- type: string
label: 'Breakpoint value'
views_field_bulk_form:
type: views_field
label: 'Bulk operation'
mapping:
action_title:
type: label
label: 'Action title'
# Array of routes with route_name and route_params keys.
route:
......
<?php
/**
* @file
* Contains \Drupal\Core\Config\UnsupportedConfigDataTypeException.
*/
namespace Drupal\Core\Config;
/**
* Exception thrown when a config data type is invalid.
*/
class UnsupportedConfigDataTypeException extends ConfigException {
}
......@@ -7,3 +7,34 @@ action.settings:
recursion_limit:
type: integer
label: 'Recursion limit for actions'
action.configuration.action_send_email_action:
type: mapping
label: 'Send e-mail configuration'
mapping:
recipient:
type: string
label: 'Recipient'
subject:
type: label
label: 'Subject'
message:
type: text
label: 'Message'
action.configuration.action_goto_action:
type: mapping
label: 'Redirect to URL configuration'
mapping:
url:
type: string
label: 'URL'
action.configuration.action_message_action:
type: mapping
label: 'Display a message to the user configuration'
mapping:
message:
type: text
label: 'Message'
views.field.bulk_form:
type: views_field
type: views_field_bulk_form
label: 'Bulk form'
mapping:
action_title:
type: label
label: 'Action title'
......@@ -9,7 +9,7 @@ display:
display_plugin: default
id: default
display_title: Master
position: ''
position: null
display_options:
access:
type: perm
......@@ -22,35 +22,35 @@ display:
pager:
type: full
options:
items_per_page: '10'
items_per_page: 10
style:
type: table
options:
grouping: { }
row_class: ''
default_row_class: '1'
row_class_special: '1'
override: '1'
sticky: '0'
default_row_class: true
row_class_special: true
override: true
sticky: false
summary: ''
columns:
title: title
action_bulk_form: action_bulk_form
info:
title:
sortable: '0'
sortable: false
default_sort_order: asc
align: ''
separator: ''
empty_column: '0'
empty_column: false
responsive: ''
bulk_form:
align: ''
separator: ''
empty_column: '0'
empty_column: false
responsive: ''
default: '-1'
empty_table: '0'
default: ''
empty_table: false
row:
type: fields
fields:
......@@ -60,17 +60,17 @@ display:
field: title
label: ''
alter:
alter_text: '0'
make_link: '0'
absolute: '0'
trim: '0'
word_boundary: '0'
ellipsis: '0'
strip_tags: '0'
html: '0'
hide_empty: '0'
empty_zero: '0'
link_to_node: '1'
alter_text: false
make_link: false
absolute: false
trim: false
word_boundary: false
ellipsis: false
strip_tags: false
html: false
hide_empty: false
empty_zero: false
link_to_node: true
plugin_id: node
provider: node
action_bulk_form:
......@@ -81,57 +81,57 @@ display:
group_type: group
admin_label: ''
label: 'Bulk form'
exclude: '0'
exclude: false
alter:
alter_text: '0'
alter_text: false
text: ''
make_link: '0'
make_link: false
path: ''
absolute: '0'
external: '0'
replace_spaces: '0'
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: '0'
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: '0'
nl2br: false
max_length: ''
word_boundary: '1'
ellipsis: '1'
more_link: '0'
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: '0'
trim: '0'
strip_tags: false
trim: false
preserve_tags: ''
html: '0'
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: '1'
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: '1'
element_default_classes: true
empty: ''
hide_empty: '0'
empty_zero: '0'
hide_alter_empty: '1'
hide_empty: false
empty_zero: false
hide_alter_empty: true
plugin_id: action_bulk_form
provider: action
filters:
status:
value: '1'
value: true
table: node_field_data
field: status
id: status
expose:
operator: '0'
group: '1'
operator: ''
group: 1
plugin_id: boolean
provider: views
sorts:
......@@ -147,10 +147,10 @@ display:
display_plugin: page
id: page_1
display_title: Page
position: ''
position: null
display_options:
path: test_bulk_form
base_field: nid
status: '1'
status: true
module: views
langcode: und
# Schema for the views plugins of the Aggregator module.
views.argument.aggregator_fid:
type: views.argument.numeric
label: 'Aggregator feed ID'
views.argument.aggregator_iid:
type: views.argument.numeric
label: 'Aggregator item ID'
views.field.aggregator_title_link:
type: views_field
label: 'Title link'
mapping:
display_as_link:
type: boolean
label: 'Display as link'
views.field.aggregator_xss:
type: views.field.xss
label: 'Aggregator XSS'
views.row.aggregator_rss:
type: views_row
label: 'Aggregator item row'
mapping:
item_length:
type: string
label: 'Display type'
......@@ -42,7 +42,7 @@ display:
id: 0
total_pages: 0
expose:
items_per_page: '0'
items_per_page: false
items_per_page_label: 'Items per page'
items_per_page_options: '5, 10, 20, 40, 60'
items_per_page_options_all: false
......@@ -54,7 +54,7 @@ display:
next: 'next ›'
first: '« first'
last: 'last »'
quantity: '9'
quantity: 9
style:
type: default
row:
......@@ -69,6 +69,7 @@ display:
admin_label: ''
label: 'Item ID'
exclude: false
plugin_id: numeric
alter:
alter_text: false
text: ''
......@@ -108,11 +109,11 @@ display:
hide_empty: false
empty_zero: false
hide_alter_empty: true
set_precision: '0'
precision: '0'
set_precision: false
precision: 0
decimal: .
separator: ','
format_plural: '0'
format_plural: false
format_plural_singular: '1'
format_plural_plural: '@count'
prefix: ''
......
# Schema for the configuration files of the Aggregator Test module.
aggregator_test.settings:
type: mapping
label: 'Aggregator test settings'
mapping:
items:
type: mapping
label: 'Items'
mapping:
dummy_length:
type: integer
label: 'Dummy length'
......@@ -2,13 +2,24 @@ base_field: iid
base_table: aggregator_item
core: 8.x
description: ''
status: '1'
status: true
display:
feed_1:
display_plugin: feed
id: feed_1
display_title: Feed
position: null
display_options:
path: test-aggregator-items-feed
row:
type: aggregator_rss
options:
item_length: default
default:
display_plugin: default
id: default
display_title: Master
position: ''
position: null
display_options:
access:
type: none
......@@ -36,32 +47,32 @@ display:
id: title
plugin_id: aggregator_title_link
alter:
alter_text: '0'
alter_text: false
text: ''
make_link: '0'
make_link: false
path: ''
absolute: '0'
external: '0'
replace_spaces: '0'
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: '0'
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: '0'
nl2br: false
max_length: ''
word_boundary: '1'
ellipsis: '1'
more_link: '0'
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: '0'
trim: '0'
strip_tags: false
trim: false
preserve_tags: ''
html: '0'
html: false
timestamp:
table: aggregator_item
field: timestamp
......@@ -73,32 +84,32 @@ display:
id: author
plugin_id: aggregator_xss
alter:
alter_text: '0'
alter_text: false
text: ''
make_link: '0'
make_link: false
path: ''
absolute: '0'
external: '0'
replace_spaces: '0'
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: '0'
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: '0'
nl2br: false
max_length: ''
word_boundary: '1'
ellipsis: '1'
more_link: '0'
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: '0'
trim: '0'
strip_tags: false
trim: false
preserve_tags: ''
html: '0'
html: false
description:
id: description
table: aggregator_item
......@@ -107,62 +118,52 @@ display:
group_type: group
admin_label: ''
label: Body
exclude: '0'
exclude: false
alter:
alter_text: '0'
alter_text: false
text: ''
make_link: '0'
make_link: false
path: ''
absolute: '0'
external: '0'
replace_spaces: '0'
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: '0'
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: '0'
nl2br: false
max_length: ''
word_boundary: '1'
ellipsis: '1'
more_link: '0'
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: '0'
trim: '0'
strip_tags: false
trim: false
preserve_tags: ''
html: '0'
html: false
element_type: ''
element_class: ''
element_label_type: ''
element_label_class: ''
element_label_colon: '1'
element_label_colon: true
element_wrapper_type: ''
element_wrapper_class: ''
element_default_classes: '1'
element_default_classes: true
empty: ''
hide_empty: '0'
empty_zero: '0'
hide_alter_empty: '1'
hide_empty: false
empty_zero: false
hide_alter_empty: true
plugin_id: aggregator_xss
filters: { }
sorts: { }
feed_1:
display_plugin: feed
id: feed_1
display_title: Feed
position: ''
display_options:
path: test-aggregator-items-feed
row:
type: aggregator_rss
options:
item_length: default
label: test_aggregator_items
module: views
id: test_aggregator_items
tag: ''
langcode: en
uuid: 19dd643f-9324-44df-ac72-0be915b334d1
# Schema for the views plugins of the Block module.
views.display.block:
type: views_display
label: 'Block display options'
mapping:
block_description:
type: label
label: 'Block name'
block_category:
type: text
label: 'Block category'
block_caching:
type: integer
label: 'Block caching'
block_hide_empty:
type: boolean
label: 'Hide block if no result/empty text'
allow:
type: boolean
label: 'Allow'
id: test_block
theme: stark
weight: ''
weight: 0
status: true
langcode: en
region: -1
region: '-1'
plugin: test_html_id
settings:
label: 'Test block html id'
module: block_test
label_display: false
cache: true
label_display: 'hidden'
cache: 1
visibility:
path:
visibility: 0
......
......@@ -8,7 +8,7 @@ display:
display_plugin: default
id: default
display_title: Master
position: ''
position: null
display_options:
access:
type: perm
......@@ -37,7 +37,7 @@ display:
display_plugin: block
id: block_1
display_title: Block
position: ''
position: null
display_options:
field:
title:
......
......@@ -8,7 +8,7 @@ display:
display_plugin: default
id: default
display_title: Master
position: ''
position: null
display_options:
access:
type: perm
......@@ -37,7 +37,7 @@ display:
display_plugin: block
id: block_1
display_title: Block
position: ''
position: null
display_options:
field:
title:
......@@ -46,7 +46,7 @@ display:
display_plugin: block
id: block_2
display_title: Block
position: ''
position: null
display_options:
field:
title:
......@@ -55,7 +55,7 @@ display:
display_plugin: block
id: block_3
display_title: Block
position: ''
position: null
display_options:
block_caching: 2
field:
......
......@@ -9,11 +9,11 @@ settings:
node:
preview: 1
options:
status: status
status: true
# Not promoted to front page.
promote: '0'
sticky: '0'
revision: '0'
promote: false
sticky: false
revision: false
submitted: true
status: true
langcode: en
......@@ -25,7 +25,7 @@ breakpoint.breakpoint.*.*.*:
type: string
label: 'Source type'
weight:
type: string
type: integer
label: 'Weight'
multipliers:
type: sequence
......@@ -56,7 +56,7 @@ breakpoint.breakpoint_group.*.*.*:
label:
type: string
label: 'Label'
breakpoints:
breakpoint_ids:
type: sequence
label: 'Breakpoints'
sequence:
......
id: comment.full
uuid: 06ab5b16-e197-4242-b72c-4453793fabba
label: Full comment
label: 'Full comment'
status: false
cache: true
targetEntityType: comment
# Schema for the configuration files of the Comment module.
entity_display.field.comment_default:
type: entity_field_display_base
label: 'Comment display format settings'
mapping:
settings:
type: sequence
label: 'Settings'
sequence:
- type: string
entity_form_display.field.comment_default:
type: entity_field_form_display_base
label: 'Comment display format settings'
mapping:
settings:
type: sequence
label: 'Settings'
sequence:
- type: string
action.configuration.comment_publish_action:
type: action_configuration_default
label: 'Publish comment configuration'
action.configuration.comment_save_action:
type: action_configuration_default
label: 'Save comment configuration'
action.configuration.comment_unpublish_by_keyword_action:
type: mapping
label: 'Unpublish comment containing keyword(s) configuration'
mapping:
keyword:
type: sequence
label: 'Keywords'
sequence:
- type: sequence
label: 'Keyword'
action.configuration.comment_unpublish_action:
type: action_configuration_default
label: 'Unpublish comment configuration'
# Schema for the views plugins of the Comment module.
views.argument.argument_comment_user_uid:
type: views_argument
label: 'Commented user ID'
views.field.comment:
type: views_field
label: 'Comment'
mapping:
link_to_comment:
type: boolean
label: 'Link this field to its comment'
link_to_entity:
type: boolean
label: 'Link field to the entity if there is no comment.'
views.field.comment_depth:
type: views_field
label: 'Comment depth'
views.field.comment_entity_link:
type: views_field
label: 'Comment link'
mapping:
teaser:
type: boolean
label: 'Show teaser-style link'
views.field.comment_last_timestamp:
type: views.field.date
label: 'Last comment date'
views.field.comment_link:
type: views_field
label: 'Comment link'
mapping:
text:
type: views_field
label: 'Text to display'
link_to_entity:
type: views_field
label: 'Link field to the entity if there is no comment.'
views.field.comment_link_approve:
type: views.field.comment_link
label: 'Comment approve link'
views.field.comment_link_delete:
type: views.field.comment_link
label: 'Comment delete link'
views.field.comment_link_edit:
type: views.field.comment_link
label: 'Comment edit link'
mapping:
destination:
type: boolean
label: 'Use destination'
views.field.comment_link_reply:
type: views.field.comment_link
label: 'Comment reply link'
views.field.node_new_comments:
type: views.field.numeric
label: 'Number of new comments'
mapping:
link_to_comment:
type: boolean
label: 'Link this field to new comments'
views.field.comment_ces_last_comment_name:
type: views_field
label: 'Name of last comment poster'
views.field.comment_ces_last_updated:
type: views_field
label: 'Newer of last comment / node updated'
views.field.comment_username:
type: views_field
label: 'Node comment status'
mapping:
link_to_user:
type: boolean
label: 'Link this field to its user or an author''s homepage'
views.filter.node_comment:
type: views.filter.in_operator
label: 'Comment node status'
views.filter.comment_ces_last_updated:
type: views.filter.date
label: 'Newer of last comment / node updated'
views.filter.comment_user_uid:
type: views_filter
label: 'Node user posted comment'
"views.row.entity:comment":
type: mapping
label: 'Entity options'
mapping:
view_mode:
type: string
label: 'View mode'
relationship:
type: string
label: 'Relationship'
links:
type: boolean
label: 'Display links'
views.row.comment_rss:
type: views_row
label: 'Comment'
mapping:
item_length:
type: string
label: 'Display type'
links:
type: boolean
label: 'Display links'
views.sort.comment_ces_last_comment_name:
type: views_sort
label: 'Last comment name'
views.sort.comment_ces_last_updated:
type: views.sort.date
label: 'Newer of last comment / entity updated'
views.sort.comment_thread:
type: views_sort
label: 'Thread'
......@@ -11,7 +11,7 @@ display:
position: 0
display_options:
block_description: 'Recent comments'
block_category: Lists (Views)
block_category: 'Lists (Views)'
default:
display_plugin: default
id: default
......@@ -110,7 +110,7 @@ display:
empty_zero: false
hide_alter_empty: true
link_to_comment: true
link_to_node: false
link_to_entity: false
changed:
id: changed
table: comment
......@@ -171,7 +171,7 @@ display:
id: status
plugin_id: boolean
expose:
operator: false
operator: ''
group: 1
status_node:
value: true
......@@ -181,7 +181,7 @@ display:
id: status_node
plugin_id: boolean
expose:
operator: false
operator: ''
group: 1
sorts:
created:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment