fix: linki produktow z permutacja atrybutow w feedzie Google (v0.350)
Separator URL miedzy parami attr-val zmieniony z "/" na "_" w generatorze feedu (ProductRepository::appendCombinationToXml). Wzorzec routingu pp_routes rozszerzony do [0-9_-]+ w Helpers::htacces (oba warianty: seo_link i fallback p-id-name). LayoutEngine konwertuje "_" -> "|" przed wywolaniem ProductRepository::findCached — format DB pozostaje "|". Partial product-attribute.php preselectuje wartosc z permutation_hash URL (forced_value_id), co poprawia UX wejscia z linka feedu. Suita: 834 -> 841 testow (+7), 2330 assertions. Wymagane akcje na produkcji po deployu: regeneracja pp_routes (Helpers::htacces), wyczyszczenie klucza pp_routes:all w Redis, regeneracja google-feed.xml, resubmit feedu w GMC. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
25
.paul/changelog/2026-04-30.md
Normal file
25
.paul/changelog/2026-04-30.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# 2026-04-30
|
||||
|
||||
## Co zrobiono
|
||||
|
||||
- [Phase 18, Plan 01] Fix linków produktów z permutacją atrybutów w feedzie Google
|
||||
- Separator URL między parami `attr-val` zmieniony z `/` na `_` w `ProductRepository::appendCombinationToXml`
|
||||
- Wzorzec routingu `pp_routes` rozszerzony o `_` (`[0-9-]+` → `[0-9_-]+`) w `Helpers::htacces`
|
||||
- Konwersja `_` → `|` w `LayoutEngine` przed wywołaniem `ProductRepository::findCached`
|
||||
- Preselekcja wartości atrybutu na podstawie `permutation_hash` z URL w partialu `product-attribute.php`
|
||||
- 2 nowe pliki testów: `HelpersRoutingTest` (4 testy) + `ProductFeedLinkTest` (3 testy via Reflection)
|
||||
- Suita PHPUnit: 834 → 841 zielonych
|
||||
|
||||
## Zmienione pliki
|
||||
|
||||
- `autoload/Domain/Product/ProductRepository.php`
|
||||
- `autoload/Shared/Helpers/Helpers.php`
|
||||
- `autoload/front/LayoutEngine.php`
|
||||
- `templates/shop-product/_partial/product-attribute.php`
|
||||
- `tests/Unit/Shared/Helpers/HelpersRoutingTest.php`
|
||||
- `tests/Unit/Domain/Product/ProductFeedLinkTest.php`
|
||||
- `.paul/STATE.md`
|
||||
- `.paul/PROJECT.md`
|
||||
- `.paul/ROADMAP.md`
|
||||
- `.paul/phases/18-google-feed-permutation-url-fix/18-01-PLAN.md`
|
||||
- `.paul/phases/18-google-feed-permutation-url-fix/18-01-SUMMARY.md`
|
||||
Reference in New Issue
Block a user