Files
fizzy/app/models/card
Jankees van Woezik 78fc80cf35 API: Allow updates to last_active_at (#2076)
* Allow Card#last_updated_at to be set

This is useful when doing an import from another system. I'm currently
working on a script to import our Github issues into Fizzy.

This is discussed in
https://github.com/basecamp/fizzy/pull/2056#discussion_r2609560246

* Add nil fallback and expand test coverage for last_active_at

Adds a safety fallback to Time.current if created_at is unexpectedly nil
during card creation.

Test coverage to verify:
* last_active_at defaults to created_at when not provided
* last_active_at can be updated via API on existing cards
* import workflow where last_active_at is restored after comments
* publishing doesn't overwrite explicit last_active_at values

---------

Co-authored-by: Jeremy Daer <jeremy@37signals.com>
2025-12-11 19:06:03 -08:00
..
2025-11-27 11:08:45 -05:00
2025-10-15 16:15:56 -05:00
2025-11-14 11:24:55 +01:00
2025-11-26 10:07:41 +00:00
2025-12-01 17:19:59 +00:00
2025-11-17 09:12:41 -05:00
2025-07-02 16:14:25 -05:00
2025-12-03 23:39:37 +01:00