- Description missed for taxonomy terms in the update as it's not a dependent field.
- Also, a typo in the README `drush footnotes:upgrade-3-to-4 term` should be `drush footnotes:upgrade-3-to-4 taxonomy_term`.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | 2024-02-15_12-08.png | 11.28 KB | scott_euser |
Issue fork footnotes-3419898
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
cbstuart commentedComment #3
scott_euser commentedThanks for the patch!
Could you create as a merge request please?
Approach is okay, but could be improved by instead getting the config for the base fields as the root problem here is that the existing code is checking for added fields only, and should also check for base fields like taxonomy_term has
So similar to
$this->configFactory->listAll('field.storage.' . $entity_type);we should get the base fields and check if they are text, text_long, etc and add as dependants.Thanks!
Comment #4
cbstuart commentedYep, completely agree. I just didn't have time to be fiddling around it. I'll take a look a bit later.
Comment #5
scott_euser commentedAll good, I'm sure your patch will already come in handy for others upgrading who use terms, so it's already a useful contribution as is :)
Comment #6
cbstuart commentedNew shiny patch for you.
Comment #7
scott_euser commentedNice this looks great, much smarter approach than loading from config. Will have to give this a proper test. Thanks very much for your work on this!
Comment #9
scott_euser commentedComment #10
scott_euser commentedHmmm when I run this now, the data-text attribute is empty

Steps:
drush footnotes:upgrade-3-to-4 paragraphComment #11
scott_euser commentedOkay got it, that works now. Turns out that
<fn value text></fn>is also an option. Where text is on an attribute instead of within the tag. Added support for that... bit of scope creep here sorry!Comment #13
scott_euser commentedThanks!