Commit Graph

22 Commits

Author SHA1 Message Date
Jorge Manrubia 2f6a639682 Prepare entropy code for the new auto postpone approach 2025-09-24 16:22:42 +02:00
Jorge Manrubia 6fe28c53e7 Extract common method 2025-09-16 13:06:01 +02:00
Jason Zimdars c56eb9ecd1 Cards in On Deck adopt some entropy behavior as ones in Doing 2025-09-16 13:06:01 +02:00
Jorge Manrubia 5107eebbdb Fix: calculate days here 2025-06-05 16:38:59 +02:00
Jorge Manrubia 2e60fcdf98 Dynamic bubble timers 2025-06-05 16:11:48 +02:00
Jorge Manrubia db86d17880 Refactor to introduce an entropy model
Instead of keeping two tracks of similar logic (auto-reconsider / auto-close).
2025-06-04 14:40:02 +02:00
Jorge Manrubia 653186a8b9 Remove unneeded parenthesis 2025-06-04 12:59:02 +02:00
Jorge Manrubia b35aefd07b Format 2025-06-04 12:58:33 +02:00
Jorge Manrubia b8b8a2fa03 Simpler 2025-06-04 12:58:17 +02:00
Jorge Manrubia dd78ec2db2 Shortcut to grab the default entropy configuration 2025-06-04 12:56:11 +02:00
Jorge Manrubia f721bc2c0a Format 2025-06-04 12:52:11 +02:00
Jorge Manrubia 75ce06733a Review entropy tests to include the new behavior and settings 2025-06-04 12:45:04 +02:00
Jorge Manrubia 23f3c42114 Use the new setting to calculate the auto_reconsider_period 2025-06-04 12:34:17 +02:00
Jorge Manrubia f4bbab1485 More concise 2025-06-04 12:13:36 +02:00
Jorge Manrubia f3e6f1e5e0 This is clearer imo 2025-06-04 12:12:10 +02:00
Jorge Manrubia ae1ad9c509 Extract scope to clarify semantics 2025-06-04 12:04:11 +02:00
Jorge Manrubia 741a6faaf5 Consider the new recording period for stagnated cards 2025-06-04 12:01:09 +02:00
Jorge Manrubia 6501604a5f All the collections are "auto closing now" 2025-06-04 11:44:18 +02:00
Jorge Manrubia 91787a3523 Revamp entropy configuraiton
- Move both settings to its dedicated model entropy configuration
- A collection can have an entropy configuration, or will default to the account if not
2025-06-04 10:41:08 +02:00
Mike Dalessio 3a5ce1ca4c No need to delegate auto_closing? anymore
Related to #568
2025-06-02 12:41:55 -04:00
Jorge Manrubia 08c5abfbdb Extract common method to query when entropy is cleaned
We were always quering auto_close_at
https://37s.fizzy.37signals.com/collections/2/cards/743
2025-06-02 18:04:14 +02:00
Mike Dalessio 28ed744d0c refactor: Extract a Card::Entropy concern
to encompass behavior related to auto-closing and auto-reconsidering.

Note that putting this code in a single place reveals an asymmetry
between the actions:

- Auto-closing period is an optional attribute of a collection
- Auto-reconsidering period is hard-coded to 30 days for all collections
2025-06-01 16:50:12 -04:00