- Issue created by @othermachines
- πΊπΈUnited States ben.hamelin Adirondack Mountains, NY
@dudrop We were seeing similar behavior for any non-node bundle with the "Build Published" setting enabled. If you look at the logic in the
gatsby_entity_update()
hook: https://git.drupalcode.org/project/gatsby/-/blob/2.0.x/gatsby.module?ref...it's saying "If build published is set and this is not a node, don't do anything" which doesn't make sense to me logically but does explain why your entity changes aren't showing.
I would suggest trying to make your changes with the "build published" setting disabled. You should then see your entities in the logs at /admin/config/services/gatsby/fastbuilds/logs
- π¨π¦Canada othermachines Edmonton, Alberta
@ben.hamelin - Thanks for your help! And sorry about the username switcharoo. :D
What you say makes sense except that media and paragraph entities attached to the node are being updated when the node is saved.
I'm reluctant to turn that setting off because it will trigger more builds than is reasonably necessary.
I don't work with Drupal as much as I'd like to these days but I do believe a menu link is a content entity and so should theoretically be treated the same as a paragraph or media entity.
- πΊπΈUnited States ben.hamelin Adirondack Mountains, NY
@othermachines agreed, it boils down to what Gatsby needs to know in order to keep the site updated. That will vary from site to site, for example we don't build the menu with Gatsby but we do need paragraph and media data.
It's also worth reviewing this issue: https://www.drupal.org/project/gatsby/issues/3419600 π¬ Fastbuilds logic and documentation update Needs review
I've proposed documentation updates to better align with actual module behavior. The "Build published" is another example of misleading or inaccurate docs. It's not checking for published status, but rather restricting to "NodeInterface" when that is checked. It doesn't make sense, and in general the docs seem more targeted at users who are leveraging Gatsby Cloud. For more custom solutions (we build and host our Gatsby site in a custom cloud environment) the docs and logic don't align.
I suggest unchecking the "Build Published" setting and then saving your menu item, to see if it shows up in the fatsbuild logs. If it does, it should get picked up by your next build.
- πΊπΈUnited States ben.hamelin Adirondack Mountains, NY
@codekarate or other maintainers. What's the status of this module?