Skip to content

Commit

Permalink
SUP: Refactor entity types and data structure importing (#150)
Browse files Browse the repository at this point in the history
  • Loading branch information
pookmish authored Dec 2, 2024
1 parent 97ac2c1 commit 8f2346e
Show file tree
Hide file tree
Showing 124 changed files with 2,321 additions and 1,453 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ jobs:
env:
CC_TEST_REPORTER_ID: ${{secrets.CC_TEST_REPORTER_ID}}
run: |
git config --system --add safe.directory '*'
composer install -n
blt tests:phpunit:coverage --no-interaction
git config --system --add safe.directory '*' &&
composer install -n &&
blt tests:phpunit:coverage
- name: Save Test Results
uses: actions/upload-artifact@v4
if: failure()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ module:
theme: { }
complete_list:
- core.entity_view_mode.paragraph.sup_form_preview
- 'core.entity_form_display.press.*'
- 'core.entity_view_display.press.*'
- 'field.field.press.*'
- 'field.storage.press.*'
- 'supress_helper.press_type.*'
- 'config_pages.type.sup_*'
- 'node.type.sup_*'
- 'paragraphs.paragraphs_type.sup_*'
Expand Down Expand Up @@ -49,6 +54,7 @@ complete_list:
- 'field.field.media.sup_*'
- 'field.storage.media.sup_*'
- 'media.type.sup_*'
- 'metatag.metatag_defaults.node__sup_*'
partial_list:
- '*su_*'
- '*stanford_*'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
uuid: f203070b-711c-4b0f-8953-b2f5f960813d
langcode: en
status: true
dependencies:
module:
- supress_helper
id: press.search_indexing
label: 'Search Indexing'
description: ''
targetEntityType: press
cache: true
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,13 @@ entity_config:
enabled: true
sup_search_form:
enabled: true
press:
award:
enabled: true
query_load_enabled: true
prices:
enabled: true
query_load_enabled: true
redirect:
redirect:
enabled: true
Expand All @@ -291,10 +298,6 @@ entity_config:
su_policy_log:
su_policy_log:
enabled: true
sup_award:
sup_award:
enabled: true
query_load_enabled: true
taxonomy_term:
basic_page_types:
enabled: true
Expand Down Expand Up @@ -807,6 +810,8 @@ field_config:
su_publication_topics:
enabled: true
sup_book:
body:
enabled: true
sup_book_author_info:
enabled: true
sup_book_authors:
Expand All @@ -819,26 +824,16 @@ field_config:
enabled: true
sup_book_catalog_season_yyyy:
enabled: true
sup_book_cloth_sale_percent:
enabled: true
sup_book_cloth_sale_price:
enabled: true
sup_book_copublisher_name:
enabled: true
sup_book_description:
enabled: true
sup_book_digital_comp_link:
enabled: true
sup_book_e_retailers:
enabled: true
sup_book_excerpts:
enabled: true
sup_book_image:
enabled: true
sup_book_imprint:
enabled: true
sup_book_intl_cart:
enabled: true
sup_book_isbn_13_alt:
enabled: true
sup_book_isbn_13_cloth:
Expand All @@ -853,15 +848,7 @@ field_config:
enabled: true
sup_book_pages:
enabled: true
sup_book_paper_sale_percent:
enabled: true
sup_book_paper_sale_price:
enabled: true
sup_book_preorder:
enabled: true
sup_book_price_cloth:
enabled: true
sup_book_price_paper:
sup_book_price_data:
enabled: true
sup_book_print_desk_copies:
enabled: true
Expand Down Expand Up @@ -1058,18 +1045,8 @@ field_config:
enabled: true
sup_search_subject:
enabled: true
su_policy_log:
su_policy_log:
su_policy_date:
enabled: true
su_policy_notes:
enabled: true
su_policy_public:
enabled: true
su_policy_title:
enabled: true
sup_award:
sup_award:
press:
award:
sup_association:
enabled: true
sup_description:
Expand All @@ -1078,10 +1055,37 @@ field_config:
enabled: true
sup_rank:
enabled: true
sup_work_id:
enabled: true
sup_year:
enabled: true
prices:
sup_cloth_discount:
enabled: true
sup_cloth_price:
enabled: true
sup_cloth_sale:
enabled: true
sup_coming_soon:
enabled: true
sup_intl_cart:
enabled: true
sup_paper_discount:
enabled: true
sup_paper_price:
enabled: true
sup_paper_sale:
enabled: true
sup_preorder:
enabled: true
su_policy_log:
su_policy_log:
su_policy_date:
enabled: true
su_policy_notes:
enabled: true
su_policy_public:
enabled: true
su_policy_title:
enabled: true
taxonomy_term:
sup_series:
sup_series_page:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ _core:
id: front
label: 'Front page'
tags:
canonical_url: '[site:url]'
canonical_url: 'https://www.sup.org/'
description: '[node:su_page_description|node:summary]'
og_image: '[node:su_page_image:entity:field_media_image:card_1192x596|node:su_page_banner:entity:su_banner_image:0:entity:field_media_image:card_1192x596]'
og_image_alt: '[node:su_page_image:entity:field_media_image:alt|node:su_page_banner:entity:su_banner_image:0:entity:field_media_image:alt]'
og_image_url: '[node:su_page_image:entity:field_media_image:card_1192x596|node:su_page_banner:entity:su_banner_image:0:entity:field_media_image:card_1192x596]'
og_image: '[node:su_page_image:entity:field_media_image:card_1192x596|node:su_page_banner:entity:sup_carousel_slides:0:entity:sup_slide_image:entity:field_media_image:card_1192x596|node:su_page_banner:entity:su_banner_image:0:entity:field_media_image:card_1192x596]'
og_image_alt: '[node:su_page_image:entity:field_media_image:alt|node:su_page_banner:entity:sup_carousel_slides:0:entity:sup_slide_image:entity:field_media_image:alt|node:su_page_banner:entity:su_banner_image:0:entity:field_media_image:alt]'
og_image_url: '[node:su_page_image:entity:field_media_image:card_1192x596|node:su_page_banner:entity:sup_carousel_slides:0:entity:sup_slide_image:entity:field_media_image:card_1192x596|node:su_page_banner:entity:su_banner_image:0:entity:field_media_image:card_1192x596]'
og_site_name: '[site:name]'
og_title: '[site:name]'
og_type: website
og_url: '[site:url]'
shortlink: '[site:url]'
og_url: 'https://www.sup.org/'
shortlink: 'https://www.sup.org/'
title: '[site:name]'
twitter_cards_description: '[node:su_page_description|node:summary]'
twitter_cards_image: '[node:su_page_image:entity:field_media_image:card_1192x596|node:su_page_banner:entity:su_banner_image:0:entity:field_media_image:card_1192x596]'
twitter_cards_image_alt: '[node:su_page_image:entity:field_media_image:alt|node:su_page_banner:entity:su_banner_image:0:entity:field_media_image:alt]'
twitter_cards_image: '[node:su_page_image:entity:field_media_image:card_1192x596|node:su_page_banner:entity:sup_carousel_slides:0:entity:sup_slide_image:entity:field_media_image:card_1192x596|node:su_page_banner:entity:su_banner_image:0:entity:field_media_image:card_1192x596]'
twitter_cards_image_alt: '[node:su_page_image:entity:field_media_image:alt|node:su_page_banner:entity:sup_carousel_slides:0:entity:sup_slide_image:entity:field_media_image:alt|node:su_page_banner:entity:su_banner_image:0:entity:field_media_image:alt]'
twitter_cards_title: '[site:name]'
twitter_cards_type: summary_large_image
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@ _core:
id: node
label: Content
tags:
canonical_url: '[node:url]'
canonical_url: 'https://www.sup.org[node:url:relative]'
description: '[node:su_page_description|node:summary]'
og_image: '[node:su_page_image:entity:field_media_image:card_1192x596|node:su_page_banner:entity:su_banner_image:0:entity:field_media_image:card_1192x596]'
og_image_alt: '[node:su_page_image:entity:field_media_image:alt|node:su_page_banner:entity:su_banner_image:0:entity:field_media_image:alt]'
og_image_url: '[node:su_page_image:entity:field_media_image:card_1192x596|node:su_page_banner:entity:su_banner_image:0:entity:field_media_image:card_1192x596]'
og_image: '[node:su_page_image:entity:field_media_image:card_1192x596|node:su_page_banner:entity:sup_carousel_slides:0:entity:sup_slide_image:entity:field_media_image:card_1192x596|node:su_page_banner:entity:su_banner_image:0:entity:field_media_image:card_1192x596]'
og_image_alt: '[node:su_page_image:entity:field_media_image:alt|node:su_page_banner:entity:sup_carousel_slides:0:entity:sup_slide_image:entity:field_media_image:alt|node:su_page_banner:entity:su_banner_image:0:entity:field_media_image:alt]'
og_image_url: '[node:su_page_image:entity:field_media_image:card_1192x596|node:su_page_banner:entity:sup_carousel_slides:0:entity:sup_slide_image:entity:field_media_image:card_1192x596|node:su_page_banner:entity:su_banner_image:0:entity:field_media_image:card_1192x596]'
og_site_name: '[site:name]'
og_title: '[node:title]'
og_type: website
og_url: '[current-page:url:absolute]'
og_url: 'https://www.sup.org[node:url:relative]'
title: '[node:title] | [site:name]'
twitter_cards_description: '[node:su_page_description|node:summary]'
twitter_cards_image: '[node:su_page_image:entity:field_media_image:card_1192x596|node:su_page_banner:entity:su_banner_image:0:entity:field_media_image:card_1192x596]'
twitter_cards_image_alt: '[node:su_page_image:entity:field_media_image:alt|node:su_page_banner:entity:su_banner_image:0:entity:field_media_image:alt]'
twitter_cards_image: '[node:su_page_image:entity:field_media_image:card_1192x596|node:su_page_banner:entity:sup_carousel_slides:0:entity:sup_slide_image:entity:field_media_image:card_1192x596|node:su_page_banner:entity:su_banner_image:0:entity:field_media_image:card_1192x596]'
twitter_cards_image_alt: '[node:su_page_image:entity:field_media_image:alt|node:su_page_banner:entity:sup_carousel_slides:0:entity:sup_slide_image:entity:field_media_image:alt|node:su_page_banner:entity:su_banner_image:0:entity:field_media_image:alt]'
twitter_cards_title: '[node:title]'
twitter_cards_type: summary_large_image
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,12 @@ adding:
config_item: status
prefix: ''
suffix: ''
b548e264-2fd8-4ab4-820a-12191f263dca:
field: sup_filemaker_user
delta: 0
column: value
config_name: migrate_plus.migration.sup_book_prices
config_item: status
prefix: ''
suffix: ''
removing: { }
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ adding:
- field.storage.node.sup_book_subtitle
- field.storage.node.sup_book_type
module:
- search_api
- search_api_exclude_entity
field_settings:
book_authors:
Expand Down Expand Up @@ -152,7 +153,7 @@ adding:
- field.storage.node.sup_book_isbn_13_paper
photo:
configuration:
value: '[node:su_page_image:entity:field_media_image:large|node:su_page_banner:entity:su_banner_image:entity:field_media_image:large|node:su_person_photo:entity:field_media_image:large|node:su_news_featured_media:entity:field_media_image:large|node:su_news_banner:entity:field_media_image:large|node:su_event_ext_image|node:sup_book_image:entity:field_media_image:large]'
value: '[node:su_page_image:entity:field_media_image|node:su_page_banner:entity:su_banner_image:entity:field_media_image|node:su_person_photo:entity:field_media_image|node:su_news_featured_media:entity:field_media_image|node:su_news_banner:entity:field_media_image|node:su_event_ext_image|node:sup_book_image:entity:field_media_image]'
summary:
configuration:
value: '[node:su_page_description|node:sup_book_subtitle|node:summary]'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
adding:
dependencies:
module:
- field_permissions
permissions:
- 'create su_metatags'
- 'edit own su_metatags'
- 'edit su_metatags'
- 'view own su_metatags'
- 'view su_metatags'
removing: { }
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ adding:
module:
- supress_helper
permissions:
- 'administer sup_award'
- 'configure all stanford_page node layout overrides'
- 'configure editable stanford_page node layout overrides'
- 'create sup_book content'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ adding:
module:
- supress_helper
permissions:
- 'administer sup_award'
- 'configure all stanford_page node layout overrides'
- 'configure editable stanford_page node layout overrides'
- 'create sup_book content'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ adding:
module:
- supress_helper
permissions:
- 'administer sup_award'
- 'create sup_book content'
- 'create sup_book_ancillary content'
- 'create sup_protected_file media'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ adding:
module:
- supress_helper
permissions:
- 'administer sup_award'
- 'create sup_book content'
- 'create sup_book_ancillary content'
- 'create sup_protected_file media'
Expand Down
Loading

0 comments on commit 8f2346e

Please sign in to comment.