refactor: remove routine_role, recommended_frequency, evidence_level, cumulative_with

Drop fields identified as redundant or low-value from the Product model,
API schemas, frontend types, and forms. Raise effect_profile threshold in
to_llm_context() from >0 to >=2 to suppress noise values. Remove sku/barcode
from LLM context output (kept on model for catalog use).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Piotr Oleszczyk 2026-02-27 10:22:59 +01:00
parent 9bf94a979c
commit 9a069508af
9 changed files with 464 additions and 142 deletions

View file

@ -52,7 +52,6 @@ def test_list_filter_category(client, client_and_data=None):
# Create a moisturizer and a serum
base = {
"brand": "B",
"routine_role": "seal",
"recommended_time": "both",
"leave_on": True,
}
@ -72,7 +71,6 @@ def test_list_filter_category(client, client_and_data=None):
def test_list_filter_brand(client):
base = {
"routine_role": "seal",
"recommended_time": "both",
"leave_on": True,
"category": "serum",
@ -90,7 +88,6 @@ def test_list_filter_brand(client):
def test_list_filter_is_medication(client):
base = {
"brand": "B",
"routine_role": "seal",
"recommended_time": "both",
"leave_on": True,
"category": "serum",
@ -113,7 +110,6 @@ def test_list_filter_is_medication(client):
def test_list_filter_targets(client):
base = {
"brand": "B",
"routine_role": "seal",
"recommended_time": "both",
"leave_on": True,
"category": "serum",