Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Support multiple pantry entries for the same ingredient with different expiry dates

Aperta
#298 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Tranquilla
Stack tecnologico
rust
Ambito
backend, cli, frontend

Direzione di ricerca

Non vengono indicati file o test. Inizia tracciando il parsing delle voci della pantry e l'aggregazione delle quantità nei punti di ingresso CLI e WebUI, usando l'esempio TOML come riproduttore. Il lavoro è completato quando entrambe le interfacce elencano le voci dello stesso ingrediente con date di scadenza distinte e le quantità delle ricette vengono sommate tra voci e categorie.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: pantry feature request upstream

Ones doesn't buy groceries only when the quantity completely depletes (eg. eggs).

Currently the WebUI and the CLI seems to not support multiple entries for the same ingredient in the same pantry category, it would be useful to track the same ingredient with multiple expiration dates.

Tested conf:

[fridge]
eggs = [{ quantity = "6", expire = "2026-04-25" }, { quantity = "4", expire = "2026-04-15" }]

Expected result: 2 eggs entries listed, one with 6 and the other with 4, with different expiration dates.
Current result: The entry is ignored.

The same ingredient in multiple categories is supported but I don't know how it behave regarding quantity computation for recipes. Indeed, each entry of the same ingredient (even in different categories) must add up.

Lingua principale
Rust
Stelle
1.4k
Fork
120
Merge medio
1g 22h
PR unite (30g)
128

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cooklang/cookcli

Tutte le issue di cooklang/cookcli

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.