Fastbuilds logic and documentation update

Created on 6 February 2024, 11 months ago
Updated 22 February 2024, 10 months ago

Problem/Motivation

The fastbuilds feature does not work as expected without preview settings configured.

Steps to reproduce

Install the module in the source Drupal site.
Enable fastbuilds in your relevant Gatsby project.
Make some changes to content.
There are no "gatsby_log_entity" entities created, see: /admin/config/services/gatsby/fastbuilds/logs
There are no entities returned for a sync request, see route: /gatsby-fastbuilds/sync/{last_fetch}

Proposed resolution

Update the documentation to properly outline what is required for the fastbuilds to return results.

- Enter a value for the "Build Webhook URL(s)"
- Configure the "Entity types to send to Gatsby Preview and Build Server" bundle settings
- Enable the "Delete Old Gatsby Fastbuilds Log Entities" setting and configure an appropriate time window that meets your build schedule requirements

Update code to remove the "preview" condition from the GatsbyEntityLogger->getSync() method

Remaining tasks

User interface changes

API changes

Data model changes

πŸ’¬ Support request
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States ben.hamelin Adirondack Mountains, NY

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @ben.hamelin
  • Open on Drupal.org β†’
    Core: 9.5.5 + Environment: PHP 7.4 & MySQL 5.7
    last update 11 months ago
    Waiting for branch to pass
  • πŸ‡¨πŸ‡¦Canada othermachines Edmonton, Alberta

    I think I just ran into this while testing on a staging site where we didn't have Build Webhook URL(s) (or any of the URL fields) configured because ordinarily we don't want to trigger builds unless we're actually testing this functionality. We also disabled the preview functionality after moving off of Gatsby Cloud.

    While testing incremental builds locally against staging, it took me a bit to figure out why our content updates weren't generating any Fastbuild entries!

  • Status changed to Needs review 10 months ago
  • πŸ‡ΊπŸ‡ΈUnited States ben.hamelin Adirondack Mountains, NY
Production build 0.71.5 2024