Skip to content

Releases: Defense-Distributed/dd-inventory

v1.3.1

Choose a tag to compare

@bloblems bloblems released this 21 Aug 19:06

Update-checker authentication + stock display fix

Fixes the 403 update errors

Update checks hit the GitHub API unauthenticated, sharing a 60-requests/hour per-IP limit that hosting providers routinely exhaust — every check then fails with 403 puc-github-http-error even though the repository is public.

Update checks can now authenticate:

  • Set the GitHub Access Token field in WooCommerce → DD Inventory settings, or
  • define DDI_GITHUB_TOKEN in wp-config.php (takes precedence).

Use a fine-grained token with read-only access to public repositories. Authenticated checks get 5,000 requests/hour attributed to the token instead of the server IP.

Note: this release must be installed manually once (the broken checker can't deliver its own fix). Download the source zip and upload via Plugins → Add New → Upload Plugin.

Stock display fix

  • wp-admin no longer displays "manage stock" as on for products the inventory system deliberately set to unmanaged ("always available"). Reads now report the stored value; protection happens at save time.
  • The locked manage-stock checkbox is no longer disabled (a disabled checkbox is omitted from the form POST, which silently turned stock management off on every admin save). It now blocks interaction while still submitting its real value.

v1.2.3

Choose a tag to compare

@bloblems bloblems released this 13 Apr 21:07

Support generic X-Inventory-Sync header for compatibility

v1.2.2

Choose a tag to compare

@bloblems bloblems released this 01 Apr 09:26

Fix: allow REST API to control manage_stock on synced products

v1.3.0

Choose a tag to compare

@bloblems bloblems released this 21 Aug 18:34

Stock-lock hardening

Staff could detach synced products from inventory control by unchecking "manage stock", changing the backorder policy, or hand-setting the stock status in wp-admin (including quick edit and bulk edit). Only the stock quantity itself was protected. All of these are now reverted server-side for synced products when stock locking is enabled, and every revert is recorded in the sync activity log.

  • Enforce manage_stock, backorders, and stock status (unmanaged products) on every admin save, not just the stock number
  • Never force manage_stock on bundle-type parents (bundle, composite, woosb, mix-and-match) — their availability is computed from their children, and forcing it pinned kits out of stock
  • Stop rewriting manage_stock outside wp-admin (storefront reads are now untouched)
  • Add a standalone test suite: php tests/test-product-sync-enforcement.php

REST API behavior is unchanged: the inventory system retains full control of all fields.

v1.2.1

Choose a tag to compare

@bloblems bloblems released this 16 Mar 20:17

Token-based connection flow

v1.1.0

Choose a tag to compare

@bloblems bloblems released this 16 Mar 19:01

Lock price and stock fields for synced products, add edit banner

v1.0.3

Choose a tag to compare

@bloblems bloblems released this 14 Jan 03:15
  • Added webhook secret display with copy button in settings for secure verification

v1.0.2

Choose a tag to compare

@bloblems bloblems released this 14 Jan 02:13

Simplified plugin description

v1.0.1

Choose a tag to compare

@bloblems bloblems released this 14 Jan 02:04

Test release for auto-update functionality