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

YSP-672: AI: Add media payloads and pipelines #779

Draft
wants to merge 10 commits into
base: develop
Choose a base branch
from
4 changes: 4 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
"type": "tar"
}
}
},
"ai_engine": {
"type": "vcs",
"url": "https://github.com/yalesites-org/ai_engine"
}
},
"require": {
Expand Down
1 change: 1 addition & 0 deletions pantheon.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
api_version: 1
# Downstream sites should not change the workflow.

# Specifying Quicksilver workflows in pantheon.upstream.yml is not supported.
workflows:
clone_database:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ index 34310e2..fa855a6 100644
+ if ($config->get('group_reusable_blocks_together')) {
+
+ foreach ($block_links as $key => $block_link) {
+ $changed = date('m/d/Y - H:i', $block_link['#changed']);
+ $changed = date('m/d/Y - H:i', $block_link['link']['#changed']);
+ $block_links[$key]['link']['#title']['label']['#markup'] = "
+ <span class='underlined-title'>{$block_link['link']['#title']['label']['#markup']}</span>
+ <br>
Expand Down
8 changes: 6 additions & 2 deletions web/profiles/custom/yalesites_profile/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@
"type": "tar"
}
}
},
"ai_engine": {
"type": "vcs",
"url": "https://github.com/yalesites-org/ai_engine"
}
},
"require": {
Expand Down Expand Up @@ -90,7 +94,7 @@
"drupal/paragraphs_features": "2.0.0",
"drupal/pathauto": "1.13.0",
"drupal/publishcontent": "1.6",
"drupal/quick_node_clone": "1.18.0",
"drupal/quick_node_clone": "1.19.0",
"drupal/recaptcha": "3.4.0",
"drupal/recaptcha_v3": "2.0.3",
"drupal/redirect": "1.10.0",
Expand All @@ -111,7 +115,7 @@
"jjj/chosen": "2.2.1",
"laminas/laminas-escaper": "2.13.0",
"northernco/ckeditor5-anchor-drupal": "0.4.0",
"yalesites-org/ai_engine": "1.2.5",
"yalesites-org/ai_engine": "dev-YSP-672-ai-add-media-payloads-and-pipelines",
"yalesites-org/atomic": "1.39.0",
"yalesites-org/yale_cas": "v1.0.5"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ status: true
dependencies:
config:
- field.field.media.document.field_media_file
- field.field.media.document.field_metatags
- field.field.media.document.field_tags
- media.type.document
module:
- chosen_field
- file
- metatag
id: media.document.default
targetEntityType: media
bundle: document
Expand All @@ -21,6 +23,14 @@ content:
settings:
progress_indicator: throbber
third_party_settings: { }
field_metatags:
type: metatag_firehose
weight: 3
region: content
settings:
sidebar: true
use_details: true
third_party_settings: { }
field_tags:
type: chosen_select
weight: 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dependencies:
config:
- core.entity_form_mode.media.media_library
- field.field.media.document.field_media_file
- field.field.media.document.field_metatags
- field.field.media.document.field_tags
- media.type.document
module:
Expand Down Expand Up @@ -38,6 +39,7 @@ content:
third_party_settings: { }
hidden:
created: true
field_metatags: true
path: true
revision_log_message: true
status: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ status: true
dependencies:
config:
- field.field.media.document.field_media_file
- field.field.media.document.field_metatags
- field.field.media.document.field_tags
- media.type.document
module:
- file
- metatag
id: media.document.default
targetEntityType: media
bundle: document
Expand All @@ -20,6 +22,13 @@ content:
third_party_settings: { }
weight: 0
region: content
field_metatags:
type: metatag_empty_formatter
label: above
settings: { }
third_party_settings: { }
weight: 1
region: content
hidden:
created: true
field_tags: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ dependencies:
config:
- core.entity_view_mode.media.media_library
- field.field.media.document.field_media_file
- field.field.media.document.field_metatags
- field.field.media.document.field_tags
- image.style.media_library
- media.type.document
Expand All @@ -29,6 +30,7 @@ content:
hidden:
created: true
field_media_file: true
field_metatags: true
field_tags: true
name: true
search_api_excerpt: true
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
uuid: 04b2e049-3bb3-4f6d-bd72-0d6b20e50142
langcode: en
status: true
dependencies:
config:
- field.storage.media.field_metatags
- media.type.document
module:
- metatag
id: media.document.field_metatags
field_name: field_metatags
entity_type: media
bundle: document
label: Metatags
description: ''
required: false
translatable: false
default_value: { }
default_value_callback: ''
settings: { }
field_type: metatag
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
uuid: c6f18928-63cc-4dc6-910b-5e240d724fb2
langcode: en
status: true
dependencies:
module:
- media
- metatag
id: media.field_metatags
field_name: field_metatags
entity_type: media
type: metatag
settings: { }
module: metatag
locked: false
cardinality: 1
translatable: true
indexes: { }
persist_with_no_fields: false
custom_storage: false
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
entity_type_groups:
media:
document:
ai_engine: ai_engine
node:
event:
basic: basic
page:
basic: basic
ai_engine: ai_engine
post:
basic: basic
open_graph: open_graph
separator: ','
tag_trim_method: beforeValue
use_maxlength: true
tag_trim_maxlength:
metatag_maxlength_abstract: null
metatag_maxlength_description: null
metatag_maxlength_title: null
metatag_maxlength_og_description: null
metatag_maxlength_description: null
metatag_maxlength_abstract: null
metatag_maxlength_og_site_name: null
metatag_maxlength_og_title: null
metatag_maxlength_og_description: null
tag_scroll_max_height: ''
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
uuid: c4c1fe69-3658-4316-a349-fbb29416756e
langcode: en
status: true
dependencies:
module:
- ai_engine_metadata
id: disable_ai
label: 'Disable AI'
type: node
plugin: ai_engine_disable_ai
configuration: { }
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
uuid: e9915862-ac04-4981-89a0-63858245e47a
langcode: en
status: true
dependencies:
module:
- ai_engine_metadata
id: enable_ai
label: 'Enable AI'
type: node
plugin: ai_engine_enable_ai
configuration: { }
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ display:
action_title: Action
include_exclude: include
selected_actions:
- disable_ai
- enable_ai
- node_delete_action
- pathauto_update_alias_node
- publish_moderated_content
Expand Down