Closed (fixed)
Project:
Drupal core
Version:
11.0.x-dev
Component:
book.module
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
21 Jul 2023 at 11:38 UTC
Updated:
30 Jun 2025 at 04:30 UTC
Jump to comment: Most recent
Comments
Comment #2
kristiaanvandeneyndeOne more thing to tackle when moving Book to contrib is to rename its memory cache service name. It should be
cache.book_memory, notbook.memory_cacheas the latter leads to the ambiguous bin name "memory_cache", which could mean anything.See #3402850-12: Fix MemoryCache discovery and DX and ListCacheBinsPass, CacheFactory after that issue lands to understand how this bin name can mess things up.
Comment #3
quietone commentedComment #4
quietone commentedComment #5
catchComment #6
nicxvan commentedI'm happy to create children issues if they are required, but I found some additional references to Book and since the remove Book from core has already been marked as fixed I thought I'd post them here for consideration.
I was investigating: core/modules/migrate_drupal_ui/tests/src/Functional/d6/Upgrade6Test.php
Because it seems to be going very slow in tests and found the following.
There are a lot of references to book in migration tests, but I assume most of them should remain since we can still migrate from Drupal 6 and 7 feel free to correct me if I misunderstood.
That lead to a quick search and I also found the following that I think can be cleaned up.
cspell is ignoring two non existent paths:
"modules/book/tests/fixtures/drupal6.php",
"modules/book/tests/fixtures/drupal7.php",
EntityFormBuilderInterface uses book as an example:
_entity_form: node.book_outline
BlockCacheTest.php
Comment referencing book.
Umami has a bunch of classy templates for book.
Let me know if any of these need follow ups, or if they have already been addressed elsewhere and should remain as is. I did try searching for other issues.
Comment #7
quietone commented@nicxvan, thanks for the searching! It really helps to make sure that we remove everything.
Yes, make issues for the following, all as children of this isssue.
1. An issue to update cspell.json for all extension removals.
2. An issue to change all comments to not use 'book'.
3. An issue to remove the usages of book from Umami. And an issue in the Book module to get those changes.
And, the speed of those migrate tests is fixed in #3442259: Reduce time of Migrate Upgrade tests by not outputting the logs by default.
Comment #8
nicxvan commentedOk I created the children issues, I was not super clear on what you meant by `And an issue in the Book module to get those changes.`
I created a stub on the book module and related it here, let me know if you meant something else.
Also thanks for pointing out that testing issue!
Comment #9
nicxvan commentedThere are a couple more items I am unsure of:
BlockSettings.php
Block.php
Everything else I saw was part of Migrate, MigrateTests or block configuration for drupal 6 or 7.
Or it already has a related issue.
Comment #10
smustgrave commentedComposer ticket is in review #3421791: Ensure that Book does not get special core treatment
Down to 30 issues to triage in the queue, hopefully finish this weekend
Moved core documentation page https://www.drupal.org/docs/8/core/modules/book to Contributed module documentation
Comment #11
smustgrave commentedBelieve we just waiting on #3421791: Ensure that Book does not get special core treatment now
Comment #12
quietone commentedThere are also questions asked in #9 that need to be answered.
For #9, BlockSettings.php is a migrate process plugin and Block.php is a migrate source plugin. it was decided to keep the migrations related to modules removed from core, In those classes there is also code for aggregator, which was removed in Drupal 10. So, there is nothing to do there.
I checked the core and book issue queue and confirmed that the issues have been moved. I checked that the docs have been moved and the URLs are correct. The docs are also in the correct menu.
Still to do
Comment #13
quietone commentedConfirming that Book is not in the menu of Core modules. https://www.drupal.org/docs/develop/core-modules-and-themes/core-modules
Comment #14
nicxvan commentedThanks, I missed that those were part of migrate. I think that makes sense since the other migrate pieces are staying in core.
Comment #15
quietone commentedNP.
I searched the core change records and found some that needed to move various extensions that have been moved to contrib. So, I think that part is done.
Postponing on #3421791: Ensure that Book does not get special core treatment
Comment #16
andypostComposer facade fixed
Comment #17
quietone commentedNice. And using
composer require drupal/bookdoes install book module on 11.Comment #18
kristiaanvandeneyndeCreated #3445636: Rename book.memory_cache to cache.book_memory as per my comment in #2.
Comment #20
quietone commented