Skip to content

Commit

Permalink
Merge branch '11.x' of https://github.com/SU-SWS/stanford_profile int…
Browse files Browse the repository at this point in the history
…o 11.x
  • Loading branch information
pookmish committed Feb 24, 2024
2 parents e238943 + 689866b commit 7165e59
Show file tree
Hide file tree
Showing 27 changed files with 348 additions and 33 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# SOE Profile

11.2.1
-------------------------------------------------------------------------------
- Provide items per page for graphql views
- Expose event image via graphql
- Added external image url for events content from Localist

11.2.1
-------------------------------------------------------------------------------
- Fixed logger syntax during site install.
Expand Down
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
"drupal/graphql_compose": "^2.0",
"drupal/hook_event_dispatcher": "^4.0@beta",
"drupal/image_effects": "^3.2",
"drupal/imagecache_external": "^3.0",
"drupal/imagemagick": "^3.1",
"drupal/jquery_ui_draggable": "^2.0",
"drupal/jsonapi_extras": "^3.20",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ hidden:
path: true
promote: true
sticky: true
su_event_ext_image: true
uid: true
unpublish_on: true
url_redirects: true
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,7 @@ hidden:
layout_builder__layout: true
search_api_excerpt: true
stanford_intranet__access: true
su_event_ext_image: true
su_event_groups: true
su_event_keywords: true
su_event_schedule: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ hidden:
links: true
search_api_excerpt: true
stanford_intranet__access: true
su_event_ext_image: true
su_event_groups: true
su_event_keywords: true
su_event_subject: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,7 @@ hidden:
su_event_cta: true
su_event_dek: true
su_event_email: true
su_event_ext_image: true
su_event_groups: true
su_event_keywords: true
su_event_map_link: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,7 @@ hidden:
su_event_contact_info: true
su_event_cta: true
su_event_email: true
su_event_ext_image: true
su_event_groups: true
su_event_keywords: true
su_event_map_link: true
Expand Down
1 change: 1 addition & 0 deletions config/sync/core.extension.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ module:
hook_event_dispatcher: 0
image: 0
image_effects: 0
imagecache_external: 0
imagemagick: 0
inline_entity_form: 0
inline_form_errors: 0
Expand Down
19 changes: 19 additions & 0 deletions config/sync/field.field.node.stanford_event.su_event_ext_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: 95b1e2c6-5f15-48c0-acd8-22f2d2b427ee
langcode: en
status: true
dependencies:
config:
- field.storage.node.su_event_ext_image
- node.type.stanford_event
id: node.stanford_event.su_event_ext_image
field_name: su_event_ext_image
entity_type: node
bundle: stanford_event
label: 'External Image'
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: string
25 changes: 25 additions & 0 deletions config/sync/field.storage.node.su_event_ext_image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
uuid: aae7ab5a-9634-43b4-a6b0-eee8a54cc8bd
langcode: en
status: true
dependencies:
module:
- field_permissions
- node
third_party_settings:
field_permissions:
permission_type: custom
id: node.su_event_ext_image
field_name: su_event_ext_image
entity_type: node
type: string
settings:
max_length: 255
case_sensitive: false
is_ascii: false
module: core
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
2 changes: 2 additions & 0 deletions config/sync/graphql_compose.settings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,8 @@ field_config:
enabled: true
su_event_email:
enabled: true
su_event_ext_image:
enabled: true
su_event_groups:
enabled: true
su_event_keywords:
Expand Down
25 changes: 25 additions & 0 deletions config/sync/imagecache_external.settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
_core:
default_config_hash: epwG9LevfsqBi6thp5KK9oC2bdwklXNQzvouyiLWq2g
imagecache_directory: externals
imagecache_subdirectories: false
imagecache_default_extension: .jpg
imagecache_external_batch_flush_limit: 1000
imagecache_external_hosts: "localist-images.azureedge.net\r\nstanford.edu"
imagecache_external_management: unmanaged
imagecache_external_use_whitelist: true
imagecache_fallback_image: 0
imagecache_external_allowed_mimetypes:
- image/jpg
- image/jpg;charset=utf-8
- image/jpeg
- image/jpeg;charset=utf-8
- image/png
- image/png;charset=utf-8
- image/gif
- image/gif;charset=utf-8
- image/webp
- image/webp;charset=utf-8
- application/octet-stream
- application/octet-stream;charset=utf-8
- binary/octet-stream
imagecache_external_cron_flush_frequency: 7
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ process:
entity_type: taxonomy_term
ignore_case: true
source: name
su_event_ext_image: photo_url
destination:
plugin: 'entity:node'
overwrite_properties:
Expand All @@ -511,6 +512,7 @@ destination:
- su_event_date_time/end_value
- su_event_date_time/timezone
- su_event_date_time/value
- su_event_ext_image
- su_event_groups
- su_event_keywords
- su_event_map_link/title
Expand Down
17 changes: 17 additions & 0 deletions config/sync/ultimate_cron.job.imagecache_external_cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
uuid: 32036a98-2245-430e-a74f-cccaa050c552
langcode: en
status: true
dependencies:
module:
- imagecache_external
title: 'Default cron handler'
id: imagecache_external_cron
weight: 0
module: imagecache_external
callback: imagecache_external_cron
scheduler:
id: simple
launcher:
id: serial
logger:
id: database
1 change: 1 addition & 0 deletions config/sync/user.role.anonymous.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ permissions:
- 'view stanford_global_message config page entity'
- 'view stanford_local_footer config page entity'
- 'view stanford_super_footer config page entity'
- 'view su_event_ext_image'
- 'view su_metatags'
- 'view su_policy_auto_prefix'
- 'view su_policy_chapter'
Expand Down
1 change: 1 addition & 0 deletions config/sync/user.role.authenticated.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ permissions:
- 'view own su_site_url'
- 'view policy log'
- 'view printer friendly versions'
- 'view su_event_ext_image'
- 'view su_metatags'
- 'view su_policy_auto_prefix'
- 'view su_policy_chapter'
Expand Down
40 changes: 37 additions & 3 deletions config/sync/views.view.stanford_basic_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -615,10 +615,26 @@ display:
position: 99
display_options:
pager:
type: some
type: full
options:
offset: 0
items_per_page: 20
items_per_page: 21
total_pages: null
id: 0
tags:
next: 'Next ›'
previous: '‹ Previous'
first: '« First'
last: 'Last »'
expose:
items_per_page: true
items_per_page_label: items
items_per_page_options: '3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57,60,63,66,69,72,75,78,81,84,87,90,93,96,99'
items_per_page_options_all: true
items_per_page_options_all_label: all
offset: true
offset_label: offset
quantity: 9
display_description: ''
display_extenders: { }
graphql_query_name: stanfordBasicPages
Expand All @@ -628,6 +644,7 @@ display:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
- 'user.node_grants:view'
- user.permissions
tags:
Expand Down Expand Up @@ -680,10 +697,26 @@ display:
position: 99
display_options:
pager:
type: some
type: full
options:
offset: 0
items_per_page: 3
total_pages: null
id: 0
tags:
next: 'Next ›'
previous: '‹ Previous'
first: '« First'
last: 'Last »'
expose:
items_per_page: true
items_per_page_label: items
items_per_page_options: '3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57,60,63,66,69,72,75,78,81,84,87,90,93,96,99'
items_per_page_options_all: true
items_per_page_options_all_label: all
offset: true
offset_label: offset
quantity: 9
style:
type: graphql
options:
Expand All @@ -704,6 +737,7 @@ display:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
- 'user.node_grants:view'
- user.permissions
tags:
Expand Down
40 changes: 37 additions & 3 deletions config/sync/views.view.stanford_courses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1981,10 +1981,26 @@ display:
output_url_as_text: false
absolute: false
pager:
type: some
type: full
options:
offset: 0
items_per_page: 20
items_per_page: 21
total_pages: null
id: 0
tags:
next: 'Next ›'
previous: '‹ Previous'
first: '« First'
last: 'Last »'
expose:
items_per_page: true
items_per_page_label: items
items_per_page_options: '3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57,60,63,66,69,72,75,78,81,84,87,90,93,96,99'
items_per_page_options_all: true
items_per_page_options_all_label: all
offset: true
offset_label: offset
quantity: 9
arguments:
term_node_taxonomy_name_depth:
id: term_node_taxonomy_name_depth
Expand Down Expand Up @@ -2039,6 +2055,7 @@ display:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
- 'user.node_grants:view'
- user.permissions
tags:
Expand Down Expand Up @@ -3796,10 +3813,26 @@ display:
separator: ', '
field_api_classes: false
pager:
type: some
type: full
options:
offset: 0
items_per_page: 3
total_pages: null
id: 0
tags:
next: 'Next ›'
previous: '‹ Previous'
first: '« First'
last: 'Last »'
expose:
items_per_page: true
items_per_page_label: items
items_per_page_options: '3,6,9,12,15,18,21,24,27,30,33,36,39,42,45,48,51,54,57,60,63,66,69,72,75,78,81,84,87,90,93,96,99'
items_per_page_options_all: true
items_per_page_options_all_label: all
offset: true
offset_label: offset
quantity: 9
style:
type: graphql
options: null
Expand All @@ -3820,6 +3853,7 @@ display:
- 'languages:language_content'
- 'languages:language_interface'
- url
- url.query_args
- 'user.node_grants:view'
- user.permissions
tags:
Expand Down
Loading

0 comments on commit 7165e59

Please sign in to comment.