Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Epad8 2652 mark notifications as seen #1583

Open
wants to merge 8 commits into
base: FEATURE-danse
Choose a base branch
from
1 change: 1 addition & 0 deletions services/drupal/composer.patches.json
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@
"Add Last revision to payload and fix canonical error on DANSE report page": "patches/last_revision-3452539.patch"
},
"drupal/danse": {
"Add Bulk Operation for marking notifications as seen or unseen": "patches/notification-seen-unseen-action.diff",
"Fix issue with Prune job": "patches/danse-fix-prune-job.diff"
}
}
Expand Down
1 change: 1 addition & 0 deletions services/drupal/config/sync/user.role.authenticated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ permissions:
- 'create webform content'
- 'delete own files'
- 'edit own paragraph library items'
- 'execute danse_notification_seen_action danse_notification'
- 'execute entity:publish_action block_content'
- 'execute entity:publish_action media'
- 'execute entity:publish_action menu_link_content'
Expand Down
263 changes: 260 additions & 3 deletions services/drupal/config/sync/views.view.notifications.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ dependencies:
- group
- node
- user
- views_bulk_operations
id: notifications
label: Notifications
module: views
Expand All @@ -26,6 +27,68 @@ display:
display_options:
title: 'All Notifications'
fields:
views_bulk_operations_bulk_form:
id: views_bulk_operations_bulk_form
table: views
field: views_bulk_operations_bulk_form
relationship: none
group_type: group
admin_label: ''
plugin_id: views_bulk_operations_bulk_form
label: 'Views bulk operations'
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
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
batch: true
batch_size: 10
form_step: true
ajax_loader: false
buttons: false
action_title: Action
clear_on_exposed: true
force_selection_info: false
selected_actions:
-
action_id: danse_notification_seen_action
preconfiguration:
add_confirmation: false
reference_node_transition:
id: reference_node_transition
table: danse_event
Expand Down Expand Up @@ -76,6 +139,73 @@ display:
hide_empty: false
empty_zero: false
hide_alter_empty: true
seen:
id: seen
table: danse_notification
field: seen
relationship: none
group_type: group
admin_label: ''
entity_type: danse_notification
entity_field: seen
plugin_id: field
label: Seen
exclude: false
alter:
alter_text: false
text: ''
make_link: false
path: ''
absolute: false
external: false
replace_spaces: false
path_case: none
trim_whitespace: false
alt: ''
rel: ''
link_class: ''
prefix: ''
suffix: ''
target: ''
nl2br: false
max_length: 0
word_boundary: true
ellipsis: true
more_link: false
more_link_text: ''
more_link_path: ''
strip_tags: false
trim: false
preserve_tags: ''
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: boolean
settings:
format: unicode-yes-no
format_custom_false: ''
format_custom_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
title:
id: title
table: node_field_data
Expand Down Expand Up @@ -622,7 +752,119 @@ display:
validate_options: { }
break_phrase: false
not: false
filters: { }
filters:
seen:
id: seen
table: danse_notification
field: seen
relationship: none
group_type: group
admin_label: ''
entity_type: danse_notification
entity_field: seen
plugin_id: boolean
operator: '='
value: '0'
group: 1
exposed: true
expose:
operator_id: ''
label: Seen
description: ''
use_operator: false
operator: seen_op
operator_limit_selection: false
operator_list: { }
identifier: seen
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
anonymous: '0'
paragraphs_library_contributor: '0'
layout_editor: '0'
alerts_manager: '0'
block_manager: '0'
system_editor: '0'
system_webmaster: '0'
menu_admin: '0'
administrator: '0'
beta_tester: '0'
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
gid:
id: gid
table: group_content_field_data
field: gid
relationship: group_content
group_type: group
admin_label: ''
entity_type: group_content
entity_field: gid
plugin_id: entity_reference
operator: or
value: { }
group: 1
exposed: true
expose:
operator_id: gid_op
label: 'Web Area'
description: ''
use_operator: false
operator: gid_op
operator_limit_selection: false
operator_list: { }
identifier: gid
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
anonymous: '0'
paragraphs_library_contributor: '0'
layout_editor: '0'
alerts_manager: '0'
block_manager: '0'
system_editor: '0'
system_webmaster: '0'
menu_admin: '0'
administrator: '0'
beta_tester: '0'
reduce: false
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
reduce_duplicates: false
handler: 'default:group'
widget: autocomplete
handler_settings:
target_bundles:
web_area: web_area
sort:
field: _none
direction: ASC
auto_create: false
auto_create_bundle: ''
style:
type: table
options:
Expand Down Expand Up @@ -760,7 +1002,7 @@ display:
views_ajax_get:
ajax_get: false
cache_metadata:
max-age: -1
max-age: 0
contexts:
- 'languages:language_content'
- 'languages:language_interface'
Expand All @@ -775,7 +1017,22 @@ display:
display_plugin: page
position: 1
display_options:
empty:
area:
id: area
table: views
field: area
relationship: none
group_type: group
admin_label: ''
plugin_id: text
empty: true
content:
value: 'All caught up! No new notifications.'
format: filtered_html
tokenize: false
defaults:
empty: false
sorts: true
display_extenders:
views_ajax_get:
Expand All @@ -791,7 +1048,7 @@ display:
parent: system.admin_content
context: '0'
cache_metadata:
max-age: -1
max-age: 0
contexts:
- 'languages:language_content'
- 'languages:language_interface'
Expand Down
Loading