-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
VACMS-17116: Create Views result condition plugin (#17357)
* VACMS-17116: Adds new Views Display plugin for ECA. * VACMS-17116: Updates labe for Views Result display plugin. * VACMS-17116: Adds ViewsResult Condition Pluging for ECA. * VACMS-17116: Rename the display. * VACMS-17116: Removes test eca model. * VACMS-17116: Refactor condition form to use select element and improve how views values are captured and stored. * VACMS-17116: Installs va_gov_eca. * VACMS-17116: Adds initial test for Views Result Condition plugin. * VACMS-17116: Use correct config keys in condition evaluation. * VACMS-17116: Update test to use real condition evaluations. * VACMS-17116: DRY changes. * VACMS-17116: Renames view and test module. * VACMS-17116: Adds initial FWB expiring content View and related ECA.
- Loading branch information
Showing
11 changed files
with
943 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
uuid: 363d384e-b996-41b9-8cbd-f6b0dbe01e76 | ||
langcode: en | ||
status: false | ||
dependencies: | ||
module: | ||
- eca_base | ||
- va_gov_eca | ||
id: expiring_fwb | ||
modeller: core | ||
label: 'Scheduled Notifications: Expiring FWB' | ||
version: 0.1.0 | ||
weight: null | ||
events: | ||
eca_base_eca_cron: | ||
plugin: 'eca_base:eca_cron' | ||
label: 'ECA cron event' | ||
configuration: | ||
frequency: '* * * * *' | ||
successors: | ||
- | ||
id: action_message_action | ||
condition: views_result | ||
conditions: | ||
views_result: | ||
plugin: views_result | ||
configuration: | ||
negate: false | ||
view_name: scheduled_notifications_full_width_alert | ||
display_name: eca_result_1 | ||
arguments: { } | ||
gateways: { } | ||
actions: | ||
action_message_action: | ||
plugin: action_message_action | ||
label: 'Display a message to the user' | ||
configuration: | ||
message: 'The Scheduled Notifications: Full Width Alert View has results.' | ||
replace_tokens: false | ||
successors: { } |
This file was deleted.
Oops, something went wrong.
288 changes: 288 additions & 0 deletions
288
config/sync/views.view.scheduled_notifications_full_width_alert.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,288 @@ | ||
uuid: c4871759-4d7d-4aa5-bf57-9184da4a487b | ||
langcode: en | ||
status: true | ||
dependencies: | ||
config: | ||
- core.entity_view_mode.node.teaser | ||
- node.type.banner | ||
module: | ||
- node | ||
- user | ||
- va_gov_eca | ||
id: scheduled_notifications_full_width_alert | ||
label: 'Scheduled Notifications: Full Width Alert' | ||
module: views | ||
description: '' | ||
tag: '' | ||
base_table: node_field_data | ||
base_field: nid | ||
display: | ||
default: | ||
id: default | ||
display_title: Default | ||
display_plugin: default | ||
position: 0 | ||
display_options: | ||
fields: | ||
title: | ||
id: title | ||
table: node_field_data | ||
field: title | ||
relationship: none | ||
group_type: group | ||
admin_label: '' | ||
entity_type: node | ||
entity_field: title | ||
plugin_id: field | ||
label: '' | ||
exclude: false | ||
alter: | ||
alter_text: false | ||
make_link: false | ||
absolute: false | ||
word_boundary: false | ||
ellipsis: false | ||
strip_tags: false | ||
trim: false | ||
html: false | ||
element_type: '' | ||
element_class: '' | ||
element_label_type: '' | ||
element_label_class: '' | ||
element_label_colon: true | ||
element_wrapper_type: '' | ||
element_wrapper_class: '' | ||
element_default_classes: true | ||
empty: '' | ||
hide_empty: false | ||
empty_zero: false | ||
hide_alter_empty: true | ||
click_sort_column: value | ||
type: string | ||
settings: | ||
link_to_entity: true | ||
group_column: value | ||
group_columns: { } | ||
group_rows: true | ||
delta_limit: 0 | ||
delta_offset: 0 | ||
delta_reversed: false | ||
delta_first_last: false | ||
multi_type: separator | ||
separator: ', ' | ||
field_api_classes: false | ||
pager: | ||
type: mini | ||
options: | ||
offset: 0 | ||
items_per_page: 10 | ||
total_pages: null | ||
id: 0 | ||
tags: | ||
next: ›› | ||
previous: ‹‹ | ||
expose: | ||
items_per_page: false | ||
items_per_page_label: 'Items per page' | ||
items_per_page_options: '5, 10, 25, 50' | ||
items_per_page_options_all: false | ||
items_per_page_options_all_label: '- All -' | ||
offset: false | ||
offset_label: Offset | ||
pagination_heading_level: h2 | ||
exposed_form: | ||
type: basic | ||
options: | ||
submit_button: Apply | ||
reset_button: false | ||
reset_button_label: Reset | ||
exposed_sorts_label: 'Sort by' | ||
expose_sort_order: true | ||
sort_asc_label: Asc | ||
sort_desc_label: Desc | ||
access: | ||
type: perm | ||
options: | ||
perm: 'access content' | ||
cache: | ||
type: tag | ||
options: { } | ||
empty: { } | ||
sorts: | ||
created: | ||
id: created | ||
table: node_field_data | ||
field: created | ||
relationship: none | ||
group_type: group | ||
admin_label: '' | ||
entity_type: node | ||
entity_field: created | ||
plugin_id: date | ||
order: DESC | ||
expose: | ||
label: '' | ||
field_identifier: '' | ||
exposed: false | ||
granularity: second | ||
arguments: { } | ||
filters: | ||
status: | ||
id: status | ||
table: node_field_data | ||
field: status | ||
entity_type: node | ||
entity_field: status | ||
plugin_id: boolean | ||
value: '1' | ||
group: 1 | ||
expose: | ||
operator: '' | ||
type: | ||
id: type | ||
table: node_field_data | ||
field: type | ||
entity_type: node | ||
entity_field: type | ||
plugin_id: bundle | ||
value: | ||
banner: banner | ||
style: | ||
type: default | ||
options: | ||
grouping: { } | ||
row_class: '' | ||
default_row_class: true | ||
uses_fields: false | ||
row: | ||
type: fields | ||
options: | ||
default_field_elements: true | ||
inline: { } | ||
separator: '' | ||
hide_empty: false | ||
query: | ||
type: views_query | ||
options: | ||
query_comment: '' | ||
disable_sql_rewrite: false | ||
distinct: false | ||
replica: false | ||
query_tags: { } | ||
relationships: { } | ||
header: { } | ||
footer: { } | ||
display_extenders: { } | ||
cache_metadata: | ||
max-age: -1 | ||
contexts: | ||
- 'languages:language_content' | ||
- 'languages:language_interface' | ||
- url.query_args | ||
- 'user.node_grants:view' | ||
- user.permissions | ||
tags: { } | ||
eca_result_1: | ||
id: eca_result_1 | ||
display_title: 'ECA Result' | ||
display_plugin: eca_result | ||
position: 1 | ||
display_options: | ||
display_extenders: | ||
jsonapi_views: | ||
enabled: true | ||
row: | ||
type: 'entity:node' | ||
options: | ||
relationship: none | ||
view_mode: teaser | ||
filters: | ||
type: | ||
id: type | ||
table: node_field_data | ||
field: type | ||
relationship: none | ||
group_type: group | ||
admin_label: '' | ||
operator: in | ||
value: | ||
banner: banner | ||
group: '1' | ||
exposed: false | ||
expose: | ||
operator_id: false | ||
label: '' | ||
description: '' | ||
use_operator: false | ||
operator: '' | ||
operator_limit_selection: false | ||
operator_list: { } | ||
identifier: '' | ||
required: false | ||
remember: false | ||
multiple: false | ||
remember_roles: | ||
authenticated: authenticated | ||
reduce: false | ||
is_grouped: false | ||
group_info: | ||
label: '' | ||
description: '' | ||
identifier: '' | ||
optional: true | ||
widget: select | ||
multiple: false | ||
remember: 0 | ||
default_group: All | ||
default_group_multiple: { } | ||
group_items: { } | ||
entity_type: node | ||
entity_field: type | ||
plugin_id: bundle | ||
status: | ||
id: status | ||
table: node_field_data | ||
field: status | ||
relationship: none | ||
group_type: group | ||
admin_label: '' | ||
operator: '=' | ||
value: '1' | ||
group: '1' | ||
exposed: false | ||
expose: | ||
operator_id: false | ||
label: '' | ||
description: '' | ||
use_operator: false | ||
operator: '' | ||
operator_limit_selection: false | ||
operator_list: { } | ||
identifier: '' | ||
required: false | ||
remember: false | ||
multiple: false | ||
remember_roles: | ||
authenticated: authenticated | ||
is_grouped: false | ||
group_info: | ||
label: '' | ||
description: '' | ||
identifier: '' | ||
optional: true | ||
widget: select | ||
multiple: false | ||
remember: 0 | ||
default_group: All | ||
default_group_multiple: { } | ||
group_items: { } | ||
entity_type: node | ||
entity_field: status | ||
plugin_id: boolean | ||
title: 'Expiring Alerts' | ||
cache_metadata: | ||
max-age: -1 | ||
contexts: | ||
- 'languages:language_interface' | ||
- 'user.node_grants:view' | ||
tags: { } |
3 changes: 3 additions & 0 deletions
3
docroot/modules/custom/va_gov_eca/config/schema/va_gov_eca.views.schema.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
views.display.eca_result: | ||
type: views_display | ||
label: 'ECA Result display' |
Oops, something went wrong.