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

VACMS-15055: Accelerated Publishing Install and enable computed_breadcrumbs. #15193

Merged
merged 15 commits into from
Sep 27, 2023
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
6 changes: 6 additions & 0 deletions READMES/jsonapi.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,9 @@ See `/admin/config/services/jsonapi/resource_types` for a full list of informati
If you expect to see a field's data included in the response and it is not there, check the overwrites, if any, for that resource and adjust appropriately.

See the config at `admin/config/services/jsonapi/resource_types/node--news_story/edit?destination=/admin/config/services/jsonapi/resource_types` for an example.

**Breadcrumbs and JSON:API**

In order for breadcrumb data to appear in JSONAPI the computed_breadcrumbs module has been installed. The computed_breadcrumbs module adds a hidden field to content types that stores breadcrumb data via the request. This results in breadcrumb data being included with nodes in the JSON feed.

Because the primary vehicle for populating breadcrumbs, the menu_breadcrumbs module, is not configured for all content types the easy_breadcrumb module has been added. The easy_breadcrumb module fills in the gap left by menu_breadcrumbs by populating breadcrumbs based on path for content types without breadcrumb data.
2 changes: 2 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
"drupal/change_labels": "dev-3326097-remove-dependency-on-drupal-autoservices#7f92f90b456ac2f394dd434257e39e1d9b3086eb",
"drupal/coder": "^8.3",
"drupal/components": "^3.0@beta",
"drupal/computed_breadcrumbs": "^1.1",
"drupal/config_ignore": "^2.1",
"drupal/config_override_warn": "^1.0",
"drupal/config_split": "^1.9",
Expand All @@ -55,6 +56,7 @@
"drupal/diff": "^1.0",
"drupal/dropzonejs": "^2.0",
"drupal/dynamic_entity_reference": "^3.0",
"drupal/easy_breadcrumb": "^2.0",
"drupal/embed": "^1.3",
"drupal/entity_block": "^1.0@beta",
"drupal/entity_browser": "^2.4",
Expand Down
181 changes: 158 additions & 23 deletions composer.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "a743e7785edf14906700f0eb4f254c91",
"content-hash": "c5c4fbf1da8f863187d7e75de4f46caa",
"packages": [
{
"name": "alchemy/zippy",
Expand Down Expand Up @@ -3277,6 +3277,54 @@
"source": "https://git.drupalcode.org/project/components"
}
},
{
"name": "drupal/computed_breadcrumbs",
"version": "1.1.1",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/computed_breadcrumbs.git",
"reference": "1.1.1"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/computed_breadcrumbs-1.1.1.zip",
"reference": "1.1.1",
"shasum": "876dbcedaa3d71b7e6f6d48089019709cc0f70ff"
},
"require": {
"drupal/core": "^9.0 || ^10"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "1.1.1",
"datestamp": "1689016771",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0-or-later"
],
"authors": [
{
"name": "blazey",
"homepage": "https://www.drupal.org/user/353861"
},
{
"name": "Eli-T",
"homepage": "https://www.drupal.org/user/516878"
}
],
"description": "Provides breadcrumbs as computed fields.",
"homepage": "https://www.drupal.org/project/computed_breadcrumbs",
"support": {
"source": "https://git.drupalcode.org/project/computed_breadcrumbs"
}
},
{
"name": "drupal/config_filter",
"version": "1.10.0",
Expand Down Expand Up @@ -3738,17 +3786,17 @@
},
{
"name": "drupal/content_model_documentation",
"version": "1.0.15",
"version": "1.0.14",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/content_model_documentation.git",
"reference": "1.0.15"
"reference": "1.0.14"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/content_model_documentation-1.0.15.zip",
"reference": "1.0.15",
"shasum": "839b4c7d507425fdc28a96e93b3b11cf08f7f938"
"url": "https://ftp.drupal.org/files/projects/content_model_documentation-1.0.14.zip",
"reference": "1.0.14",
"shasum": "f01554238781ecf39f3c508ee7604f2ab69e302e"
},
"require": {
"drupal/config_views": "~2.1",
Expand All @@ -3757,8 +3805,8 @@
"type": "drupal-module",
"extra": {
"drupal": {
"version": "1.0.15",
"datestamp": "1695661432",
"version": "1.0.14",
"datestamp": "1695308243",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
Expand Down Expand Up @@ -4964,6 +5012,85 @@
"irc": "irc://irc.freenode.org/drupal-contribute"
}
},
{
"name": "drupal/easy_breadcrumb",
"version": "2.0.5",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/easy_breadcrumb.git",
"reference": "2.0.5"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/easy_breadcrumb-2.0.5.zip",
"reference": "2.0.5",
"shasum": "e73a7c3568fccaf85b3df0ddd98d713f4d2f5415"
},
"require": {
"drupal/core": "^9.2 || ^10"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "2.0.5",
"datestamp": "1673559799",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0-or-later"
],
"authors": [
{
"name": "Neslee Canil Pinto",
"homepage": "https://www.drupal.org/u/neslee-canil-pinto",
"role": "Maintainer"
},
{
"name": "Greg Boggs",
"homepage": "https://www.drupal.org/u/greg-boggs",
"role": "Maintainer"
},
{
"name": "hmartens",
"homepage": "https://www.drupal.org/user/622826"
},
{
"name": "loopduplicate",
"homepage": "https://www.drupal.org/user/717290"
},
{
"name": "Neslee Canil Pinto",
"homepage": "https://www.drupal.org/user/3580850"
},
{
"name": "NickDickinsonWilde",
"homepage": "https://www.drupal.org/user/3094661"
},
{
"name": "renatog",
"homepage": "https://www.drupal.org/user/3326031"
},
{
"name": "sonemonu",
"homepage": "https://www.drupal.org/user/1667988"
},
{
"name": "tatarbj",
"homepage": "https://www.drupal.org/user/649590"
}
],
"description": "Adds configuration to the system breadcrumbs.",
"homepage": "https://www.drupal.org/project/easy_breadcrumb",
"support": {
"source": "https://git.drupalcode.org/project/easy_breadcrumb",
"issues": "https://www.drupal.org/project/issues/easy_breadcrumb"
}
},
{
"name": "drupal/embed",
"version": "1.6.0",
Expand Down Expand Up @@ -6859,6 +6986,14 @@
{
"name": "colorfield",
"homepage": "https://www.drupal.org/user/2295486"
},
{
"name": "dan2k3k4",
"homepage": "https://www.drupal.org/user/2437398"
},
{
"name": "jmolivas",
"homepage": "https://www.drupal.org/user/678770"
}
],
"description": "GraphQL Menu helpers.",
Expand Down Expand Up @@ -7547,10 +7682,6 @@
"name": "bnjmnm",
"homepage": "https://www.drupal.org/user/2369194"
},
{
"name": "ivnish",
"homepage": "https://www.drupal.org/user/3547706"
},
{
"name": "jrockowitz",
"homepage": "https://www.drupal.org/user/371407"
Expand Down Expand Up @@ -8926,10 +9057,6 @@
"name": "Mykhailo Gurei",
"homepage": "https://www.drupal.org/u/ozin",
"role": "Maintainer"
},
{
"name": "voleger",
"homepage": "https://www.drupal.org/user/3260314"
}
],
"description": "Provide an additional custom fields which can be used on Menu link",
Expand Down Expand Up @@ -9831,6 +9958,10 @@
"name": "shadcn",
"homepage": "https://shadcn.com"
},
{
"name": "roaguicr",
"homepage": "https://www.drupal.org/user/2334450"
},
{
"name": "rrrob",
"homepage": "https://www.drupal.org/user/273533"
Expand Down Expand Up @@ -13140,6 +13271,10 @@
"name": "anand.toshniwal93",
"homepage": "https://www.drupal.org/user/3345088"
},
{
"name": "joelpittet",
"homepage": "https://www.drupal.org/user/160302"
},
{
"name": "MChittenden",
"homepage": "https://www.drupal.org/user/2288348"
Expand Down Expand Up @@ -19039,16 +19174,16 @@
},
{
"name": "psr/http-client",
"version": "1.0.3",
"version": "1.0.2",
"source": {
"type": "git",
"url": "https://github.com/php-fig/http-client.git",
"reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90"
"reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90",
"reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90",
"url": "https://api.github.com/repos/php-fig/http-client/zipball/0955afe48220520692d2d09f7ab7e0f93ffd6a31",
"reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31",
"shasum": ""
},
"require": {
Expand Down Expand Up @@ -19085,9 +19220,9 @@
"psr-18"
],
"support": {
"source": "https://github.com/php-fig/http-client"
"source": "https://github.com/php-fig/http-client/tree/1.0.2"
},
"time": "2023-09-23T14:17:50+00:00"
"time": "2023-04-10T20:12:12+00:00"
},
{
"name": "psr/http-factory",
Expand Down Expand Up @@ -27687,5 +27822,5 @@
"platform-overrides": {
"php": "8.1"
},
"plugin-api-version": "2.3.0"
"plugin-api-version": "2.6.0"
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ content:
weight: 0
region: content
hidden:
breadcrumbs: true
content_moderation_control: true
field_administration: true
field_last_saved_by_an_editor: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ content:
weight: 0
region: content
hidden:
breadcrumbs: true
content_moderation_control: true
field_administration: true
field_last_saved_by_an_editor: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ content:
weight: 6
region: content
hidden:
breadcrumbs: true
content_moderation_control: true
field_administration: true
field_clp_events_panel: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ content:
weight: 4
region: content
hidden:
breadcrumbs: true
content_moderation_control: true
field_administration: true
field_last_saved_by_an_editor: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,7 @@ content:
weight: 4
region: content
hidden:
breadcrumbs: true
content_moderation_control: true
field_administration: true
langcode: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ content:
weight: 2
region: content
hidden:
breadcrumbs: true
content_moderation_control: true
field_administration: true
field_table_of_contents_boolean: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ content:
weight: 26
region: content
hidden:
breadcrumbs: true
content_moderation_control: true
field_administration: true
field_last_saved_by_an_editor: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ content:
weight: 7
region: content
hidden:
breadcrumbs: true
content_moderation_control: true
field_administration: true
field_last_saved_by_an_editor: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,7 @@ content:
weight: 4
region: content
hidden:
breadcrumbs: true
content_moderation_control: true
field_last_saved_by_an_editor: true
langcode: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ content:
weight: 11
region: content
hidden:
breadcrumbs: true
content_moderation_control: true
field_administration: true
field_last_saved_by_an_editor: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ content:
weight: 10
region: content
hidden:
breadcrumbs: true
content_moderation_control: true
field_administration: true
field_facility_classification: true
Expand Down
Loading