1.0 KiB
1.0 KiB
2026-08-12 Project Memory
Auto-generated by AI Agent. Entries are append-only within a day.
[09:48] fields_history CSV file export
Type: solution
Tags: refactor, export
В конце fields_history.js вместо console.table / CSV в консоль — запись в fields_history_${SEASON_YEAR}.csv (UTF-8 с BOM для Excel). Паттерн как в get_weather.js (fs + path).
Status: ✅ verified
[12:15] fields_history_pg.js Cropwise → Postgres sync
Type: solution
Tags: architecture, dependency, performance
Добавлен fields_history_pg.js: создаёт БД ak_fields, таблицы crops / group_folders / field_groups / fields, синкает API. Фильтр ветки GROUP_FOLDER_ROOT_ID=27. В fields: zone_hierarchy + history_items JSONB (без фильтра по годам). .env + pg/dotenv. Параллелизм CONCURRENCY=20 + resume по уже залитым history_items.
Status: ✅ verified