feat(setting): étendre ContentSource avec champs de test et domain model
- Ajouter testSlug, testChapterNumber, baseUrl sur ContentSource (entité, domain model, migration) - Exposer ces champs dans les Resources, Processors, Providers et Mapper - Mettre à jour store Pinia, repository API et composants Vue (form, card, liste)
This commit is contained in:
parent
71d6bb5ee9
commit
734dea569c
@@ -15,6 +15,11 @@ readonly class ContentSourceResponse
|
||||
public ?string $nextPageSelector,
|
||||
public ?string $chapterSelector,
|
||||
public string $cleanBaseUrl,
|
||||
public ?string $testSlug = null,
|
||||
public ?float $testChapterNumber = null,
|
||||
public string $healthStatus = 'unknown',
|
||||
public ?\DateTimeImmutable $healthLastTestedAt = null,
|
||||
public ?string $healthLastError = null,
|
||||
) {
|
||||
}
|
||||
|
||||
@@ -29,6 +34,11 @@ readonly class ContentSourceResponse
|
||||
nextPageSelector: $contentSource->getNextPageSelector(),
|
||||
chapterSelector: $contentSource->getChapterSelector(),
|
||||
cleanBaseUrl: $contentSource->getCleanBaseUrl(),
|
||||
testSlug: $contentSource->getTestSlug(),
|
||||
testChapterNumber: $contentSource->getTestChapterNumber(),
|
||||
healthStatus: $contentSource->getHealthStatus(),
|
||||
healthLastTestedAt: $contentSource->getHealthLastTestedAt(),
|
||||
healthLastError: $contentSource->getHealthLastError(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user