Skip to content

v0.10.0

Choose a tag to compare

@jpizquierdo jpizquierdo released this 26 Jul 07:07
· 53 commits to main since this release
Immutable release. Only release title and notes can be modified.
bc52edb

✨ Features

  • Duplicate beans are caught before they happen. Adding a bean whose name already exists under the same roaster now warns you inline as you type, with a link to the existing entry, and asks for confirmation on submit. Matching ignores case and spacing, so kirinyaga aa and Kirinyaga AA from the same roaster are recognised as the same coffee.
  • Merge duplicate beans. A new Merge duplicate button on a bean's page folds one entry into another: the duplicate's brews and lots move onto the bean you keep, which also adopts any details it was missing, and the duplicate is deleted. Tastings follow their brews, so nothing is lost. Unlike roaster merge, this needs edit rights on both beans rather than an admin — duplicates are usually your own.
  • Brewing-control-chart bands are now tunable per taste, without a code change. Strength (TDS %) and extraction-yield targets move behind env settings; the defaults in domain/constants.py remain the single source of truth.
  • Immersion gets its own strength band. French press / AeroPress (1.40–1.70) split out from pour-over filter, so the filter band stays tight at 1.15–1.50 instead of being stretched to cover both.

🔧 API

  • POST /beans and PATCH /beans/{id} answer 409 when the name is already taken under that roaster, with a message naming the existing bean. Pass ?allow_duplicate=true to insist — a roaster can genuinely re-release a coffee under the same name.
  • New POST /beans/{id}/merge (body {"source_id": N}), allowed to whoever may edit both beans.
  • Bean names are now whitespace-normalised on write, like roaster names.

⚙️ Configuration

New optional env vars, all defaulting to the previous values — nothing to change unless you want to:

STRENGTH_RANGE_FILTER_LOW=1.15
STRENGTH_RANGE_FILTER_HIGH=1.50
STRENGTH_RANGE_IMMERSION_LOW=1.40
STRENGTH_RANGE_IMMERSION_HIGH=1.70
STRENGTH_RANGE_ESPRESSO_LOW=8.0
STRENGTH_RANGE_ESPRESSO_HIGH=12.0
EY_RANGE_LOW=18.0
EY_RANGE_HIGH=22.0

📝 Notes

  • No database migration, and no breaking changes. Duplicate beans you already have stay exactly as they are until you choose to merge them — there is deliberately no unique constraint, since existing data would have to be deleted or renamed to add one.
  • Existing brews are unaffected by the immersion split; the band is applied when a brew's diagnostics are read, not stored.
  • docs/ARCHITECTURE.md gains decision 22, covering why duplicates are flagged rather than forbidden.

Full changelog: v0.9.0...v0.10.0