wp-packages/internal/packages
Scott Walkinshaw 5ae2e34fe4
Set content_changed_at on package deactivation and reactivation (#93)
* Set content_changed_at on package deactivation and reactivation

DeactivatePackage and ReactivatePackage only set is_active and updated_at,
so closures and re-openings detected by check-status never appeared in the
metadata changes feed. Setting content_changed_at ensures Composer clients
are notified of these changes and prepares for the Phase 3 DB-driven sync
which uses this column to determine what needs uploading/deleting on R2.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Add test assertions for content_changed_at on status change

Verify that DeactivatePackage and ReactivatePackage set the
content_changed_at column, ensuring closures and re-openings
are reflected in the metadata changes feed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Add integration-style test for status change content_changed_at flow

Simulates the check-status lifecycle: active → deactivated (closure) →
reactivated (re-opening), verifying content_changed_at is set on both
transitions and advances monotonically.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: Ben Word <ben@benword.com>
2026-04-04 10:41:03 -05:00
..
api_mapper.go Add /untagged page and detail warnings for non-compliant plugins (#58) 2026-03-24 15:55:00 -05:00
package.go Set content_changed_at on package deactivation and reactivation (#93) 2026-04-04 10:41:03 -05:00
package_test.go Set content_changed_at on package deactivation and reactivation (#93) 2026-04-04 10:41:03 -05:00
seeds.go Initial commit 2026-03-14 13:36:07 -05:00
site_meta.go Fix SVN discovery never detecting package changes (#6) 2026-03-15 12:06:10 -05:00
sync.go Initial commit 2026-03-14 13:36:07 -05:00