Install
Works with Drupal: ^11.3Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
Delete handling is per mapping
Each mapping chooses how it recognises a remote deletion: absence (the record stopped being returned — the previous behaviour) or remote flag (the record carries a value saying it is deleted, and the site acknowledges that back). A project can supply its own strategy as a plugin.
A delete run now refuses to act on evidence it cannot trust. It stops instead of deleting when the remote returns no records at all, when fewer rows arrive than the service counted, when the key field mapping changed since the last good run, or when the key enumeration was truncated.
Test mode
Two site settings, for a site pointing at a service it must not write to:
push_mode—send_all(default),log_deletes,log_alllocal_delete_mode—apply(default),log_only
A suppressed write is logged and its queue item discarded; nothing is held back to be sent later. Both fall back to sending on an absent or unrecognised value, so an existing site is unaffected. The status report warns while either is active.
Fixes
- Releasing a push queue item raised a
TypeErrorthat escaped as a second one. An expired access token crashed the run instead of suspending it — fatally through the standalone endpoint and drush. - Queue rows outlived a deleted mapping and would attach to a new mapping created under the same machine name, pushing through the wrong field mappings.
- The per-mapping push endpoint answered 500 on every call. The per-mapping pull endpoint ignored the mapping in its path.
- The query builder rewrote condition values as well as operators, and HTML-escaped custom query parameters.
- Field value coercion never ran in either direction. A remote boolean
falsewas stored as true.
Upgrading
Run database updates: settings added since alpha23 are written to existing sites, and mappings gain the keys they were missing.
A site calling the per-mapping pull endpoint and relying on it processing every standalone mapping will see it honour the mapping in the path instead.