feat: Refactor article handling and introduce ArticleRepository
- Introduced Domain\Article\ArticleRepository for better data access. - Migrated article_edit functionality to admin\Controllers\ArticlesController. - Updated admin\factory\Articles::article_details() to use the new repository. - Marked legacy methods in admin\controls as @deprecated for clarity. - Updated changelog and versioning to reflect changes in version 0.242.
This commit is contained in:
@@ -246,10 +246,18 @@ tests/
|
||||
│ └── ProductArchiveControllerTest.php # 6 testów
|
||||
└── Integration/
|
||||
```
|
||||
**Łącznie: 39 testów, 73 asercji**
|
||||
**Ĺ<EFBFBD>Ä…cznie: 48 testów, 91 asercji**
|
||||
|
||||
## Ostatnie modyfikacje
|
||||
|
||||
### 2026-02-06: Migracja Articles::article_edit do DI (ver. 0.242)
|
||||
- **NOWE:** `Domain\Article\ArticleRepository` - repozytorium artykułów (`find()`)
|
||||
- **UPDATE:** `admin\Controllers\ArticlesController` - konstruktor DI + `edit()` uĹĽywa repozytorium
|
||||
- **UPDATE:** Router `admin\Site` - factory dla `ArticlesController` z `ArticleRepository`
|
||||
- **UPDATE:** `admin\factory\Articles::article_details()` deleguje do `Domain\Article\ArticleRepository`
|
||||
- **UPDATE:** Stare kontrolery `admin\controls\Articles|Banners|Settings` - metody przejęte przez nowe kontrolery oznaczone `@deprecated`
|
||||
- Testy: 48 testĂłw, 91 asercji
|
||||
|
||||
### 2026-02-06: Migracja ProductArchive (ver. 0.241)
|
||||
- **NOWE:** `admin\Controllers\ProductArchiveController` - kontroler archiwum produktĂłw z DI
|
||||
- **NOWE:** `ProductRepository::archive()`, `unarchive()` - operacje archiwizacji w repozytorium
|
||||
@@ -258,7 +266,7 @@ tests/
|
||||
- **FIX:** BrakujÄ…cy `archive = 1` w branchu bez wyszukiwania
|
||||
- **CLEANUP:** Usunięto zbędny JS z szablonu archiwum (apilo, baselinker, duplikowanie, edycja cen)
|
||||
- Stary kontroler `admin\controls\Archive` zachowany jako fallback
|
||||
- Testy: 39 testów, 73 asercji (+10 nowych)
|
||||
- Testy: 48 testów, 91 asercji (+10 nowych)
|
||||
|
||||
### 2026-02-05: Migracja Settings + Cache (ver. 0.240)
|
||||
- **NOWE:** `Domain\Settings\SettingsRepository` - repozytorium ustawień (fasada → factory)
|
||||
@@ -293,4 +301,5 @@ tests/
|
||||
- Metoda `clear_product_cache()` w klasie S
|
||||
|
||||
---
|
||||
*Dokument aktualizowany: 2026-02-05*
|
||||
*Dokument aktualizowany: 2026-02-06*
|
||||
|
||||
|
||||
Reference in New Issue
Block a user