This commit is contained in:
2026-04-30 21:33:58 +02:00
parent 2639242ca6
commit 5a3948fee5
11 changed files with 635 additions and 113 deletions

View File

@@ -0,0 +1,40 @@
---
phase: 07-xml-feed-cron-refresh
plan: 01
completed: 2026-04-30T07:19:05.331Z
---
# Phase 07-01 Summary
****
## Acceptance Criteria Results
| Criterion | Status |
|-----------|--------|
| Task 1: Wydziel osobny cron XML feed | Pass — Dodano Cron::cron_xml_feed_import, endpoint w dashboardzie cron, usunieto wywolanie XmlFeedImporter z cron_universal. Lint OK; grep potwierdza wywolania tylko w nowym cronie i Clients::force_sync. |
| Task 2: Dodaj reczne odswiezanie XML Feed w /clients | Pass — Dodano opcje XML Feed w dropdownie /clients oraz obsluge pipeline xml_feed w Clients::force_sync z natychmiastowym importem i raportem. Lint OK. |
| Task 3: Zdiagnozuj i napraw custom_label_1 dla pomysloweprezenty.pl offer_id 2084 | Pass — Dodano debug_offer_id/offer_id, raport debug_offer, fallback odczytu custom_label_1 po localName oraz metryki matched_existing_rows/updated_rows. Runtime import/SELECT nie zostal wykonany, bo lokalny MySQL odmawia polaczenia. |
## Accomplishments
- Task 1: Wydziel osobny cron XML feed: Dodano Cron::cron_xml_feed_import, endpoint w dashboardzie cron, usunieto wywolanie XmlFeedImporter z cron_universal. Lint OK; grep potwierdza wywolania tylko w nowym cronie i Clients::force_sync.
- Task 2: Dodaj reczne odswiezanie XML Feed w /clients: Dodano opcje XML Feed w dropdownie /clients oraz obsluge pipeline xml_feed w Clients::force_sync z natychmiastowym importem i raportem. Lint OK.
- Task 3: Zdiagnozuj i napraw custom_label_1 dla pomysloweprezenty.pl offer_id 2084: Dodano debug_offer_id/offer_id, raport debug_offer, fallback odczytu custom_label_1 po localName oraz metryki matched_existing_rows/updated_rows. Runtime import/SELECT nie zostal wykonany, bo lokalny MySQL odmawia polaczenia.
## Files Modified
- `autoload/controls/class.Cron.php`
- `autoload/controls/class.Users.php`
- `autoload/controls/class.Clients.php`
- `templates/clients/main_view.php`
- `autoload/services/class.XmlFeedImporter.php`
- `autoload/controls/class.Cron.php`
## Deviations
Runtime verification against local DB was not possible: local MySQL refused connection, so `/cron/cron_xml_feed_import?client_id=<id>&debug_offer_id=2084` and SELECT for offer_id=2084 must be verified on the target environment.
---
*Phase: 07-xml-feed-cron-refresh, Plan: 01*
*Completed: 2026-04-30*