Skip to content

v0.5.0 — Forms undo fixes + include_inactive/include_trashed

Choose a tag to compare

@oxyc oxyc released this 29 May 11:57
· 11 commits to master since this release
da387f7

Three Gravity Forms bug fixes surfaced by a real gds-assistant v0.4.0 session.

Fixes

  • Undo silently lied. RestoreSnapshot::restoreForm / restoreFeed only checked is_wp_error() on the GFAPI return, but GFAPI::update_form / update_feed return literal false on validation/save failure. A failed restore flowed through to gds-assistant as success and the chat displayed "Undone" while the form stayed unchanged. Both now treat false as an explicit failure with a meaningful error.
  • Audit labels were ambiguous after multiple updates. Two consecutive gds/forms-update calls on the same form both produced the snapshot label Revert form 'X' to its previous state — the user had no way to tell which undo button reverted which change. Labels now include a short delta summary: (fields: 10 → 5) when the field count changed, (changed: title, confirmations) when only top-level metadata moved, falling back to a UTC timestamp for shape-identical edits.
  • gds/forms-list silently hid disabled / trashed forms. Two new optional input flags — include_inactive and include_trashed — let callers widen the listing when the user is hunting for a form they remember was there. Defaults preserved for backward compat. Description updated to point the model at them.

Companion to gds-assistant v0.4.1 which nudges the model to trust read results and consult the new filter flags before declaring an item gone.

Full changelog: v0.4.0...v0.5.0