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

SUM: Multiple global messages that can be scheduled to publish/unpublish #155

Merged
merged 8 commits into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,11 @@ entity_config:
su_policy_log:
su_policy_log:
enabled: true
summer_entity:
global_msg:
enabled: true
query_load_enabled: true
edges_enabled: true
taxonomy_term:
basic_page_types:
enabled: true
Expand Down Expand Up @@ -1095,6 +1100,14 @@ field_config:
enabled: true
su_policy_title:
enabled: true
summer_entity:
global_msg:
sum_global_msg_body:
enabled: true
sum_global_msg_hide:
enabled: true
sum_global_msg_link:
enabled: true
settings:
exclude_unpublished: false
expose_entity_ids: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ adding:
- field.storage.node.sum_course_schedule
- field.storage.node.sum_course_start_date
- field.storage.node.sum_course_units
read_only: true
field_settings:
html:
configuration:
Expand Down Expand Up @@ -165,6 +166,7 @@ adding:
- sum_course_prerequisites
- sum_course_schedule
removing:
read_only: false
field_settings:
photo:
configuration:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
adding: { }
removing:
dependencies:
module:
- system
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ adding:
- 'edit own sum_summer_courses content'
- 'revert stanford_page revisions'
- 'revert sum_summer_courses revisions'
- 'schedule publishing of summer_entity'
- 'use text format sum_markdown'
- 'view any unpublished sum_summer_courses content'
- 'view scheduled summer_entity'
- 'view sum_summer_courses revisions'
removing:
permissions:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@ adding:
config:
- core.entity_view_display.node.stanford_page.default
- filter.format.sum_markdown
module:
- summer_helper
permissions:
- 'administer summer entities'
- 'configure all stanford_page node layout overrides'
- 'configure editable stanford_page node layout overrides'
- 'schedule publishing of summer_entity'
- 'use text format sum_markdown'
removing: { }
- 'view scheduled summer_entity'
removing:
permissions:
- 'edit stanford_global_message config page entity'
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,15 @@ adding:
config:
- core.entity_view_display.node.stanford_page.default
- filter.format.sum_markdown
module:
- summer_helper
permissions:
- 'administer summer entities'
- 'configure all stanford_page node layout overrides'
- 'configure editable stanford_page node layout overrides'
- 'schedule publishing of summer_entity'
- 'use text format sum_markdown'
removing: { }
- 'view scheduled summer_entity'
removing:
permissions:
- 'edit stanford_global_message config page entity'
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,10 @@ adding:
- 'edit terms in sum_summer_courses'
- 'import sum_csv_summer_courses migration'
- 'revert sum_summer_courses revisions'
- 'schedule publishing of summer_entity'
- 'use text format sum_markdown'
- 'view any unpublished sum_summer_courses content'
- 'view scheduled summer_entity'
- 'view sum_summer_courses revisions'
removing:
dependencies:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ adding:
- taxonomy.vocabulary.sum_course_interest_area
- taxonomy.vocabulary.sum_course_population
- taxonomy.vocabulary.sum_summer_courses
module:
- summer_helper
permissions:
- 'administer summer entities'
- 'create sum_summer_courses content'
- 'create terms in sum_course_availability'
- 'create terms in sum_course_interest_area'
Expand All @@ -28,8 +31,10 @@ adding:
- 'edit terms in sum_summer_courses'
- 'import sum_csv_summer_courses migration'
- 'revert sum_summer_courses revisions'
- 'schedule publishing of summer_entity'
- 'use text format sum_markdown'
- 'view any unpublished sum_summer_courses content'
- 'view scheduled summer_entity'
- 'view sum_summer_courses revisions'
removing:
dependencies:
Expand Down Expand Up @@ -85,6 +90,7 @@ removing:
- 'edit own stanford_person content'
- 'edit own stanford_policy content'
- 'edit own stanford_publication content'
- 'edit stanford_global_message config page entity'
- 'edit terms in event_audience'
- 'edit terms in stanford_event_types'
- 'edit terms in stanford_news_topics'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
adding:
display:
default:
display_options:
access:
options:
perm: 'update any stanford_component_block block content'
removing:
display:
default:
display_options:
access:
options:
perm: 'edit any stanford_component_block block content'
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
uuid: 57d3e491-2204-4c0f-a249-2e6292a04aef
langcode: en
status: true
dependencies:
config:
- field.field.summer_entity.global_msg.sum_global_msg_body
- field.field.summer_entity.global_msg.sum_global_msg_hide
- field.field.summer_entity.global_msg.sum_global_msg_link
- summer_helper.summer_entity_type.global_msg
module:
- link
- scheduler
- text
id: summer_entity.global_msg.default
targetEntityType: summer_entity
bundle: global_msg
mode: default
content:
label:
type: string_textfield
weight: 0
region: content
settings:
size: 60
placeholder: ''
third_party_settings: { }
publish_on:
type: datetime_timestamp_no_default
weight: 6
region: content
settings: { }
third_party_settings: { }
scheduler_settings:
weight: 5
region: content
settings: { }
third_party_settings: { }
status:
type: boolean_checkbox
weight: 4
region: content
settings:
display_label: false
third_party_settings: { }
sum_global_msg_body:
type: text_textarea
weight: 1
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
sum_global_msg_hide:
type: string_textarea
weight: 3
region: content
settings:
rows: 5
placeholder: ''
third_party_settings: { }
sum_global_msg_link:
type: link_default
weight: 2
region: content
settings:
placeholder_url: ''
placeholder_title: ''
third_party_settings: { }
unpublish_on:
type: datetime_timestamp_no_default
weight: 7
region: content
settings: { }
third_party_settings: { }
hidden:
created: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
uuid: 7e28ea5d-bc59-40c2-bd44-a88bbd53967f
langcode: en
status: true
dependencies:
config:
- field.field.summer_entity.global_msg.sum_global_msg_body
- field.field.summer_entity.global_msg.sum_global_msg_hide
- field.field.summer_entity.global_msg.sum_global_msg_link
- summer_helper.summer_entity_type.global_msg
module:
- link
- text
id: summer_entity.global_msg.default
targetEntityType: summer_entity
bundle: global_msg
mode: default
content:
created:
type: timestamp
label: above
settings:
date_format: medium
custom_date_format: ''
timezone: ''
tooltip:
date_format: long
custom_date_format: ''
time_diff:
enabled: false
future_format: '@interval hence'
past_format: '@interval ago'
granularity: 2
refresh: 60
third_party_settings: { }
weight: 20
region: content
label:
type: string
label: hidden
settings:
link_to_entity: false
third_party_settings: { }
weight: -5
region: content
status:
type: boolean
label: above
settings:
format: enabled-disabled
format_custom_false: ''
format_custom_true: ''
third_party_settings: { }
weight: 0
region: content
sum_global_msg_body:
type: text_default
label: above
settings: { }
third_party_settings: { }
weight: 21
region: content
sum_global_msg_hide:
type: basic_string
label: above
settings: { }
third_party_settings: { }
weight: 23
region: content
sum_global_msg_link:
type: link
label: above
settings:
trim_length: 80
url_only: false
url_plain: false
rel: ''
target: ''
third_party_settings: { }
weight: 22
region: content
hidden:
search_api_excerpt: true
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
uuid: ef73042d-c60e-4ad2-b8ea-1fd0b41ce4e2
langcode: en
status: true
dependencies:
config:
- field.storage.summer_entity.sum_global_msg_body
- filter.format.stanford_minimal_html
- summer_helper.summer_entity_type.global_msg
module:
- text
id: summer_entity.global_msg.sum_global_msg_body
field_name: sum_global_msg_body
entity_type: summer_entity
bundle: global_msg
label: Message
description: 'This is the body content of the message.'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
allowed_formats:
- stanford_minimal_html
field_type: text_long
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 0a1dd5d0-7a85-4f31-afb5-143174deac2b
langcode: en
status: true
dependencies:
config:
- field.storage.summer_entity.sum_global_msg_hide
- summer_helper.summer_entity_type.global_msg
id: summer_entity.global_msg.sum_global_msg_hide
field_name: sum_global_msg_hide
entity_type: summer_entity
bundle: global_msg
label: 'Hide on Pages'
description: 'Place one path per page. Do not include the domain. Ex: <code>/foo/bar</code>'
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string_long
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
uuid: 131cf499-c576-4cd6-9535-572d54371f10
langcode: en
status: true
dependencies:
config:
- field.storage.summer_entity.sum_global_msg_link
- summer_helper.summer_entity_type.global_msg
module:
- link
- stanford_fields
third_party_settings:
stanford_fields:
force_relative: true
id: summer_entity.global_msg.sum_global_msg_link
field_name: sum_global_msg_link
entity_type: summer_entity
bundle: global_msg
label: 'Action Link'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings:
title: 2
link_type: 17
field_type: link
Loading
Loading